Find the answer to your Linux question:
Results 1 to 3 of 3
How do I allow some users the ability to FTP and SSH, and restrict others from doing this? Machine is running Slackware 9.1, ProFTPd. I wish to still allow anonymous ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2005
    Location
    Tennessee
    Posts
    40

    Allow FTP to users restrict other users


    How do I allow some users the ability to FTP and SSH, and restrict others from doing this?

    Machine is running Slackware 9.1, ProFTPd.

    I wish to still allow anonymous FTP, I do not want certain users to connect to their home folders, while allowing others. The same with SSH.

  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    Quote Originally Posted by vern
    I wish to still allow anonymous FTP, I do not want certain users to connect to their home folders, while allowing others. The same with SSH.
    So you want:
    1. Anonymous ftp
    2. User-authenticated ftp (for only some users)
    3. ssh access (for only some users)


    Right? For the first two, you'll need to read through the proftpd documentation to understand how to allow only certain users ftp access (including anonymous). For ftp users, you'll want to give them a nologin shell. For the third, there is a sshd_config directive called AllowUsers you can use.

  3. #3
    Linux Newbie
    Join Date
    Feb 2008
    Location
    Bangalore, India
    Posts
    112
    Few options
    1. chroot for ftp
    2. in case of vsftpd there are file where you can mention the name of user which is allowed to access.
    3. If you have plenty of services for authentication check LDAP for common authentication.
    bigunix.blogspot.com
    Registered Linux User: #476440

Posting Permissions

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