Results 1 to 4 of 4

Thread: Cannot add user using Useradd command

  1. #1
    Join Date
    Sep 2010
    Posts
    54

    Cannot add user using Useradd command

    Yesterday, I started to work on my Linux project and as I go forward to this project I found a strange thing that is I could not add user. I have used useradd command for that, but then also I am not able to create new user. I want to create user and assign them to different groups like admin etc. but I could not do this. If anyone having knowledge on this then, do reply me. Any suggestions will appreciate. Thanks in advance.

  2. #2
    Join Date
    May 2008
    Posts
    2,680

    Re: Cannot add user using Useradd command

    In my point view, you should try to create new user by login as root, when you work on project and if you have not log in as root then this kind of query occurs. Next time when you work on your project the login as root and then try to add user. By doing this you can new user here i have given you command for the same. I hope this information may help you.
    • #cd /usr/sbin
    • #./useradd username

  3. #3
    Join Date
    Apr 2009
    Posts
    1,107

    Re: Cannot add user using Useradd command

    I think the user which you are created is may be existing but you may not that, I think your should find that user by using this command
    • #find / -name useradd.

    By giving this command you can see the entire user which you have created in your directory. If you cannot see user which you created in user, then I think you should again create it using adduser command instead of useradd command. If you are having any other query then reply me.

  4. #4
    Join Date
    Nov 2009
    Posts
    865

    Re: Cannot add user using Useradd command

    I was getting same problem as you are getting now, i can pass whole steps for adding user but then also i cannot find it. Then i tried to add user in different way that is, when you adding new user then add it by editing such as /etc/passwd, /etc/shadow, and /etc/group manually and then you can create a directory for that. I haven’t tried this for adding new user, but I think this will work for you.

Similar Threads

  1. Importance of Command Line User Environment in Linux
    By aFRODITA in forum Operating Systems
    Replies: 4
    Last Post: 12-11-2010, 07:31 AM
  2. useradd: cannot create directory
    By MobiNuX in forum Operating Systems
    Replies: 2
    Last Post: 30-07-2009, 10:51 PM
  3. Create an elevated user through command prompt
    By Sacchidananda in forum Operating Systems
    Replies: 3
    Last Post: 16-07-2009, 11:02 AM
  4. How to create a user webmin via command line in Linux
    By Elsie in forum Networking & Security
    Replies: 3
    Last Post: 25-04-2009, 06:26 PM
  5. Replies: 4
    Last Post: 24-12-2008, 12:39 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,716,272,270.64393 seconds with 17 queries