Windows Linux Tips: Allowing users to mount drives


twitter tips,twitter tricks,twitter tips and tricks,twitter latest updates,facebook tips and tricks,facebook tricks,facebook tips,Windows 7 Tips,Windows 7 tips and tricks,Windows 7 tips with staps,Windows XP Tips,Windows XP tips and tricks,Windows XP tips with staps

By default, Linux will not allow users to mount drives. Only root can do it, and making the mount binary suid
root is not a good idea. With a special command in the /etc/fstab file, you can change that.

This is a typical line for the fd0 (A:) drive in /etc/fstab:

/dev/fd0        /mnt           auto       noauto,user 1  1

The keywords here are noauto and user. Noauto tells mount not the try to mount a diskette on boot, and user
allows any user to mount the drive into /mnt.The auto keyword is also interesting. It tells mount to try to find
out which file system is on the diskette. You could also use msdos or ext2.


"Windows Linux Tips: Allowing users to mount drives"



Reference: tipoftheweek.darkelf.net