Renaming a User

Deron Meranda deron.meranda at gmail.com
Thu Jun 19 17:37:02 UTC 2008


>>> I was wondering if it's possible to quickly and easily switch a
>>> username on a samba controlled domain.

>> sure but you'd have to change...
>>
>> /etc/passwd (or wherever user accounts are stored)
>> /etc/shadow (or wherever user passwords are stored)
>> the users $HOME directory
>> smbpasswd (or tdbpassdb or wherever samba user accounts/passwords are
>> stored)

Also, if you are using locally stored email, check for files under
/var/spool/mail, and rename them to match the new username
where needed.

Do the same thing for crontab files too.  Look under /var/spool/cron

-- 
Deron Meranda




More information about the fedora-list mailing list