Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-13-2008, 04:03 PM
Andrew Woodward
 
Posts: n/a
Simple solution to sync UIDs on NFS?

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
  #2 (permalink)  
Old 07-13-2008, 05:05 PM
Unruh
 
Posts: n/a
Re: Simple solution to sync UIDs on NFS?

Andrew Woodward <andrew@the-woodward-family.co.uk> 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
  #3 (permalink)  
Old 07-13-2008, 10:21 PM
Andrew Woodward
 
Posts: n/a
Re: Simple solution to sync UIDs on NFS?

Unruh wrote:

> Andrew Woodward <andrew@the-woodward-family.co.uk> 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
  #4 (permalink)  
Old 07-13-2008, 11:04 PM
Mark Hobley
 
Posts: n/a
Re: Simple solution to sync UIDs on NFS?

Andrew Woodward <andrew@the-woodward-family.co.uk> 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
  #5 (permalink)  
Old 07-14-2008, 12:10 AM
Bit Twister
 
Posts: n/a
Re: Simple solution to sync UIDs on NFS?

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

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:43 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109