Find the answer to your Linux question:
Results 1 to 3 of 3
I have a user that I want to give FTP access to WITHOUT SSH access... When SSH i enabled the user can comfortably user the FTP server (vsftpd) but when ...
  1. #1
    Just Joined!
    Join Date
    Jul 2007
    Posts
    4

    Turning off SSH for a user... FTP troubles



    I have a user that I want to give FTP access to WITHOUT SSH access...
    When SSH i enabled the user can comfortably user the FTP server (vsftpd) but when I disable SSH for the user account (See below) I get a 530 login failed .

    I've been turning off SSH for the user by modifying /etc/passwd:
    From:
    user.../bin/sh
    To:
    user..../bin/false


    Any ideas of why the user can't login to teh FTP server when SSH has been disabled?

    Thanks for the help!

  2. #2
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    By changing /bin/sh to /bin/false you are denying login of all types. This will not only prevent ftp access but the ability to run any command. You can edit the /etc/ssh/sshd_config file and add the parameter
    Code:
    DenyUsers john paul george ringo
    As necessary for your user names. Don't forget to restart sshd.

  3. #3
    Just Joined!
    Join Date
    Jul 2007
    Posts
    4
    Quote Originally Posted by bigtomrodney View Post
    By changing /bin/sh to /bin/false you are denying login of all types. This will not only prevent ftp access but the ability to run any command. You can edit the /etc/ssh/sshd_config file and add the parameter
    Code:
    DenyUsers john paul george ringo
    As necessary for your user names. Don't forget to restart sshd.
    Wow what are the odds, i was just listening to a beatles track when i read that post.


    Thanks for the help!

Posting Permissions

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