Results 1 to 4 of 4

Thread: usermod woes

Hybrid View

  1. #1
    Join Date
    May 2008
    Beans
    99

    usermod woes

    I added a user with no home dir thinking when they logged on they wouldnt be able to see or do anything, I was wrong.

    So I used

    Code:
    usermod -d /new/dir/here username
    Now when logging in using that username I get

    Code:
    /usr/bin/xauth:  timeout in locking authority file /new/dir/here/.Xauthority
    How can I correct this?

    Also how do I restrict that user to that folder only?

    Easiest way, I think, is to delete the user and start again but Id like to know how to fix it.

    I checked in the /etc/passwd and it shows the home dir for the user to be what I set it at.
    Someday something constructive will go here.

  2. #2
    Join Date
    May 2009
    Location
    Fareham, UK
    Beans
    Hidden!
    Distro
    Xubuntu 13.04 Raring Ringtail

    Re: usermod woes

    Perhaps its permissions of the .Xauthority file in the new home folder, my is 600, check yours is the same, what exactly are you trying to achieve?
    Catch me on Freenode - imark

  3. #3
    Join Date
    May 2008
    Beans
    99

    Re: usermod woes

    Basically just a user with a new home directory and them to be restricted to that dir.
    Someday something constructive will go here.

  4. #4
    Join Date
    May 2009
    Location
    Fareham, UK
    Beans
    Hidden!
    Distro
    Xubuntu 13.04 Raring Ringtail

    Re: usermod woes

    a standard user will only have write access to their own home folder, they must has read access to other files or you could not run the system at all with that user.

    if you mean to make it so new users cannot read your home directory just create a normal user in the standard way, and use
    Code:
    chmod o-r ~
    to block read access to all other users, you don't need to place their home folder anywhere special
    Last edited by CaptainMark; January 20th, 2013 at 05:50 PM.
    Catch me on Freenode - imark

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
  •