On Sun,12.Apr.09, 10:57:00, Zhengquan Zhang wrote:
>
> So basically I don't want to use olduser as my username again and want
> to change 'everything' associated with olduser to become newuser. such
> the home directory, spoolfile, cron, etc... and I dont want the olduser
> appear again.
AFAIK filesystems don't know about usernames, just uid. I *think* I did
it this way:
- logout my user and switch to single user (or reboot into single user
mode)
- edit /etc/passwd /etc/group and other relevant files
('grep -r oldusername /etc/*' helps) and change oldusername to
newusername, but leave the uid intact.
- rename homedir and all other instances that still use old user (ex.
/var/home/username)
It took some work to finally change all instances of oldusername to
newusername, but it's doable. No guarantee though and make good backups.
Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)
Attachment:
signature.asc
Description: Digital signature