LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-13-2005, 06:10 AM   #1
Infernal211283
Member
 
Registered: Nov 2004
Location: Mid. East / Israel
Distribution: Slackware 10.2, Gentoo
Posts: 157

Rep: Reputation: 30
No writing permision in nfs


hi,

i mounted a shared nfs and i want to be able to add files to that shared directory from a client but it says "permission denied".

they client and server use fc4.

server's /etc/exports:

/home fedint(rw,insecure)

server's /etc/hostst.allow:

portmap: fedint,fedora
lockd: fedint,fedora
mountd: fedint,fedora
rquotad: fedint,fedora
statd: fedint,fedora

I thought that should be enough but i guess it's not, what can i do for it to grant me the "write" permission?

Thank you.
 
Old 12-13-2005, 06:16 AM   #2
[NL]_Target
Member
 
Registered: Aug 2003
Distribution: Arch Linux 0.7
Posts: 81

Rep: Reputation: 15
Hey,

I haven't used NFS too much lately, but maybe the client is just mounting it in read only mode, or you need to set a mask on it. Type 'mount' to see how it is mounted (read-only or read-write) and type ls -ald /mountpoint/of/nfs/share to see your permissions on the mountpoint.

Good luck!

Target
 
Old 12-13-2005, 06:31 AM   #3
Infernal211283
Member
 
Registered: Nov 2004
Location: Mid. East / Israel
Distribution: Slackware 10.2, Gentoo
Posts: 157

Original Poster
Rep: Reputation: 30
this is my out of 'mount': (except the regular ones)

nfsd on /proc/fs/nfsd type nfsd (rw)
10.0.0.100:/home/ on /home/infernal/mounted/nfs type nfs (rw,addr=10.0.0.100)
10.0.0.100:/ on /home/infernal/mounted/nfs2 type nfs (rw,addr=10.0.0.100)

and this is the ls -ald of the share:

[infernal@fedora nfs2]$ ls -ald /home/infernal/mounted/nfs2
drwxr-xr-x 25 root root 4096 Dec 13 09:31 /home/infernal/mounted/nfs2

it says the share belongs to root but
if i try to write there while i'm root it doesnt help either

;(
 
Old 12-13-2005, 07:27 AM   #4
[NL]_Target
Member
 
Registered: Aug 2003
Distribution: Arch Linux 0.7
Posts: 81

Rep: Reputation: 15
I'm sorry, my NFS knowledge isn't what it used to be. I think someone else can help you though, have you tried reading the NFS faq / tldp documents?
 
Old 12-14-2005, 12:22 AM   #5
Infernal211283
Member
 
Registered: Nov 2004
Location: Mid. East / Israel
Distribution: Slackware 10.2, Gentoo
Posts: 157

Original Poster
Rep: Reputation: 30
i hoped i won't have to read all that literature but i guess there's no choise... :\

thank you for your help.
 
Old 12-14-2005, 01:13 AM   #6
Infernal211283
Member
 
Registered: Nov 2004
Location: Mid. East / Israel
Distribution: Slackware 10.2, Gentoo
Posts: 157

Original Poster
Rep: Reputation: 30
Alright, it's done and working now...
All i had to do is add the 'no_root_squash' in the exports.
 
Old 12-14-2005, 05:09 AM   #7
[NL]_Target
Member
 
Registered: Aug 2003
Distribution: Arch Linux 0.7
Posts: 81

Rep: Reputation: 15
Ahhh, that's it! Thanks for posting the solution back here!

Greets
 
Old 06-25-2006, 11:11 PM   #8
fortezza
Member
 
Registered: Mar 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 297

Rep: Reputation: 30
Cool

Quote:
Originally Posted by Infernal211283
Alright, it's done and working now...
All i had to do is add the 'no_root_squash' in the exports.
Yeah, that helped me too! Never would have guessed it was a remote setting. I am going to have to tape that next to my computer.
 
  


Reply

Tags
nfs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Only limited writing access on FAT via NFS micha Linux - Networking 2 10-31-2005 02:37 AM
Device Permision Problems Zwan Mandriva 6 11-22-2004 09:59 PM
NFS - group permision problems on client side top001 Linux - Networking 1 02-12-2004 02:08 PM
user with root permision imsajjadali Red Hat 2 01-20-2004 07:00 AM
file permision alexr186 Linux - Software 4 10-12-2003 08:56 PM


All times are GMT -5. The time now is 05:12 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration