Koozali.org: home of the SME Server

How to change usernames?

iltasu

How to change usernames?
« 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! ^_^

Offline raem

  • *
  • 3,972
  • +4/-0
Re: How to change usernames?
« Reply #1 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
...