Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: mskucher@vertex.tor.hookup.net (Murray S. Kucherawy)
Subject: Re: Changing a users uid?
Date: 1996/08/11	[thread overview]
Message-ID: <4ulm53$qf4@vertex.tor.hookup.net> (raw)
In-Reply-To: 4ulc9r$hua@ns.oar.net


In article <4ulc9r$hua@ns.oar.net>,
Don H. Olive <don@andromeda.campbellsvil.edu> 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                 --



      reply	other threads:[~1996-08-11  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-11  4:00 Changing a users uid? Don H. Olive
1996-08-11  4:00 ` Murray S. Kucherawy [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox