howto get mount command to mount partions as user


Forum: Other Help Topics
Topic: howto get mount command to mount partions as user
started by: =SERGE=

Posted by =SERGE= on May 14 2008,16:06
I'd be grateful if you'd explain me howto get mount
command to mount partions as user not only as root (w/o fstab)

I try to mount /dev/hda4  (vfat) partion
I gave rwx  to /dev/hda4
I gave rwx to /mnt/hda4

I gave +s to /bin/mount

I do :   mount -t vfat /dev/hda4 /mnt/hda4


No way, I always get  'Only root can do that'

What is the way to do it?

Thanks

Posted by curaga on May 14 2008,16:39
Unfortunately you need to have an entry in fstab, or use sudo to get root rights, eg
sudo mount /dev/hda4 /mnt/hda4

Posted by =SERGE= on May 14 2008,18:31
Quote (curaga @ May 14 2008,16:39)
Unfortunately you need to have an entry in fstab, or use sudo to get root rights, eg
sudo mount /dev/hda4 /mnt/hda4

you mean I can't pass params to mount command directly w/o fstab? And I can't use mount as user even with +s ?
Posted by lucky13 on May 14 2008,20:15
Quote
you mean I can't pass params to mount command directly w/o fstab?

Yes, you can do that without fstab. That's what you enter at command line -- just like you entered.

Quote
And I can't use mount as user even with +s ?

Don't fiddle around with basic permission settings unless you have a really good reason. User dsl has FULL, COMPLETE root privileges via sudo. Use that instead of setting yourself up for headaches by changing permissions all over the place.

Posted by curaga on May 15 2008,15:29
params can be used on command line too, but you should mount as root or have an entry to mount as an user.
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.