Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Mar 2009 22:36:38 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Bill Moran <wmoran@potentialtech.com>
Cc:        Jerry McAllister <jerrymc@msu.edu>, Joe Chimento <takhoos@gmail.com>, freebsd-questions@freebsd.org
Subject:   Re: renaming user account?
Message-ID:  <20090318223638.4700f342.freebsd@edvax.de>
In-Reply-To: <20090318122506.8829a34d.wmoran@potentialtech.com>
References:  <b2d67c7a0903180827nc474bcemb03ab70ec7f5dbae@mail.gmail.com> <20090318161616.GA62837@gizmo.acns.msu.edu> <20090318122506.8829a34d.wmoran@potentialtech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 18 Mar 2009 12:25:06 -0400, Bill Moran <wmoran@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, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090318223638.4700f342.freebsd>