Results 1 to 2 of 2

Thread: vsftpd users restrictions

  1. #1
    AO ├╝bergeek phishphreek's Avatar
    Join Date
    Jan 2002

    vsftpd users restrictions

    Hi all,

    I've never needed to use a FTP service. I'm just setting it up for the hell of it.

    I'm using vsftpd on a Red Hat 9 box.
    (still haven't upgraded to fedora or any other distro on this server)

    I want to allow a test user to login via ftp but only permit them to browse/access certain folders in /var/ftp.

    I've created a group called "ftp". I set the permissions on /var/ftp/ so group can access it.

    I created a user "testing" and make their home drive /var/ftp/pub and set shell to /sbin/nologin

    I can log into the ftp server using this account, but disallowed them a shell.

    However, they can still browse files outside /var/ftp even though the ONLY group they are part of is "ftp" which I only set group permissions to /var/ftp

    Anyone know what I did wrong?

    Thanks in advance.


    Nevermind. I had to enable chroot() users to their home directories in /etc/vsftpd/vsftpd.conf and then create a list of the users I wanted to restrict.
    Quitmzilla is a firefox extension that gives you stats on how long you have quit smoking, how much money you\'ve saved, how much you haven\'t smoked and recent milestones. Very helpful for people who quit smoking and used to smoke at their computers... Helps out with the urges.

  2. #2
    PHP/PostgreSQL guy
    Join Date
    Dec 2001
    I was about to say, chroot is your answer as it "hardcodes" the acceptable directory as absolute and therefore, when they do cd /, they don't get any further down the directory tree than their absolute base directory.

    Personally, I'm glad to see vsftp instead of WS-FTP...the latter was alright but the former is easier to manage, IMHO.
    We the willing, led by the unknowing, have been doing the impossible for the ungrateful. We have done so much with so little for so long that we are now qualified to do just about anything with almost nothing.

Posting Permissions

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