Results 1 to 3 of 3

Thread: Some help with creating users with no permissions

  1. #1
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Some help with creating users with no permissions

    Hi all,

    I don't want to mess with security settings (just yet) so that I can create users using the GUI on Ubuntu Server. However, I am wondering if there is a way to set the user group so that they don't have any way to login.

    When I created a few users before throwing my server in a corner with no keyboard/mouse/monitor, I was able to create users from gnome using the Users and Groups command. There was an option to create a user with no permissions.

    Is this possible to do from the command line, and if so, how would it be done?

    I've already set those those users to use /dev/null for both the home directory and the shell.

    Hope this makes sense.

    Thanks in advance!

  2. #2
    Join Date
    Jul 2007
    Location
    Bristol, UK
    Beans
    215
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Some help with creating users with no permissions

    Creation of users is done using the command
    Code:
    sudo useradd username
    This will create a locked user who will have no access.

    Code:
    sudo passwd -l username
    will stop an existing user from logging in and/or getting a shell.

    You can then (re)activate them (if required) by changing the password.
    Code:
    sudo passwd username
    Last edited by yknivag; October 15th, 2009 at 09:40 PM. Reason: added sudo

  3. #3
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Some help with creating users with no permissions

    Quote Originally Posted by yknivag View Post
    Creation of users is done using the command
    Code:
    sudo useradd username
    This will create a locked user who will have no access.

    Code:
    sudo passwd -l username
    will stop an existing user from logging in and/or getting a shell.

    You can then (re)activate them (if required) by changing the password.
    Code:
    sudo passwd username
    Thanks!

    I thought that would lock me out of accessing Samba shares with those account names. Apparently not.


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
  •