Newsgroups: comp.unix.questions,comp.os.linux.setup
>Is it possible to alow certain user to have mount privilege? >'cause when I tried to mount a foreign volumn as a normal user, I >got "mount: permission denied" under solaris and "mount: only root >can do that" under linux.
Some "mount" commands are designed to be installed s-uid root, with a designation in the fstab file as to whether a given volume is user-mountable (this is common on Linux systems). A more generic method (and one with finer-grained control) is to use "sudo" (or its equivalent).
Ken Pizzini
put an entry in the fstab file and mount it using only the device node name or the mount point as an argument.
So the command: mount /dev/hda1 /mnt/windows is only allowed for the root user, even after putting an entry in fstab!, but the command: mount /mnt/windows or mount /dev/hda1 is allowed by all users if a line in fstab is included which describes the device to mount on the mountpoint specified.
Eric
Add the "user" option to the entry in /etc/fstab for the mount point.
James D. McIninch
user Allow an ordinary user to mount the file system. The
name of the mounting user is written to mtab so that he
can unmount the file system again.NB, This option implies the options noexec, nosuid, and nodev (unless overridden by subsequent options, as in the option line user,exec,dev,suid).