I have linux redhat 7.1 Server with a proftp server on it . and I have a
user named usr1 and home dirctory /home/usr1 
for usr1. usr1 tried to ftp a directory say mydir to /home/usr1. But
after usr1 login into the server. he wanted to access mydir, he got error
message " Permission denied". The dictory mydir ower is usr1 and group is
usr1 too. And what confuse more is that although he can not access mydir,
he can delete it.

the proftpd.conf is as following:
# This is a basic ProFTPD configuration file (rename it to 
# 'proftpd.conf' for actual use.  It establishes a single server
# and a single anonymous login.  It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName                      "ProFoPD"
ServerType                      inetd           
DefaultServer                   on

DefaultRoot                     /home
DeferWelcome                    on
TimeoutLogin                    120                     
TimeoutIdle                     300
TimeoutNoTransfer               600
TimeoutStalled                  900

LogFormat                       default "%h %l %u %t "\%r\" %s %b"
LogFormat                       auth    "%v [%P] %h %t "\%r\" %s "
LogFormat                       write   "%h %l %u %t "\%r\" %s %b"
ExtendedLog                     /var/log/proftpd/access.log WRITE,READ
write
ExtendedLog                     /var/log/proftpd/auth.log AUTH auth
UseReverseDNS                   off
IdentLookups                    off

# Port 21 is the standard FTP port.
Port                            21

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask                           777

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
#MaxInstances                   10              
MaxLoginAttempts                3
MaxClientsPerHost               5 "Sorry, you have too many simultaneous
connections!"

# Set the user and group that the server normally runs at.
User                            nobody
Group                           ftp

# Normally, we want files to be overwriteable.
<Directory /home>
<Limit ALL>
  IgnoreHidden                  on
#  Umask                                057
</Limit>
  HideNoAccess                  on
  AllowOverwrite                on
</Directory>


# A basic anonymous configuration, no upload directories.
<Anonymous /home/ftp>
  User                          nobody
  Group                         nobody

   # We want clients to be able to login with "anonymous" as well as "ftp"
  UserAlias                     anonymous nobody
  AnonRequirePassword           off
  RequireValidShell             off

  # Limit the maximum number of anonymous logins
  MaxClients                    10

  # We want 'welcome.msg' displayed at login, and '.message' displayed
  # in each newly chdired directory.
  DisplayLogin                  welcome.msg
# DisplayFirstChdir             .message

  # Limit WRITE everywhere in the anonymous chroot
 
  <Directory /home>
  <Limit WRITE>
    IgnoreHidden                on
    DenyAll
  </Limit>
  </Directory>
</Anonymous>




Thanks in advance for any suggestions.

Jianping Zhu




_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to