renaming user account?

Polytropon freebsd at edvax.de
Wed Mar 18 14:36:48 PDT 2009


On Wed, 18 Mar 2009 12:25:06 -0400, Bill Moran <wmoran at potentialtech.com> wrote:
> However, the canonical way to do this is using the pw command.  pw will
> sanity check all your changes to ensure you don't end up with a groups
> file that doesn't match your master.password, etc.

There *may* be one additional thing you would have to take
care of manually: If you change the user's name, and still
some of his files contain the old name (e. g. in paths where
/home/oldname is used instead of ~ or $HOME), you still have
to change this manually.

You can use tools like the Midnight Commander, function Meta-?,
to search files for the old user name (or use find + grep).

Eventually, check system's mail aliases file, if you had this
user setup to receive mail (e. g. from night jobs).



> It's somewhat better suited for use in scripts than use by humans.

:-)


-- 
Polytropon
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list