Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: iltasu on October 31, 2006, 01:00:25 PM

Title: How to change usernames?
Post by: iltasu on October 31, 2006, 01:00:25 PM
Hi all, I need to change the username of a user (O_o indeed), which is the right way to achieve this in sme?

On a linux system that uses just the plain files /etc/passwd /etc/shadow /etc/groups, I would just change the old username with the new one in the files, but since as I understood sme uses a template system, paired with an ldap directory and a database accessible via db accounts, I can't understand what and where I have to change to just modify the username (keeping the id, gids, domain access, mail access, etc

Many thanx for the answers! ^_^
Title: Re: How to change usernames?
Post by: raem on November 01, 2006, 01:06:33 AM
iltasu

It's not easily done as you have identified. You would be better off creating a new user and copying across the contents of their user folder and profile and fixing permissions on all that for the new user name using the chown command