Unix Technical Forum

username sync

This is a discussion on username sync within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I've got my slackware laptop running NFS with my Mandrake desktop as a client. I can mount the required ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 09:32 PM
Hugh Lutley
 
Posts: n/a
Default username sync

I've got my slackware laptop running NFS with my Mandrake desktop as a
client. I can mount the required directory no problem but I seem to have
a problem with the sync of my usernames. My username id on the desktop is
501 but on the laptop it's 1000.... So I have a sync problem ja???

How do I sync usernames?????



--
/* Hugh Lutley aKa Spewy
* This message was created on either
* Aurora 1.0 Linux on Sparcstation 20 <- 2 sm71 SuperSparc, 192mb ram ->
* Mandrake 9.2 Linux on Athlon XP <- Gnome 2.4 rulez KDE ->
* Slackware 9.1 Linux on PIII <- Command line rulez ->
* NO GOING BACK TO WINDOWS THIS TIME!!!!!!!
*/
(created in ViM)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-18-2008, 09:33 PM
William Hunt
 
Posts: n/a
Default Re: username sync

On Sun, 21 Dec 2003, Hugh Lutley wrote:

> I've got my slackware laptop running NFS with my Mandrake desktop as a
> client. I can mount the required directory no problem but I seem to have
> a problem with the sync of my usernames. My username id on the desktop is
> 501 but on the laptop it's 1000.... So I have a sync problem ja???
> How do I sync usernames?????


normally, you would avoid the problem by using 'adduser' to create a new
user and assign it the appropriate UID, assuming both the name and number
were not already assigned.

you should be able to use find to do most of it, maybe like:
find / -uid ${OLDUID} -exec chown ${NEWUID} {} \;

then edit /etc/passwd to change UID there, the number between the second
and third ':'.

this might seriously piss off any software that maintains it's own
UID database, but idunno.

you could test the idea easily, create dummy user, give it some data,
test UID change and see if it works.

RTFM find and chown for command specifics.
find is a powerful tool and worth the time spent learning it.

--
William Hunt, Portland Oregon USA

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-18-2008, 09:33 PM
Simon
 
Posts: n/a
Default Re: username sync

On Sun, 21 Dec 2003 22:33:33 +0000, Hugh Lutley
<hugh@richieDELELTETHISBITkotzen.com> wrote:
> How do I sync usernames?????


The easiest way of doing it is to use the same UID on both systems.
Failing that, you need to change each UID in the /etc/passwd file to
the UID of that user on the local machine.


--
Simon <simon@no-dns-yet.org.uk> **** GPG: F4A23C69
"We demand rigidly defined areas of doubt and uncertainty."
- Douglas Adams

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-18-2008, 09:34 PM
Stanislaw Flatto
 
Posts: n/a
Default Re: username sync



Hugh Lutley wrote:
> I've got my slackware laptop running NFS with my Mandrake desktop as a
> client. I can mount the required directory no problem but I seem to have
> a problem with the sync of my usernames. My username id on the desktop is
> 501 but on the laptop it's 1000.... So I have a sync problem ja???
>
> How do I sync usernames?????


Evidently you created an user on each distro accepting the defaults.
But the default numbering in each is different so you have a user of the
same name but different UID's.
This is Linux, create on each install user with UID number which YOU
assign so both installs will agree.
Slackware != Mandrake so those little hickups are expected.

Have fun.

Stanislaw.
Slack user from Ulladulla.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-18-2008, 09:34 PM
Alan Hicks
 
Posts: n/a
Default Re: username sync

In alt.os.linux.slackware, Hugh Lutley dared to utter,
> How do I sync usernames?????


The only answer you've gotten so far is "manually". There's an easier
way to take care of this using NIS, NYS, or MIS+. These are Unix
servers that send out the user information to other clients. This
allows you to log onto any NIS client using the username and password
that is running on the NIS server. Check the numerous security
vulnerabilities on any of these pieces of software before you deploy
them.

--
It is better to hear the rebuke of the wise,
Than for a man to hear the song of fools.
Ecclesiastes 7:5
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

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


All times are GMT. The time now is 08:13 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com