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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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) |
| |||
| 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 |
| |||
| 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 |
| |||
| 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. |
| ||||
| 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 |