On Wed, Apr 05, 2000 at 06:58:05AM +1000, Peter Kiem wrote:
| I'm reorganising a RH6.1 box and would like to rename the users I have set
| up on it.
| Is it dangerous to change their userid in /etc/passwd and /etc/shadow or is
| there a better way? Any other files that need editing?
For changing the user numeric id, you must also do a chown of their
files. You probably want to take care to avoid overlaps where two
users have the same numeric id during the transition phase. Some
daemons may want restarting (because they cache this name<->uid
mapping).
For changing user _name_, this is fine.
I try to avoid this myself.
You need to:
- also edit the /etc/group file
- adjust any mail aliases
- rename their home dir to match (most likely)
- announce that their personal web page is now at .../~y instead of
at .../~x
- fix up all their external mailing list subscriptions (or probably better,
put in an
- maybe adjust your backup logs so you can know the old name their
data used to be under...
- even more...
All of this depends on how much infrastructure you've got to deal with.
As far as the box itself goes /etc/{passwd,shadow,group} basicly suffice.
But the change always has wider ramifications :-(
Cheers,
--
Cameron Simpson, DoD#743 [EMAIL PROTECTED] http://www.zip.com.au/~cs/
Once during a poker party, a 8 year old named Douglas was circulating around
the room, pinching ladies on the ass.
My Granny asked "What are you doing, Douglas?"
"Playing a game."
"Can _I_ play too?"
"Uh huh."
At that point, my Grandmother grabbed three inches of Douglas between her
thumbnail and index fingernail, gave a 270 degree twist and asked "Want to
play some more?"
- Paul Austin <[EMAIL PROTECTED]>
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.