Hello!
Currently, whenever I attempt to umount /media/disk (or -1, etc), I either have to be user or have to have given the account sudo privileges. Since these "disks" are usually just flash-memory sticks, I'd really rather have the permission to umount them be given to users. The /etc/mtab shows the /media filesystems, /etc/fstab does not.
Thank you, Charles Campbell
On 10/15/07, Charles E Campbell Jr charles.e.campbell@nasa.gov wrote:
Hello!
Currently, whenever I attempt to umount /media/disk (or -1, etc), I either have to be user or have to have given the account sudo privileges. Since these "disks" are usually just flash-memory sticks, I'd really rather have the permission to umount them be given to users. The /etc/mtab shows the /media filesystems, /etc/fstab does not.
Thank you, Charles Campbell
Charles,
During a quick google session I found this feedback:
whats wrong with using the "su" command?
And after laughing for a while I found alternatives, udev rules:
http://www.reactivated.net/writing_udev_rules.html
You could also use a automounter approach, kernel patch or suid on a custom compiled mount command etc.
/ Nicolas
Nicolas Sahlqvist wrote:
On 10/15/07, Charles E Campbell Jr charles.e.campbell@nasa.gov wrote:
Hello!
Currently, whenever I attempt to umount /media/disk (or -1, etc), I either have to be user or have to have given the account sudo privileges. Since these "disks" are usually just flash-memory sticks, I'd really rather have the permission to umount them be given to users. The /etc/mtab shows the /media filesystems, /etc/fstab does not.
Thank you, Charles Campbell
Charles,
During a quick google session I found this feedback:
whats wrong with using the "su" command?
And after laughing for a while I found alternatives, udev rules:
http://www.reactivated.net/writing_udev_rules.html
You could also use a automounter approach, kernel patch or suid on a custom compiled mount command etc.
You could also just use sudo and give users permission to use mount as root.
Charles E Campbell Jr pisze:
Currently, whenever I attempt to umount /media/disk (or -1, etc), I either have to be user or have to have given the account sudo privileges. Since these "disks" are usually just flash-memory sticks, I'd really rather have the permission to umount them be given to users. The /etc/mtab shows the /media filesystems, /etc/fstab does not.
You may add those devices to fstab, much like partitions:
/dev/sda1 /mnt/pendrive vfat noauto,users,rw,umask=0000 0 0 /dev/sda2 /mnt/pendrive2 vfat noauto,users,rw,umask=0000 0 0
the key is that "users" param, to allow normal users mount and umount filesystem; I very often use static mount points and edit fstab instead of using HAL for this, but HAL itself respects fstab configuration too
all parameters are listed in mount docs, but since those are removable media, security isn't very important
Lukasz wrote:
Charles E Campbell Jr pisze:
Currently, whenever I attempt to umount /media/disk (or -1, etc), I either have to be user or have to have given the account sudo privileges. Since these "disks" are usually just flash-memory sticks, I'd really rather have the permission to umount them be given to users. The /etc/mtab shows the /media filesystems, /etc/fstab does not.
You may add those devices to fstab, much like partitions:
/dev/sda1 /mnt/pendrive vfat noauto,users,rw,umask=0000 0 0 /dev/sda2 /mnt/pendrive2 vfat noauto,users,rw,umask=0000 0 0
the key is that "users" param, to allow normal users mount and umount filesystem; I very often use static mount points and edit fstab instead of using HAL for this, but HAL itself respects fstab configuration too
all parameters are listed in mount docs, but since those are removable media, security isn't very important
Thank you!
I'll try this approach out...
Regards, Chip Campbell