Re: changing user name
There is also a slightly less hardcore command, usermod, which lets you
change login-name, home directory, group, uid, etc, without getting
involved with the password file. Eg
usermod -l <new_user_name> -d <new_home_dir> -m <old_user_name>
HTH
Rich
Marlon Urias wrote:
>
> Thanks for the help! marlon
>
> On Thu, 29 Apr 1999, Debian project development discussion wrote:
>
> > On Thu, Apr 29, 1999 at 05:57:46PM -0700, Marlon Urias wrote:
> > > If I get a user who wants to change only their username how do I go about
> > > doing a thorough job? Simply changing the passwd entry doesnt seem to be
> > > the right thing because then all the files with ownership
> > > oldLogin.oldLogin
> > > wont be availabe for user newLogin. Thanks for the help.
> >
> > Actually, changing the name in the password file is exactly what you want
> > to do. Everything else in the system is using the user ID number to keep
> > track of who owns what. (The user ID is the third field in the passwd
> > file.) Use the ``vipw'' utility, as it will do the right thing with
> > respect to shadow password files, etc. Also, if a group was created with
> > the same name as the user, you might wish to edit the /etc/group file and
> > change it there as well.
> >
> >
> > ------------------------------------------------------------------------
> > Please send Debian-related email to debian-user @ orbits.com.
> >
> > For custom software, see: http://www.SilberSoft.com/
> >
> >
> >
>
> --
> Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
Reply to: