From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,e9469c9166170055 X-Google-Attributes: gidf678f,public X-Google-Thread: fee84,e9469c9166170055 X-Google-Attributes: gidfee84,public From: mskucher@vertex.tor.hookup.net (Murray S. Kucherawy) Subject: Re: Changing a users uid? Date: 1996/08/11 Message-ID: <4ulm53$qf4@vertex.tor.hookup.net>#1/1 X-Deja-AN: 173576770 references: <4ulc9r$hua@ns.oar.net> organization: HookUp Communication Corporation, Oakville, Ontario, CANADA keywords: uid newsgroups: comp.unix.osf.osf1,comp.unix.osf.misc nntp-posting-user: mskucher In article <4ulc9r$hua@ns.oar.net>, Don H. Olive wrote: >I've had no success changing a users uid. In order to get two >differenct machines to share a news spool directory via NFS, I'd like >to have the username news on both machines to have the same uid. I've >changed the uid field in the /etc/passwd file and rebooted but still, >the user news has the old uid. There must be some other file which >defines uid's. This is what is in the /etc/passwd file: > >news:Nologin:8:8:news:/usr/users/news:/bin/sh > >And When I type "su news" then "id" I get the following: > >uid=17(news) gid=8(news) > >Which is the old uid. This shouldn't be so hard. Did you rehash the password file? If /etc/passwd.dir and /etc/passwd.pag exist, their contents are used before /etc/passwd. You can even remove /etc/passwd and things still work, as long as the other two files are there. /usr/sbin/mkpasswd /etc/passwd ...is the command to use. If you edited the password file with "vipw", it should have done this for you. -- Murray S. Kucherawy ====================================== mskucher@hookup.net Vice-President, Software Services HookUp Communication Corporation (905) 847-8000 NIC Handle "MSK" Oakville, Ontario, CANADA -- EMACS: Eight Megs And Constantly Swapping --