Find the answer to your Linux question:
Results 1 to 8 of 8
New installation of a Slackware 12.0 subscription here. For some reason, useradd is giving me problems. I have a root user, but useradd isn't adding a normal usable account. It ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! Simpatico's Avatar
    Join Date
    May 2007
    Location
    Tethys
    Posts
    16

    Trouble creating a user account


    New installation of a Slackware 12.0 subscription here. For some reason, useradd is giving me problems.

    I have a root user, but useradd isn't adding a normal usable account.

    It doesn't create a /home/username directory, and I think this is the reason why I also can't get startx to give me anything. startx brings up KDE fine under the root account.

    I've looked at the man pages, but can't figure out if I need the -d or -D switch. Any hints would be appreciated.

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    What about the adduser command? Does it work, or do you ge the same results?
    oz

  3. #3
    Just Joined! Simpatico's Avatar
    Join Date
    May 2007
    Location
    Tethys
    Posts
    16
    Sorry, I meant adduser. It gives me an account I can log into, after I change the password. But startx as this user gives me a blank screen and a timeout after a couple of minutes. Like I said, root has no problem bringing up KDE. This makes no sense to me, because they're both using the same xorg.config.

    Also, there's no /home/username directory - which is probably why startx doesn't work.

    I'm sharing a /home partition with Fedora, but using different usernames. That shouldn't be a problem, but I'm beginning to wonder.

  4. #4
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    I've never tried sharing a /home directory, but take a look at this howto and see if it offers any clues:

    Dual boot with two Linux, using the same home directory | Linux Operating system; Configuration, How to and news focused on (Fedora, Debian, Ubuntu, Centos)

    I'm thinking the problem might have something to do with permission issues and your UID/GUID as discussed toward the bottom of the page. Not really sure, though.
    oz

  5. #5
    Just Joined! Simpatico's Avatar
    Join Date
    May 2007
    Location
    Tethys
    Posts
    16
    Apparently useradd and adduser are both valid commands, and I simply was entering the wrong one. So, I wasn't being prompted for room number, phone number, and all the other info. It was simply adding the login and nothing else.

    Everything is working fine with sharing /home with Fedora. As long as usernames are kept separate, there is no problem.

    For the benefit of others who might be reading: there are problems when using the same username on the same /home partition between two different distributions. That is not a good idea.

    ozar, thank you! My system and Slackware have been very unfriendly toward each other for 2 years. I now finally have it running.

  6. #6
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Great! Glad you got it all worked out...
    oz

  7. #7
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,134
    Apparently adduser will go ahead and create the
    home directory for you. useradd -d with no arguments
    should do the same. I've tripped on this issue before.

  8. #8
    Just Joined! Simpatico's Avatar
    Join Date
    May 2007
    Location
    Tethys
    Posts
    16
    Quote Originally Posted by rcgreen View Post
    Apparently adduser will go ahead and create the
    home directory for you. useradd -d with no arguments
    should do the same. I've tripped on this issue before.
    I didn't use the -d switch, so that's what was happening. It's easy to do.

    I appreciate the reply.

Posting Permissions

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