Help - Search - Members - Calendar
Full Version: users' permissions
MandrivaUsers.org > Advanced Topics > Security
hirohitosan
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.
drsatch
Look through /etc/proftpd.conf and look for this section:

CODE
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot ~


Uncomment DefaultRoot ~

That should do it.
hirohitosan
QUOTE (drsatch @ Jan 23 2007, 04:52 AM) *
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
CODE
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
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.