Results 1 to 6 of 6

Thread: user does not have permissions on own home directory?

  1. #1
    Join Date
    Mar 2012
    Beans
    3

    user does not have permissions on own home directory?

    Hello forums,

    I've been using ubuntu desktop for a few years, so I figured i'd be ok installing it on my linode. Unfortunately, I don't actually know what I'm doing. I added a user (my non-root account) via command line, but that user doesn't appear to have write access to it's home directory. Whenever I run irssi, i get

    Code:
    ** ERROR **: Couldn't create /home/username/.irssi directory
    abroting...
    Aborted
    Does anyone know what I did wrong and/or what I need to do to fix it? I don't really know what I'm doing so please try to keep things simple.

  2. #2
    Join Date
    Dec 2007
    Location
    California
    Beans
    4,952
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: user does not have permissions on own home directory?

    What command did you use to create the user? It's possible you didn't even create it's home directory.

    Use the command adduser as opposed to useradd, ie

    Code:
    sudo adduser joeshmuck

    If the home directory exists what are your permissions set to?
    Code:
    ls -ldh ~/
    mine were set to
    Code:
    drwxr-xr-x
    "You can't expect to hold supreme executive power just because some watery tart lobbed a sword at you"

    "Don't let your mind wander -- it's too little to be let out alone."

  3. #3
    Join Date
    Mar 2012
    Beans
    3

    Re: user does not have permissions on own home directory?

    there is a directory, and the permissions look similar. this is the output:

    Code:
    drwxr-xr-x 3 root root 4.0K 2012-03-06 20:23 /home/username
    The "root root" makes me think those are root's permissions and not usernames though.

    edit:

    Would it just be easiest to remove the user and re-make it with adduser? If so, how would I do that if I'd used useradd? (I think I used useradd)

  4. #4
    Join Date
    Dec 2007
    Location
    California
    Beans
    4,952
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: user does not have permissions on own home directory?

    Quote Originally Posted by hoylemd View Post
    Would it just be easiest to remove the user and re-make it with adduser? If so, how would I do that if I'd used useradd? (I think I used useradd)
    Maybe, adduser is an easier way to addusers but a simple chown might do the trick (from a sudo user)
    Code:
    sudo chown -R username:username /home/username
    To remove a user use (if that's the route you want to go)

    Code:
    sudo deluser --remove-home username
    "You can't expect to hold supreme executive power just because some watery tart lobbed a sword at you"

    "Don't let your mind wander -- it's too little to be let out alone."

  5. #5
    Join Date
    Mar 2012
    Beans
    3

    Re: user does not have permissions on own home directory?

    Success! thanks!

  6. #6
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,510
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: user does not have permissions on own home directory?

    Quote Originally Posted by hoylemd View Post
    Hello forums,

    I've been using ubuntu desktop for a few years, so I figured i'd be ok installing it on my linode. Unfortunately, I don't actually know what I'm doing. I added a user (my non-root account) via command line
    .........
    And what is wrong with using the simple GUI tools provided to do this job?
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

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
  •