LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-30-2010, 01:51 AM   #1
lawson
LQ Newbie
 
Registered: Dec 2009
Posts: 9

Rep: Reputation: 0
strange username behavior using nfs


I'm trying to set up an NFS server/client. Everything seems to be working more or less OK, I've set up the relevant configuration files and so on. However, a strange thing happens when I try to mount the NFS share on the client machine. I've created a directory on which to mount the NFS share. Before I mount, if I do ls -l on the directory, the user and group show up as my username, as you would expect. But after I perform the mount, if I do ls -l, the username and group show up as another user on that machine. So then I can't modify anything on the share, which isn't too useful. Why are the ownerships mysteriously changing when I mount the NFS share? Thanks!
 
Old 03-30-2010, 02:30 AM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,311

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
With NFS, the uid has to be the same on both systems. The name could be different though if you're using local ie /etc/passwd files on each machine.
The OS only shows you what the uid entry says, if it has one to match. Otherwise it shows the uid.
Similarly for gid.
 
Old 03-30-2010, 01:01 PM   #3
lawson
LQ Newbie
 
Registered: Dec 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Ah, that make sense, thanks. Is there a better way around this than simply manually changing the uids? From what I've gathered this can cause permission problems for files outside the users home directory.
 
Old 03-30-2010, 09:20 PM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,311

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
Basically, uid on server & client must match under nfs (eg use ldap or nis), or cheat via additional groups or ACLs or anon user http://www.troubleshooters.com/linux...ut_cant_access
 
  


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
Strange dhcp behavior kungfo0 Slackware 4 11-09-2009 06:59 PM
Strange MIDI behavior bayonetblaha Linux - Software 0 04-17-2006 11:24 PM
Very Strange Behavior raysr Mandriva 4 08-31-2004 03:06 PM
Strange Behavior andrewb758 Linux - Hardware 5 08-31-2003 03:42 PM
strange behavior abhijit Linux - General 3 07-10-2003 12:25 AM


All times are GMT -5. The time now is 02:09 PM.

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