You are not logged in.
I'm working to limit my use of the root account and so its time to get my USB, DVD media mountable by the user (thats me!)
I'm putting in some fstab lines with the `users` option, and `auto` file system type. Otherwise, its just the example line from USB Storage page:
/dev/cdrom /mnt/cdrom iso9660 ro,users,noauto,unhide 0 0
/dev/dvd /mnt/dvd udf ro,users,noauto,unhide 0 0
/dev/sda1 /mnt/usb1 auto users,noauto,noatime,flush 0 0
/dev/sdb1 /mnt/usb2 auto users,noauto,noatime,flush 0 0
/dev/sdc1 /mnt/usb3 auto users,noauto,noatime,flush 0 0And I added my user to the `users` group.
Does it matter if /mnt sub-directories are owned by `users` or `wheel`. Currently everything outside of home is owned by root. So, any general advise will help
Last edited by xtian (2014-07-29 23:28:52)
Offline
Where is / and /home in your fstab? Are you using some kind of special setup?
Did you previously run everything as root or with 'sudo username'?
Offline
That's just the partial fstab file. Yes, everything as root:
$ lsblk
$ sudo mount /dev/sda1 /mnt/usb// UPDATE,
I realized that in addition to several usb sticks, I also have a Nokia that I frequently mount to the system. I updated `fstab` with `UUIDs` and arbitrarily chose `wheel` as `/mnt/` directory group owner and 770 permissions
UUID=8EA3-6203 /mnt/usb vfat users,noauto,noatime,flush 0 0
UUID=CD1E-CB07 /mnt/usb1 vfat users,noauto,noatime,flush 0 0
UUID=E7F6-002A /mnt/usb2 vfat users,noauto,noatime,flush 0 0
UUID=2A5B-8017 /mnt/usb3 vfat users,noauto,noatime,flush 0 0
UUID=486D-8336 /mnt/N900 vfat users,noauto,noatime,flush 0 0Mounting is a breeze with '$mount /mnt/N900`, for example.
I'm still curious about the question, `wheel` or `users`?
Last edited by xtian (2014-08-01 15:19:28)
Offline