Click to See Complete Forum and Search --> : mount permissions ?


anton
09-17-2001, 06:20 PM
Hello,


how would I go about allowing normal user to mount different filesystems ? so I won't go to su each time

thanks :)

bdg1983
09-17-2001, 06:27 PM
It might be a good idea to change to a distro that includes man pages. ;)

This is just a bit of the 'mount' manual page. (man mount).

user Allow an ordinary user to mount the file
system. This option implies the options
noexec, nosuid, and nodev (unless overridden
by subsequent options, as in the option line
user,exec,dev,suid).

Hope it helps.

Timbo
09-17-2001, 06:34 PM
To answer your question I went to Google (http://www.google.com) and did a search for "linux mount options" I found a page here (http://www.humbug.org.au/talks/fstab/fstab_options.html) which answers your question. You will want to pay particular attention to the 'user' option. Let us know if you have any more questions.

Timbo

anton
09-17-2001, 06:41 PM
but wait ... that is only true to file systems that are in my fstab file , but if I want to mount like via samba ... and I don't have it defined in fstab ?

element-x
09-17-2001, 07:11 PM
then you would want to create your own entries in /etc/fstab

note: `man fstab` and `man mount`

[ 17 September 2001: Message edited by: JAdrock ]

bdg1983
09-17-2001, 07:49 PM
I'm really sorry as I thought you were asking about normal mounts. i.e. floppy, cdrom, ext2 partitions.

I should learn to read a bit better.

Red Lotus
09-17-2001, 11:42 PM
I think what you want is:

mount -o user -t vfat /dev/fd0 /mnt/floppy

That would mount the floppy device at /mnt/floppy, and any user would be able to mount and unmount it. In order to use options without details in fstab, just use the -o option following by a comma separated list of options:

ie. -o user,dev,exec

I suggest adding the information to fstab though. The file is there to make your mounting easier. ;)