Friday, June 29, 2007

allow a user to mount a usb drive

i wanted to use rsync ( a cool synchronization program) to keep the music files on my laptop and external usb disk in sync. the problem i ran into was that root was the only user that can mount and umount a drive. after mounting root would own all the files on the usb drive and i could not rsync my files without doing a chown recursively on the usbdisk or letting root own all of the music files on my computer.

after reading the man page on the mount command i found a line that reads: "Normally, only the superuser can mount file systems. However, when fstab contains the user option on a line, anybody can mount the corresponding system."

problem solved

No comments: