Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: howto get mount command to mount partions as user< Next Oldest | Next Newest >
=SERGE= Offline





Group: Members
Posts: 17
Joined: Mar. 2008
Posted: May 14 2008,16:06 QUOTE

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
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: May 14 2008,16:39 QUOTE

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


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
=SERGE= Offline





Group: Members
Posts: 17
Joined: Mar. 2008
Posted: May 14 2008,18:31 QUOTE

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 ?
Back to top
Profile PM 
lucky13 Offline





Group: Members
Posts: 1478
Joined: Feb. 2007
Posted: May 14 2008,20:15 QUOTE

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.


--------------
"It felt kind of like having a pitbull terrier on my rear end."
-- meo (copyright(c)2008, all rights reserved)
Back to top
Profile PM WEB 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: May 15 2008,15:29 QUOTE

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

--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
4 replies since May 14 2008,16:06 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: howto get mount command to mount partions as user

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code