Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* Changing a users uid?
@ 1996-08-11  4:00 Don H. Olive
  1996-08-11  4:00 ` Murray S. Kucherawy
  0 siblings, 1 reply; 3+ messages in thread
From: Don H. Olive @ 1996-08-11  4:00 UTC (permalink / raw)



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.

--
  Don H. Olive, Physics Department    don@campbellsvil.edu
  Campbellsville University           http://www2.campbellsvil.edu/~don
  CPO 1265, One University Drive      +1.502.789.5243 voice/+1.502.789.5170 fax
  Campbellsville KY, 42718 USA        PGP:  finger don@cygnus.campbellsvil.edu



^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: Changing a users uid?
@ 1996-08-14  4:00 Don H. Olive
  0 siblings, 0 replies; 3+ messages in thread
From: Don H. Olive @ 1996-08-14  4:00 UTC (permalink / raw)
  Cc: mskucher


You were correct.  I had not rehashed the /etc/passwd file.  I did that
and the uid for news returns the correct response.  I.E. when I type 
"id news"  I get "uid=8(news) gid=8(news)" as I want. 

Now something else is wrong now though.  After I made the change,
swapped the uid of news and lp and rehashed the passwd file, I'm getting 
an error when I want to "su news."  It returns:  "su: Unknown id:
news."  
"su news" worked before.  I changed the lp and news uids back, rehashed
the
passwd file and then "su news" began working again.  Something is still
not
quite right.  Ideas?


-- 
  Don H. Olive, Physics Department    don@campbellsvil.edu
  Campbellsville University           http://www2.campbellsvil.edu/~don
  CPO 1265, One University Drive      +1.502.789.5243
voice/+1.502.789.5170 fax
  Campbellsville KY, 42718 USA        PGP:  finger
don@cygnus.campbellsvil.edu



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1996-08-14  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-08-11  4:00 Changing a users uid? Don H. Olive
1996-08-11  4:00 ` Murray S. Kucherawy
  -- strict thread matches above, loose matches on Subject: below --
1996-08-14  4:00 Don H. Olive

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