|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|
|||
How do I a USB flashdrive so I can use chmod?
Hi!
I have a little problem with my USB flashdrive. This is what I have done: 1. Connect the USB flashdrive 2. Create new directory: mkdir /mnt/flash 3. Create new filesystem: newfs sd0c 4. Mount the USB flashdrive: mount /dev/sd0i /mnt/flash 5. ...do the work... 6. Leave the directory /mnt/flash (if needed) 7. Unmount the USB flashdrive: umount /mnt/flash It works good (at step 3 I can instead type "newfs_msdos -F 32 sd0c" if I want compability with Windows). But how do I mount the flashdrive so I can set the files permissions, user ID, group ID etc.? Thanks in advance /Quaxo |
|
|||
Never mind, I found the problem.
In step 4 I must use "mount_ffs /dev/sd0i /mnt/flash" (I know I tryed that before and then got some errors, it must have been a different format at that time because it works great now). Take care /Quaxo |
|
|||
Quote:
All they have to do is use their root account... |
|
||||
Quote:
Probably you meant to say the drive should be formatted as ffs instead of ufs to prevent the read permission from bad guy? 1. ufs and ffs are identical. 2. Once he got the drive, mounting as ufs or ffs is his choice, you have no control here. 3. Also, once the bad guy physically possesses the drive, I dont think ufs, ffs or any fs can stop him from accessing the drive, as long as it is not encrypted, corrupted. My 2 cents |
|
|||
Quote:
You claimed, that setting chmod 600 would stop someone from accessing your file.. that's incorrect, if someone plugged your drive in their BSD computer they could mount the partition and use "their local root account" to read the file. Encryption would be the only option.. please re-read my initial posts, I was very clear. That's exactly what I said , I thought you were implying otherwise. Last edited by BSDfan666; 29th June 2008 at 07:40 PM. |
|
|||
If the file system is FFS or ext2(3) you can use file permissions, but it's impossible for FAT as it has no concept of Unix permissions.
This has been said in the past, FAT was designed for a single-user operating system.. EDIT: If you want to restrict access to files on ANY portable device, a better method would be encryption.. via OpenSSL for instance. Last edited by BSDfan666; 29th June 2008 at 05:46 PM. |
|
|||
Compared with an Unix or Unix-like filesytem, a FAT filesystem has limited facilities to administer file access, and it is totally misses the concept of users and groups. So these things have to be emulated.
See the mount_msdos man page for the defaults and how to override these defaults.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
||||
Using NTFS over FAT32 was actually the greatest reason to upgrade to Windows NT in the Microsoft world.
For whatever portion that unix like systems play in the rest of the file system world, BSD has lived happily for decades ;-)
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
||||
BSDfan666: Haha it was misunderstanding here. I was referring to one local machine. It is all sorted out anyways, cheers
Quote:
It is gonna be a huge mess! Dont ever think to change it, it is too popular and too old |
|
|||
Quote:
Just for the record this is not file system XYZ fault. |
|
||||
Quote:
http://www.freebsd.org/cgi/man.cgi?q...SE&format=html http://opensolaris.org/os/community/zfs/ Last edited by ephemera; 30th June 2008 at 11:03 AM. |
|
||||
Quaxo's original question was on usability.
The easiest way I've found to manage USB sticks is to start with fdisk(8). This is because when you "format" sticks on Windows, you get an MBR. That MBR does not have an A6 partition. This example dedicates a stick to OpenBSD, and mounts it at /mnt:
|
|
|