LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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-05-2006, 09:33 AM   #1
Falafel
Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Fedora
Posts: 43

Rep: Reputation: 15
file permission problems on nfs-share


Hi all,

I'm trying to solve a really annoying problem at the office. We have a server computer running red hat 9 which is sharing some folders over nfs, for people to store their documents in. Everybody needs access to all the other people's files. This is where the trouble begins. Usually it's impossible to open other peoples files and you get a warning message saying you don't have the right permissions! The shared folder is 777 and shared with read and write access.

What should I do?

Would be very grateful for help

Thanks
 
Old 12-05-2006, 11:05 AM   #2
STIBAL
LQ Newbie
 
Registered: Nov 2004
Posts: 8

Rep: Reputation: 0
Hi,

When the users create a file, using NFS, in the server appears the owner, group and permissions correctly? Have the stations and server the same /etc/passwd and /etc/group? “If you are not root, then usernames may not be in sync on the client and the server. Type id [user] on both the client and the server and make sure they give the same UID number.. If the user names match then the user has a more general permissions problem unrelated to NFS.”
 
Old 12-05-2006, 01:59 PM   #3
Falafel
Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Fedora
Posts: 43

Original Poster
Rep: Reputation: 15
Thank you for your reply!

Unfortunately the workstations and the server do not use the same /etc/passwd and /etc/group files, so I guess you're right about the UID and the GID numbers not being synced. How would I resolve this problem? Use some system for centralized logins like NIS or could I just make the users members of a group that is the same GID on all computers?

Thanks again
 
Old 12-05-2006, 02:57 PM   #4
STIBAL
LQ Newbie
 
Registered: Nov 2004
Posts: 8

Rep: Reputation: 0
Firstly, I want to know if you see (in the server) the owner and permissions correctly when any user creates a file or directory.

“Once the NFS file system is mounted read-write by a remote host, the only protection each shared file has is its permissions. If two users that share the same userid value mount the same NFS file system, they will be able to modify each others files.” Maybe for each station exists a user when the same uid and group and in this case is enough the user creation over the server of the common userid and group that use the stations.
 
  


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 mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 12:34 PM
Can't delete file on NFS share in Nautilus corkypa Linux - Software 0 10-18-2005 01:13 PM
Mounting an nfs share - Permission Denied doctorwebbox Linux - Networking 5 05-30-2005 02:45 AM
Is it better to use sftp to trasfer a file than to use NFS share? mphreddy Linux - Networking 1 01-02-2004 09:34 AM
messages file and other log files on NFS share Supp0rtLinux Linux - Security 1 04-16-2002 10:19 PM


All times are GMT -5. The time now is 04:49 PM.

Main Menu
Advertisement
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