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 ??. -- Keith White Email { myfish@dial.pipex.com } - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Keith White wrote:
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 ??.
I'll give this one a whack: 1. Edit /etc/shadow - change user's username 2. Edit /etc/passwd - edit user's username, name, directory 3. mv user's directory to new username I tried it before I sent this. Works fine. George - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
On Tue, 26 Jan 1999, George Toft wrote:
Keith White wrote:
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 ??.
I'll give this one a whack: 1. Edit /etc/shadow - change user's username 2. Edit /etc/passwd - edit user's username, name, directory 3. mv user's directory to new username
I tried it before I sent this. Works fine.
George
And if you're using netscape, don't forget to edit ~/.netscape/preferences.js to reflect new home directory. Check other app config files for similar. Simone -- Simone Richard (Montreal, Canada) simrich@aei.ca - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Simone Richard wrote:
On Tue, 26 Jan 1999, George Toft wrote:
I'll give this one a whack: 1. Edit /etc/shadow - change user's username 2. Edit /etc/passwd - edit user's username, name, directory 3. mv user's directory to new username
I tried it before I sent this. Works fine.
George
Yes thanks to everyone...now have this. Just had to edit /etc/groups as well.
And if you're using netscape, don't forget to edit ~/.netscape/preferences.js to reflect new home directory.
Check other app config files for similar.
Simone
Yep,good call this one.i`m running ver 4.5 of netscape,and it didn`t like the new setup at all. Had to edit the above file by hand,as netscape kept crashing out. Works fine now though.
To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
-- Keith White. - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
participants (3)
-
LinuxAdvocate@iname.com
-
myfish@dial.pipex.com
-
simrich@aei.ca