Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 28
  1. #1
    Member bspiller's Avatar
    Join Date
    Jun 2008
    Location
    Paddock Lake, WI
    Posts
    13
    cPanel/Enkompass Access Level

    Root Administrator

    Default Ability to disable SFTP [Case 59374]

    I submitted a support ticket due to issues with users being able to log into SFTP with SSH disabled. They recommended I submit a thread here requesting this feature so it doesn't need to be done by hand on all accounts.

    Can we please get a feature in WHM Manager to specify a shell that does not allow SFTP access.

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: Ability to disable SFTP [Case 59374]

    Quote Originally Posted by bspiller View Post
    I submitted a support ticket due to issues with users being able to log into SFTP with SSH disabled. They recommended I submit a thread here requesting this feature so it doesn't need to be done by hand on all accounts.

    Can we please get a feature in WHM Manager to specify a shell that does not allow SFTP access.
    I have updated the title of this thread to better describe the functionality you desire so others looking for this functionality can vocalize their support or input.

  3. #3
    Member
    Join Date
    Jul 2004
    Posts
    185

    Default re: Ability to disable SFTP [Case 59374]

    Yes, it is disturbing that any user with SFTP access can browse around root level (/) system folders. Is there really no way currently of stopping this, short of disabling FTP/SSH altogether?

  4. #4
    Registered User
    Join Date
    Dec 2004
    Posts
    4

    Default re: Ability to disable SFTP [Case 59374]

    I just discovered that SFTP users can go above the home directory and browse all root level system folders. I thought disabling shell access for the account would stop it, but it didn't.

    What we would like is simply to keep all FTP/SFTP access to the users account, as well as SSH access, if enabled.

  5. #5
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: Ability to disable SFTP [Case 59374]

    Quote Originally Posted by dmwalk View Post
    I just discovered that SFTP users can go above the home directory and browse all root level system folders. I thought disabling shell access for the account would stop it, but it didn't.

    What we would like is simply to keep all FTP/SFTP access to the users account, as well as SSH access, if enabled.
    The system (SFTP) user is unable to read, write or execute any file they are not given permission to (regardless of ability to read a directory's contents). Additionally, this ability for system users to traverse above their home directory has been a function of *nix systems for decades.

  6. #6
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jun 2010
    Location
    Canary Island - Spain
    Posts
    26
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default re: Ability to disable SFTP [Case 59374]

    You can use chroot to limit sftp access to home accounts or disable username/password authentication and generate RSA Keys only for authorized users.
    Alejandro Galtier Hernández, CEO, VCP410, VCP510
    VPS Windows,VPS Linux,Enkompass VPS,cPanel VPS,vSphere 5 VPS

  7. #7
    Member
    Join Date
    Jul 2011
    Posts
    6

    Default re: Ability to disable SFTP [Case 59374]

    cPanel, I also wish that my clients using sftp would not have the ability to go beyond there home directory. Yes, the can't make changes, but they sure can download the files like /etc/passwd, config files to see which ports are being used, and others. This is not an easy thing for any server admin to swallow.

    As to your statement that
    has been a function of *nix systems for decades
    Should not be your only answer. I would hope that after decades we would fine a better solution.

    Anyways, I think there is.
    Jailkit

    I have used ISPConfig before with Jailkit which does exactly that. When creating the user it adds some info to there home directory.

    Code:
    user:x:5001:5001::/var/www/clients/client0/web1/./home/user:/usr/sbin/jk_chrootsh
    This allows me to login with sftp but I cannot see or change directories beyond "/var/www/clients/client0/web1/" instead it just shows as "/" as if that is all there is to my account.

    So instead of seeing this
    Code:
    /var/www/clients/client0/web1/
    /var/www/clients/client0/web1/public_html
    /var/www/clients/client0/web1/public_html/index.html
    I see this
    Code:
    /
    /public_html
    /public_html/index.html
    I hope this helps and maybe we can have this feature in the future.

    Thanks

  8. #8
    Member monarobase's Avatar
    Join Date
    Jan 2010
    Location
    France
    Posts
    387
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: Ability to disable SFTP [Case 59374]

    +1 this should make things easier for SFTP users to understand as it acts the same as FTP.

  9. #9
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: Ability to disable SFTP [Case 59374]

    So essentially you don't want SFTP disabled entirely (like the title of this thread implies), just jail it so users cannot go above their home directory?

  10. #10
    Member bspiller's Avatar
    Join Date
    Jun 2008
    Location
    Paddock Lake, WI
    Posts
    13
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: Ability to disable SFTP [Case 59374]

    Quote Originally Posted by cPanelDavidG View Post
    So essentially you don't want SFTP disabled entirely (like the title of this thread implies), just jail it so users cannot go above their home directory?
    That would work.

  11. #11
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2003
    Location
    Houston, TX
    Posts
    378
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: Ability to disable SFTP [Case 59374]

    +1 for jailing sftp

  12. #12
    Member monarobase's Avatar
    Join Date
    Jan 2010
    Location
    France
    Posts
    387
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: Ability to disable SFTP [Case 59374]

    I too like the idea of jailing SFTP, once jailed I do not see the need / point of actually disabling it.

  13. #13
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: Ability to disable SFTP [Case 59374]

    Quote Originally Posted by jack01 View Post
    Yes, it is disturbing that any user with SFTP access can browse around root level (/) system folders. Is there really no way currently of stopping this, short of disabling FTP/SSH altogether?
    Following up with this, switching shell access from None to Jailed will prevent this. Admittedly, this is not an intuitive solution.

  14. #14
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default re: Ability to disable SFTP [Case 59374]

    Quote Originally Posted by spadmin View Post
    Jailkit
    So, basically jailed shell but limited further to just allow SFTP commands. Or is there some additional benefit I inadvertently overlooked with this system?

  15. #15
    Member
    Join Date
    May 2011
    Posts
    9

    Default re: Ability to disable SFTP [Case 59374]

    I wonder about an SFTP access to the same jailed space configured by Webdisk. Customers just demands a place to put their files but most of them reject the Webdisk. They insist to use SFTP to use their own programs.
    Maybe adding another port to Webdisk, to allow SFTP access to the same space.

Similar Threads & Tags
Similar threads

  1. Planned for 11.32 Ability to disable backing up Logaholic data [Case 57159]
    By LDHosting in forum Feature Requests for cPanel/WHM
    Replies: 12
    Last Post: 05-17-2012, 04:31 PM
  2. Email Delivery Route Icon, ability to disable [Case 47931]
    By cPanelTristan in forum Archived Feature Requests
    Replies: 7
    Last Post: 05-02-2012, 01:01 PM
  3. Planned for 11.32 Email Delivery Route Icon, ability to disable [Case 47931]
    By cPanelTristan in forum Feature Requests for cPanel/WHM
    Replies: 7
    Last Post: 05-02-2012, 01:01 PM
  4. Filed with Developers Ability to disable cgi-sys scripts on per-account basis [Case 55759]
    By cPanelDavidG in forum Feature Requests for cPanel/WHM
    Replies: 3
    Last Post: 03-30-2012, 11:07 AM
  5. Ability to disable WHM change password? [Case 56229]
    By cmichaelis in forum Feature Requests for cPanel/WHM
    Replies: 1
    Last Post: 03-12-2010, 03:04 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube