Announcement

Collapse
No announcement yet.

User Account Question

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    User Account Question

    i did some searching on google for this, but did not find any results, hence why i am posting here. so, if this has been answered and i just haven't found it, my apologies.

    i want to be able to have a few user accounts on a Kubuntu desktop computer (using it as a SAMBA file server), but disable specific users from logging in locally (at the actual terminal) - but leave those users with SAMBA share access.

    if my description lacks, or is confusing, please let me know - i will do all i can to clarify.

    i am using Kubuntu 12.04 64bit.

    #2
    Here are a couple of ways that come to mind:
    (Both commands will require that said users have already been created, replace '<username>' with the actual username...be careful not to lock yourself out)

    1. lock the user password (see 'man passwd' for notes on the lock [-l] option...as locking the password only prevents password logins, if you have alternative login methods...such as login enabled ssh keypairs for the users in question)
    Code:
    sudo passwd -l <username>
    2. change the user's login shell to /bin/false
    Code:
    sudo chsh -s /bin/false <username>
    For samba access, you need to create samba passwords for the users (if you haven't already done so) with 'sudo smbpasswd -a <username>'
    Last edited by kubicle; Aug 24, 2012, 01:17 AM.

    Comment


      #3
      absolutely stellar! i'll give this a shot tomorrow - after i get home from work.

      many thanks!

      Comment

      Working...
      X