change user login - Debian

This is a discussion on change user login - Debian ; Aby recommendations how best to change a use login ID from "abc" to "def"? Just create new, copy "abc data" from ~abc to ~def? rename and chown? Thanks. -- Snow White's dwarfs become gnomes -- http://news.bbc.co.uk/1/hi/england/kent/4349726.stm The world has gone ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: change user login

  1. change user login

    Aby recommendations how best to change a use login ID from "abc" to
    "def"?

    Just create new, copy "abc data" from ~abc to ~def? rename and chown?

    Thanks.

    --
    Snow White's dwarfs become gnomes
    -- http://news.bbc.co.uk/1/hi/england/kent/4349726.stm
    The world has gone mad.

  2. Re: change user login

    On Wed, 08 Feb 2006 07:14:31 +0000, Walter Mitty wrote:

    > Aby recommendations how best to change a use login ID from "abc" to "def"?
    >
    > Just create new, copy "abc data" from ~abc to ~def? rename and chown?


    You should be able to change abc to def in /etc/passwd, /etc/shadow,
    and /etc/group (don't miss /home/abc in /etc/passwd).
    Then mv /home/abc to /home/def and login.


    rich



  3. Re: change user login

    Walter Mitty wrote:
    > Aby recommendations how best to change a use login ID from "abc" to
    > "def"?
    > Just create new, copy "abc data" from ~abc to ~def? rename and chown?


    # usermod -l def abc

    You may also want to change and relocate the home directory. You might

    need to tweak group names/memberships. You might also have to deal
    with
    issues such as mail spool files, sudoers entries, etc.

    references/excerpts:
    usermod(8)


+ Reply to Thread