+----- On Tue, 26 Jan 1999 22:04:06 GMT, Keith White writes:
| 
| If for example,i wanted to change a user xxxx to yyyy
| without destroying 
| (a) the home directory
| (b) not invoke copying from /etc/skeleton
| (c) not change the UID
| (d) recursivly change the ownership of all files
| placed across the system by xxxx to yyyy
| (e) retain permissions for the new user yyyy to
| access db files etc.(this last one maybe not
| work).
| 
| How would this be done ??.

Edit /etc/passwd so that the line which starts with xxxx is changed to 
yyyy, do the same with /etc/shadow (I don't recall whether linux has 
vipw, if it has use that). Everything except (e) is now done but all is 
far from well. You may also like to change the name of his home 
directory to /home/yyyy, if you do then you need update /etc/passwd to 
reflect this. You also need to check /etc/groups and /etc/aliases. It's 
probably worthwhile trying to find any files or directories with xxxx 
as a part of their name and last but not least check configuration 
files for xxxx. That should fix most of the problems but expect other 
things to go wrong. I worked on a project that changed the names of 
over 1000 users, I don't know what we would have done without perl to 
handle the actual data changes, even so it was a lot of work trying to 
find all the important places to change the id.

/Michael

-
To get out of this list, please send email to [EMAIL PROTECTED] with
this text in its body: unsubscribe suse-linux-e
Check out the SuSE-FAQ at http://www.suse.com/Support/Doku/FAQ/ and the
archiv at http://www.suse.com/Mailinglists/suse-linux-e/index.html

Reply via email to