LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 12: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, 01:30 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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, 12: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, 08:20 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:29 AM.

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
Open Source Consulting | Domain Registration