hirohitosan Posted January 22, 2007 Report 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. Quote Link to comment Share on other sites More sharing options...
drsatch Posted January 23, 2007 Report 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. Quote Link to comment Share on other sites More sharing options...
hirohitosan Posted January 23, 2007 Author Report 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.