add user - Unix

This is a discussion on add user - Unix ; hello all, how to add new user A that has same content of an existing user B; (creating a copy of another user), thanks maca...

+ Reply to Thread
Results 1 to 2 of 2

Thread: add user

  1. add user

    hello all, how to add new user A that has same content of an existing
    user B;
    (creating a copy of another user),
    thanks
    maca


  2. Re: add user

    On 2 Jan 2006 02:09:21 -0800, maca wrote:
    > hello all, how to add new user A that has same content of an existing
    > user B;
    > (creating a copy of another user),


    Hmmm, to answer what you asked. You create the new account, copy the
    files, and set the owner of all files in the new account as the new
    user.

    after creating your new user, assuming /home/new_user here

    cd ~/user_to_copy_from
    tar cfp - . | (cd /home/new_user && tar --overwrite xpf -)
    cd /home
    chown -R new_user_id:new_user_group new_user

    Then doing a groups user_to_copy_from
    will show you what groups you have to add to new_user

    Downside of this is new_user has any saved passwords from
    user_to_copy_from's mail app, browser pw cookies,..


+ Reply to Thread