Find the answer to your Linux question:
Results 1 to 6 of 6
Hi guys, I'm wondering how to add users through the etc/passwd instead of the usual adduser command? thanks!...
  1. #1
    Just Joined!
    Join Date
    Feb 2007
    Posts
    3

    How to add users?

    Hi guys,

    I'm wondering how to add users through the etc/passwd instead of the
    usual adduser command? thanks!

  2. #2
    Linux Enthusiast
    Join Date
    Jun 2005
    Location
    The Hot Humid South
    Posts
    602
    Run the following command:
    Code:
    man -S5 passwd
    It describes what each field is used for.
    "Today you are freer than ever to do what you want, provided you can pay for it!" --Bad Religion

  3. #3
    Just Joined!
    Join Date
    Feb 2007
    Posts
    3
    I don't think you understand what I'm saying. I don't want to use adduser or useradd command. I know there's a way to just edit the etc/passwd and input
    example: bdilean:X:500:501::/home/bdilean:/bin/bash
    After I input that new entry and save, I go create a directory home/bdilean.
    I'm suppose to add some files into into home/bdilean I think but I'm not sure
    what I'm suppose to add. Any clues?

  4. #4
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,212
    Quote Originally Posted by bdilean
    I'm suppose to add some files into into home/bdilean I think but I'm not sure
    what I'm suppose to add. Any clues?
    Nothing really, .bashrc & .bash_profile files can be convenient though.
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

  5. #5
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    I suggest that you read
    Code:
    man 5 passwd
    You will need to create a ~/.bashrc and ~/.bash_profile for the new user. These contain commands to run on startup.

    Also, you should use the 'passwd' command to set the user's password. If you don't, you will need to manually encrypt the password and set it in /etc/shadow.

    Do you have any specific questions?
    DISTRO=Arch
    Registered Linux User #388732

  6. #6
    Just Joined!
    Join Date
    Feb 2007
    Posts
    3
    I'll give it a shot, thanks for help folks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...