Announcement

Collapse
No announcement yet.

limit shell account

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

    limit shell account

    how i can limit shell account?

    i see /etc/security/limits.conf for limit proces

    name hard 5 ? are is this ok?

    but i don't know wher i can limit access

    exemple: i whont limit access for user "test" i use command for add "adduser test" and create /home/test/ but when i login with "test" i have full access... i just use cd .. and i see folder ... how i limit user test access on only home directory?

    Sorry for my bad english :S

    #2
    Re: limit shell account

    sudo usermod -s /bin/rbash test

    Comment


      #3
      Re: limit shell account

      how i can abate thet command?

      Comment


        #4
        Re: limit shell account

        sudo usermod -s /bin/bash test

        In the first case you set user test's shell to rbash (restricted bash) as stored in /etc/passwd. With this command you change it back to unrestricted bash shell.

        Comment

        Working...
        X