hirohitosan Posted January 22, 2007 Share Posted January 22, 2007 Hello. Sorry if this is a basic question. I installed on my computer proftpd. I create 2 users: user01 and user02. When I connect to my server through ftp command, both user can see all my computer. I want just one of them to can see all my files (for ex. user01) and the other I don't want to see the root directory (I want that user02 can see just the files from his /home/user02 directory). Can you help me? Thanks. Link to comment Share on other sites More sharing options...
drsatch Posted January 23, 2007 Share Posted January 23, 2007 Look through /etc/proftpd.conf and look for this section: # To cause every FTP user to be "jailed" (chrooted) into their home # directory, uncomment this line. DefaultRoot ~ Uncomment DefaultRoot ~ That should do it. Link to comment Share on other sites More sharing options...
hirohitosan Posted January 23, 2007 Author Share Posted January 23, 2007 Uncomment DefaultRoot ~That should do it. ok, thanks, but now all users are looked in their own home directory, but I want one of them to don't be looked and can see the root directory. It is possible? Here is my /etc/proftpd.conf ServerName "ProFTPD" ServerType standalone DefaultServer on DefaultRoot ~ Port 21 Umask 022 MaxInstances 30 User nobody Group nogroup SystemLog /var/log/proftpd.log TransferLog /var/log/xferlog <Directory /*> AllowOverwrite on Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now