Other Help Topics :: howto get mount command to mount partions as user



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

Unfortunately you need to have an entry in fstab, or use sudo to get root rights, eg
sudo mount /dev/hda4 /mnt/hda4

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 ?
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.

params can be used on command line too, but you should mount as root or have an entry to mount as an user.
Next Page...
original here.