Sunday, January 30, 2011

Without using "useradd" command , Create a linux user??????????

Step 1:
 mkdir /home/XXX     ===>> Create Home Dir.

Step 2:
vim /etc/passwd         ===>> Put the Corresponding entry for this file.

Step 3:
vim /etc/shadow         ===>> Put the Corresponding entry for this file.

Step 4:
vim /etc/group            ===>> Put the Corresponding entry for this file.

Step 5:
 vim /etc/gshadow      ===>> Put the Corresponding entry for this file.

Step 6:
cp -r /etc/skel/.* /home/XXX/       ===>> Copy all hidden files to corresponding user home dir.


                   ==========>>>>>END<<<<<==========





5 comments:

  1. how to type encrypted password in shadow file?

    ReplyDelete
  2. Hai Suresh,

    Sorry for the Late reply. First u make a encrypted passwd and past in to /etc/shadow.

    Procedure:
    Type the below command:
    #md5pass [passowrd]
    you get some encrytped letters. just copy and past the /etc/shadow file. carefully.

    ReplyDelete
  3. K one more question... if possible to know the encrypted password of the word?

    ReplyDelete
  4. @Suresh,

    Sitll i am searching. that kind of option. if u know that. share with me.

    ReplyDelete