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 04-15-2006, 03:39 PM   #1
Kropotkin
Member
 
Registered: Oct 2004
Location: /usr/home
Distribution: Fedora, Mint, FreeBSD, Android
Posts: 346

Rep: Reputation: 31
nfs & ugidd


Hi all,

I have a Fedora box with several NFS shares which I am mounting
locally under Ubuntu (Breezy). Since Fedora and Ubuntu don't have the
same uid/gids scheme, I have downloaded and installed uugid on the ubuntu system to map the ids. However, for some reason I am unable to open certain files on the remote system and it appears that while the user id is the same the group id for certain files is root. uugid appears not to remap the root gid and displays it as 1000; and hence I can't open them from the local machine.

I guess I don't understand completely how uugid works; I am expecting uids and gids to be mapped 1=1 between the two systems. Instead it seems I have to redo a lot of the permissions on the Fedora host to get things to work. The man page of uugid is pretty short, suggesting not much configuration is involved. Anyone here have any tips on how it works?

Last edited by Kropotkin; 01-16-2008 at 08:47 AM. Reason: typo in title (uugidd -> ugidd)
 
Old 04-16-2006, 09:00 AM   #2
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,177

Rep: Reputation: Disabled
Quote:
Originally Posted by Kropotkin
Hi all,
I guess I don't understand completely how uugid works;
Sorry, but you do not understand how NFS and Linux works. There is NO reason why files owned by root should be accessible over NFS. Period. Use SSH for remote management.
 
Old 04-16-2006, 10:38 AM   #3
Kropotkin
Member
 
Registered: Oct 2004
Location: /usr/home
Distribution: Fedora, Mint, FreeBSD, Android
Posts: 346

Original Poster
Rep: Reputation: 31
Right, but I am not dealing with system files, I am trying to open and write to files and directories in my home userspace, notably a large collections of jpegs. I have the same user name on both systems, but under Fedora my user ID number is 500 while under Ubuntu it is 1000 (system defaults). It is my understanding that in principle the uugid daemon is supposed to map the one to the other.

In practice, however, I am finding that I can access some directories and files but not others and I am trying to determine why. In a few places I saw that the group ID name was "root" which lead me to suppose that uugid does not map root on system a to system b.

Further, it appears I have to change the write permissions on certain directories to other +w to be able to see access them on the NFS client, even though the user and group names are the same.

At this point, I haven't figured out what the rules of the game, only that my id name is not being mapped 1 = 1 without restriction on the remote system.
 
Old 04-16-2006, 12:58 PM   #4
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,177

Rep: Reputation: Disabled
Sorry again, cannot help you any further. I use NFS alot, but I keep my UID's synced. useradd -u xxxx creates users with desired UID.
 
Old 04-17-2006, 01:28 PM   #5
jerril
Member
 
Registered: Nov 2005
Location: Ontario, Canada
Distribution: Ubuntu
Posts: 114

Rep: Reputation: 15
Quote:
Originally Posted by Kropotkin
...The man page of uugid is pretty short, suggesting not much configuration is involved.
The correct program here, if anyone is looking for it is, "ugidd". I mention this because I wanted to correctly tag this thread.

Emerson, your suggestion seems to be an excellent solution for simple home networking with the least fuss. I am currently trying to run all of my machines using nfs for file sharing and samba (mostly to share my printer with my roomate). My plan was to use Ubuntu for everything, but I still want to experiment with other distros. I will use my server as a model for uid/gid designation.

I found a good discussion on the topic here:
http://www.wlug.org.nz/exports(5)


jer
 
Old 04-17-2006, 01:49 PM   #6
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,177

Rep: Reputation: Disabled
http://www.linux-nis.org/
 
  


Reply

Tags
networking, 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
nfs (tcp & udp) Eileen Linux - Networking 16 08-17-2009 03:11 AM
nfs&samba alok.rhct Linux - Networking 2 01-10-2006 11:34 AM
Pdc & Nfs PDD Linux - Networking 0 11-09-2004 07:54 AM
NIS & NFS newbie def1014 Linux - Newbie 0 07-16-2003 02:36 PM
Ftp & Nfs needamiracle Linux - Security 1 02-04-2003 06:40 PM


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