Networking Forums

Networking Forums > Computer Networking > Linux Networking > mount: only root can do that

Reply
Thread Tools Display Modes

mount: only root can do that

 
 
bbaruah2003@yahoo.com
Guest
Posts: n/a

 
      02-08-2006, 04:23 AM
hi,
I want to give a normal user permission to mount a nfs partition
under one of his/her directory.

So, I set up /etc/fstab like this :

xx.xx.xx.xx:/mnt/inst /home/user1/mount nfs noauto,user 1 2

and checked the permission of /bin/mount and its "-rwsr-sr-x"

When user1 tries to mount the partition and give the command
mount -t nfs xx.xx.xx.xx:/mnt/inst mount , he always get the answer
"mount: only root can do that"

how can i get around with it. please suggest thanks

regards
baruah

 
Reply With Quote
 
 
 
 
Grant
Guest
Posts: n/a

 
      02-08-2006, 04:54 AM
On 7 Feb 2006 21:23:37 -0800, (E-Mail Removed) wrote:

>hi,
> I want to give a normal user permission to mount a nfs partition
>under one of his/her directory.
>
>So, I set up /etc/fstab like this :
>
>xx.xx.xx.xx:/mnt/inst /home/user1/mount nfs noauto,user 1 2
>
>and checked the permission of /bin/mount and its "-rwsr-sr-x"
>
>When user1 tries to mount the partition and give the command
> mount -t nfs xx.xx.xx.xx:/mnt/inst mount , he always get the answer
>"mount: only root can do that"


Does the user have permission to write the mountpoint?

Grant.
--
.... The computer scientist, who had listened to all of this said,
"Yes, but where do you think the chaos came from?"
 
Reply With Quote
 
Keith Keller
Guest
Posts: n/a

 
      02-08-2006, 05:01 AM
On 2006-02-08, (E-Mail Removed) <(E-Mail Removed)> wrote:
>
> So, I set up /etc/fstab like this :
>
> xx.xx.xx.xx:/mnt/inst /home/user1/mount nfs noauto,user 1 2
>
> and checked the permission of /bin/mount and its "-rwsr-sr-x"
>
> When user1 tries to mount the partition and give the command
> mount -t nfs xx.xx.xx.xx:/mnt/inst mount , he always get the answer
> "mount: only root can do that"


You should probably not have your user specify -t nfs; he should
do either

mount xx.xx.xx.xx:/mnt/inst

or

mount /home/user1/mount

(note the full path). mount will read fstab and determine the
remaining options. (My guess is you need to specify the exact
same path on your commandline as what's in your fstab to mount
as user--man mount implies, but does not state, this.)

--keith

--
kkeller-(E-Mail Removed)
(try just my userid to email me)
AOLSFAQ=http://wombat.san-francisco.ca.us/cgi-bin/fom
see X- headers for PGP signature information

 
Reply With Quote
 
bbaruah2003@yahoo.com
Guest
Posts: n/a

 
      02-08-2006, 05:49 AM
Thanks keith. yes, you are right ... just need to give the

mount /home/user1/mount


regards
baruah

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP with autofs and NIS: How to override mount options on all mount points? theosib@gmail.com Linux Networking 0 03-04-2006 09:12 PM
WG311T wireless card is showing c.root-server.net and other root-server.net in netstat. Robert Home Networking 1 05-06-2005 08:13 PM
Postfix config - cron messages for root going to root@ISP. Doug Laidlaw Linux Networking 5 02-27-2005 03:21 PM
NFS mount won't mount at boot, but mount -a works fine. BT Linux Networking 2 09-23-2004 09:37 PM
mount -t smbfs ... only root can do that James Linux Networking 5 01-02-2004 04:25 PM



1 2 3 4 5 6 7 8 9 10 11