Networking Forums

Networking Forums > Computer Networking > Linux Networking > Simple solution to sync UIDs on NFS?

Reply
Thread Tools Display Modes

Simple solution to sync UIDs on NFS?

 
 
Andrew Woodward
Guest
Posts: n/a

 
      07-13-2008, 04:03 PM
Hi,

I had a desktop and laptop both running PCLinuxOS 2007. To access my files
on the desktop from the laptop I set up NFS and it all ran smoothly "out of
the box".

The laptop has now died and I've replaced it. Long story short - the new one
won't run PCLOS, so I installed Kubuntu. However, NFS won't work and after
much Googling I realise it's because PCLOS starts user UIDs at 500 but
Kubuntu starts at 1000. A few posts mentioned using
option "map_static=[filename]" in /etc/exports, which seemed just what I
wanted, but when I try that I get an unknown keyword error when restarting
NFS.

I don't particularly want to start messing with UIDs on existing accounts in
case I mess something up. NIS or LDAP etc. seem overkill for just a
laptop/desktop connection.

I tried Samba, but when using OpenOffice I get "Protocol "smb" is supported
only partially. Local copy of the file will be created." and then "Saving
using protocol "smb" is not supported."

Is there a simple solution, or am I going to have to go with NIS / LDAP etc?
 
Reply With Quote
 
 
 
 
Unruh
Guest
Posts: n/a

 
      07-13-2008, 05:05 PM
Andrew Woodward <(E-Mail Removed)> writes:

>Hi,


>I had a desktop and laptop both running PCLinuxOS 2007. To access my files
>on the desktop from the laptop I set up NFS and it all ran smoothly "out of
>the box".


>The laptop has now died and I've replaced it. Long story short - the new one
>won't run PCLOS, so I installed Kubuntu. However, NFS won't work and after
>much Googling I realise it's because PCLOS starts user UIDs at 500 but
>Kubuntu starts at 1000. A few posts mentioned using


That is to put it bluntly idiotic. Why in the world cannot the Linux
standards just define a number to start at? It used to be 200 then 500 now
1000?

The best thing is just to change the assigned uids on kubuntu back to
soemthing reasonable.

find / -uid 1000 -print0 |xargs -0 chown 500
(Making sure of course that 500 is not actually used on kubuntu
)

That will change all files with owner uid 1000 to owner uid 500
alter to suit your situation.

>option "map_static=[filename]" in /etc/exports, which seemed just what I
>wanted, but when I try that I get an unknown keyword error when restarting
>NFS.


>I don't particularly want to start messing with UIDs on existing accounts in
>case I mess something up. NIS or LDAP etc. seem overkill for just a
>laptop/desktop connection.


>I tried Samba, but when using OpenOffice I get "Protocol "smb" is supported
>only partially. Local copy of the file will be created." and then "Saving
>using protocol "smb" is not supported."


>Is there a simple solution, or am I going to have to go with NIS / LDAP etc?

 
Reply With Quote
 
Andrew Woodward
Guest
Posts: n/a

 
      07-13-2008, 10:21 PM
Unruh wrote:

> Andrew Woodward <(E-Mail Removed)> writes:
>
>>Hi,

>
>>I had a desktop and laptop both running PCLinuxOS 2007. To access my files
>>on the desktop from the laptop I set up NFS and it all ran smoothly "out
>>of the box".

>
>>The laptop has now died and I've replaced it. Long story short - the new
>>one won't run PCLOS, so I installed Kubuntu. However, NFS won't work and
>>after much Googling I realise it's because PCLOS starts user UIDs at 500
>>but Kubuntu starts at 1000. A few posts mentioned using

>
> That is to put it bluntly idiotic. Why in the world cannot the Linux
> standards just define a number to start at? It used to be 200 then 500 now
> 1000?
>
> The best thing is just to change the assigned uids on kubuntu back to
> soemthing reasonable.
>
> find / -uid 1000 -print0 |xargs -0 chown 500
> (Making sure of course that 500 is not actually used on kubuntu
> )
>
> That will change all files with owner uid 1000 to owner uid 500
> alter to suit your situation.
>


Yeah, I've given up and taken the plunge - eventually got it all (almost)
reconfigured on the Kubuntu laptop. I found a post which gave partial
instructions for Ubuntu, but it didn't work completely on Kubuntu - I still
get a default of 1000 when adding a new user I'll just have to be
careful to remember if/when I add any more. Anyway, I managed to manually
chown existing files and NFS is now happy

As you say, there's nothing like standards ... and this is nothing like a
standard <sigh>

Thanks anyway!

[snip]

 
Reply With Quote
 
Mark Hobley
Guest
Posts: n/a

 
      07-13-2008, 11:04 PM
Andrew Woodward <(E-Mail Removed)> wrote:

> Is there a simple solution, or am I going to have to go with NIS / LDAP etc?


I tend to sync the /etc/passwd and /etc/group files. Some distributions
will try to override the numbering schemes with their own system (Debian
does this and it is damn annoying. As a workaround, I mark base-passwd
as held, then replace the update-passwd tool with a dummy script.)

(The shadow and gshadow files do not need to be copied across machines because
they do not contain numerical ugid information, so are unaffected by a
change in numbering system.)

I am using a mixed distribution network consisting mostly of Debian and
Gentoo based systems, though my network was originally Red Hat Linux based. I
also use Ubuntu and Puppy Linux here.

Regards,

Mark.

--
Mark Hobley,
393 Quinton Road West,
Quinton, BIRMINGHAM.
B32 1QE.
 
Reply With Quote
 
Bit Twister
Guest
Posts: n/a

 
      07-14-2008, 12:10 AM
On Sun, 13 Jul 2008 23:21:53 +0100, Andrew Woodward wrote:

> Yeah, I've given up and taken the plunge - eventually got it all (almost)
> reconfigured on the Kubuntu laptop.


I settled on numbering all my accounts starting with 1500.
On install I'll create junk. After install I can append my accounts to
passwd, group, *shadow files.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Home Network (not so simple) Patrick White Home Networking 4 07-30-2005 10:48 PM
Simple Fax Solution for Small Office? Stephen Horrillo Linux Networking 4 03-24-2005 01:08 PM
help with solution to keep 2 servers in sync Pete K. Linux Networking 1 12-11-2004 04:59 AM
groups via NIS. -> different UIDs on server and client. an easy way out? Aron Fischer Linux Networking 0 10-12-2004 10:14 PM
Cisco CW Campus Manager, CW Common Service, CW Device Fault Manager, CW Recource Manager Essentials, NGenious RealTime Monitor, CiscoWorks Routed WAN Management Solution v1.3 [3 CDs], CiscoWorks VPN_Security Management Solution v2.2, CiscoWorks QoS P astra35 Wireless Internet 0 05-21-2004 05:48 PM



1 2 3 4 5 6 7 8 9 10 11