LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-06-2004, 11:01 PM   #1
matthewkeen
LQ Newbie
 
Registered: Sep 2004
Posts: 6

Rep: Reputation: 0
NFS non root read write access


Hi Im wondering if someone could help me.

I'm having a little trouble, this is what im trying to do



I want the user apache on machine 1 to have full read/write access to all the files of all the different users on server2 and server3, im not too sure on permissions etc.


Currently my only idea is to mount the /home directories of server2 and server3 in /var/www using NFS

bu the user apache just gets permission denied errors when trying to access a file on one of the mounts.


Any help/ideas would be much appreciated.

Kind Regards
Matthew
 
Old 09-07-2004, 12:25 AM   #2
rm6990
Member
 
Registered: Aug 2004
Location: Canada
Distribution: SUSE 9.1 Pro and Debian Testing on Server
Posts: 469

Rep: Reputation: 30
OK, so let's say you are mounting /home/matthew from the host machine onto a local directory on the apache machine. On the host machine, not apache, you have to type this

chmod 777 /home/matthew/*

Make sure you have all your NFS config files set up correctly to deny access to all ip addresses but your own from the apache machine. If it is not done correctly, it may be possible for people from the outside to access/change these folders.
 
Old 09-07-2004, 12:42 AM   #3
matthewkeen
LQ Newbie
 
Registered: Sep 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Hi, thanks for the reply, I have considered that but if I do that then surely the other users on the host machine could read/write other users files?


Matthew
 
Old 09-07-2004, 12:47 AM   #4
rm6990
Member
 
Registered: Aug 2004
Location: Canada
Distribution: SUSE 9.1 Pro and Debian Testing on Server
Posts: 469

Rep: Reputation: 30
Lol, sorry, I am thinking about a single user machine (all 3 of my desktops are used bya single different person). Sorry, I'm lost, I never considered that problem.
 
Old 09-07-2004, 12:54 AM   #5
matthewkeen
LQ Newbie
 
Registered: Sep 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Ah ok I understand, security isnt much of a problem for this project but I would like some basic security so that users dont accidentally delete or edit other users files.



Matthew
 
Old 09-07-2004, 05:14 AM   #6
vinu_shu
LQ Newbie
 
Registered: Sep 2004
Location: pune India
Distribution: Redhat ES
Posts: 8

Rep: Reputation: 0
hi
check the /etc/exports file are the directories exported have given the rwx permissions or not
 
Old 09-07-2004, 02:51 PM   #7
rm6990
Member
 
Registered: Aug 2004
Location: Canada
Distribution: SUSE 9.1 Pro and Debian Testing on Server
Posts: 469

Rep: Reputation: 30
Doesn't matter if they do or not. On the server, you still have to have the right permissions on the directories that are being shared. I had the same problem as him. If you put down that root is the only one that can write to a directory, it doesn't matter what is in /etc/exports, it still won't write.
 
Old 09-09-2004, 05:47 PM   #8
matthewkeen
LQ Newbie
 
Registered: Sep 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Ok so how can I fix this problem?


Matthew
 
Old 09-09-2004, 10:52 PM   #9
rm6990
Member
 
Registered: Aug 2004
Location: Canada
Distribution: SUSE 9.1 Pro and Debian Testing on Server
Posts: 469

Rep: Reputation: 30
Sorry, I mis-worded my last post. It does matter, I meant to say that that was most likely not the problem cause I had the same issue (i type to fast without thinking and often I don't double check what I have typed)

Anyways, I don't think there is any other way to fix the problem other than what we stated before, which is why NFS is often considered insecure. In the end you may have to do what I suggested. Is anyone else either able to give a better solution or at least confirm that I am right?
 
  


Reply


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
NFS write access denied on one of two filesystems TomF Linux - Security 2 02-23-2005 08:48 PM
NFS problem - no write access? aaronfg Linux - Newbie 3 12-22-2004 05:52 AM
read write access phoenix_wolf Linux - Newbie 2 12-05-2004 09:35 AM
Read and write USB device with non-root access halfzware_shag Linux - Hardware 3 10-11-2004 04:26 AM
NFS: how can I get write-access?? pablovschby Linux - Networking 3 12-24-2003 08:39 AM


All times are GMT -5. The time now is 02:50 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