[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: more important problem



> -rwsr-xr-x   1 root      root when i type ls -l mount..

> how do i change it so my user "alan" in "group" can use it?

The pemission on the mount command are fine, the last "r-x" means ANYONE can
execute the program
Your trying too hard.  To allow a "user" to mount/unmount a filesystem you
simply add the "user" option
in the /etc/fstab file.

For example one of my fstab files looks like:
/dev/hda1          /                              ext2
defaults        1 1
/dev/fd0           /mnt/floppy              auto
noauto,owner,user    0 0
none                /proc                         proc
defaults        0 0
none                /dev/pts                    devpts
gid=5,mode=620    0 0
/dev/hda5        swap                         swap
defaults            0 0
/dev/hdb          /mnt/cdrom0              iso9660
exec,noauto,owner,ro,user  0 0
/dev/hdc          /mnt/cdrom1              iso9660
exec,noauto,owner,ro,user  0 0
/dev/hdd          /mnt/cdrom2              iso9660
exec,noauto,owner,ro,user  0 0