Results 1 to 2 of 2
  1. #1

    Jail shell question at ubuntu

    Hello,

    I created a new user account for ftp use and gave access to /var/www directory. It also got ssh permissions like root (/bin/sh).

    So the point is I want to use that user as a puppet for root. So I won't allow root logins to ssh.

    So basicly that user should only access to an empty folder on server (maybe /var/www/default). When i login i will use "su root" to get root permissions and act like root.

    So how can i do this?

    I dont have any panel on my server.

  2. #2
    Found this, hope it helps,

    Open /etc/ssh/sshd_config file

    Use vi command:
    # vi /etc/ssh/sshd_config

    Deny root user access

    Append or modify as follows to block root user:
    DenyUsers root

    If you want to block additional user just append names to DenyUsers
    DenyUsers root, user2, user3

    Save and close the file. Restart sshd service:
    #/etc/init.d/sshd restart

Similar Threads

  1. can a jail shell su to root?
    By sharmaine1111 in forum Hosting Security and Technology
    Replies: 6
    Last Post: 04-30-2010, 05:40 AM
  2. Good and easy jail shell solution ?
    By WebHostDog in forum Hosting Security and Technology
    Replies: 4
    Last Post: 12-10-2009, 04:28 PM
  3. change jail shell to normal shell
    By super2host in forum Hosting Security and Technology
    Replies: 20
    Last Post: 07-08-2008, 08:05 PM
  4. Cpanel: Jail Shell
    By SinnerZone in forum Hosting Software and Control Panels
    Replies: 4
    Last Post: 06-10-2003, 09:59 PM
  5. Cpanel Jail Shell environment
    By sprintserve in forum Hosting Security and Technology
    Replies: 4
    Last Post: 04-21-2003, 12:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •