Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Permission denied when open a remote mounted directory
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
anyc
Tux's lil' helper
Tux's lil' helper


Joined: 31 May 2004
Posts: 119

PostPosted: Sun Sep 04, 2005 12:10 pm    Post subject: Permission denied when open a remote mounted directory Reply with quote

Hi,

when i want to "ls" a directory that i've mounted from a remote drive
i only get a permission denied error AS root!
It makes no difference if i mount a windowsshare over samba or
a directory over nfs. Always the same problem. That's pretty annoying.

A few weeks before it works without a problem so i guess
a software "update" could be the problem.

I also found several other threads with this, but no satisfying answer.

I hope someone could help! :cry:

Thanks a lot!
Mario
Back to top
View user's profile Send private message
Vulpes_Vulpes
Apprentice
Apprentice


Joined: 10 Dec 2003
Posts: 264
Location: Amsterdam

PostPosted: Sun Sep 04, 2005 1:13 pm    Post subject: Reply with quote

Did you set the correct uid and gid in your fstab?

Example:

Quote:
\\192.168.0.1\public /mnt/lunix smbfs defaults,gid=100,uid=sijmen,credentials=/etc/samba/credentials,rw 0 0


You can put the username and password in the credential file wich is oc only readable by root.
Back to top
View user's profile Send private message
bigfunkymo
Apprentice
Apprentice


Joined: 23 Jan 2004
Posts: 237

PostPosted: Sun Sep 04, 2005 1:21 pm    Post subject: Reply with quote

Permission denied when trying to mount a remote directory?

No means no, man!

have you tried emerging this?
_________________
[No package... Grabbing a set.]
Back to top
View user's profile Send private message
aceFruchtsaft
Guru
Guru


Joined: 16 May 2004
Posts: 438
Location: Vienna, Austria

PostPosted: Sun Sep 04, 2005 1:24 pm    Post subject: Reply with quote

In the default configuration, NFS maps root to user nobody unless you specify no_root_squasch in /etc/exports. So I wouldn't count on it that the effective uid on the remote system is actually root...
Back to top
View user's profile Send private message
anyc
Tux's lil' helper
Tux's lil' helper


Joined: 31 May 2004
Posts: 119

PostPosted: Sun Sep 04, 2005 6:20 pm    Post subject: Reply with quote

I've tried the whole options like dmask,fmask,uid,gid, but nothing helps.
The windowsshare is open for everybody so it can't be a wrong password.

On my laptop this still works... strange... :(
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum