• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Using PROFTPD and WEBMIN on RH 9.0

Biggs

Diamond Member
Sorry if this seems like a "basic" question but I can't seem to find a way to enable a "master" account that has all permissions(read, write, execute) on every folder and subdirectory. Appreciate your help.
 
thats probably not a smart idea as the dirs will all have to be chmoded to 777 and then the proftpd.conf file will limit what users can read/write/execute.

but if u insist on doing it, chmod all dirs you want control over to 777, then for each dir, set up the directives in the conf file. example:



<Directory /var/ftp/somedir/*>
<Limit READ>
Order allow, deny
AllowGroup ftpusers, masterusers
DenyAll
</Limit>
<Limit APPE DELE MKD RMD RNTO RNFR STOR XMKD XRMD>
Order allow, deny
AllowGroup masterusers
DenyAll
</Limit>
</Directory>

of course you will need to define the proper groups and/or users.
 
Basically, the scenario is every user belongs to its own group. Each user is "locked" inside the default directory of their particular group. I can set every folder and directory to 777 but the problem is when a certain user of a particular group creates a new folder, the permissions of that folder would revert to 755. Since there is no master account, I'm using an "ordinary" account that isn't "locked" to any directory. This account is classified as "other", as it is neither a user or belongs to a group. I can't find an option in Webmin and ProFTPD to create a master account.

Here's my current proftpd.conf.

#
# To have more informations about Proftpd configuration
# look at : http://www.proftpd.org/
#

# 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 "ProFTPD"
ServerType inetd
DefaultServer on
<Global>
AllowOverwrite on
DefaultRoot /home/ftp/user01/ group01
DefaultRoot /home/ftp/user02/ group02
DefaultRoot /home/ftp//user03/ group03
DefaultRoot /home/ftp//user04/ group04
DefaultRoot /home/ftp//user05/ group05

AllowRetrieveRestart on
AllowStoreRestart on
TransferLog /var/log/proftpd.log
</Global>
DefaultTransferMode binary
UseFtpUsers on

# 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 022

# 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 30

#Following part of this config file were generate by PSA automatically
#Any changes in this part will be overwritten by next manipulation
#with Anonymous FTP feature in PSA control panel.

#Include directive should point to place where FTP Virtual Hosts configurations
#preserved

ScoreboardFile /var/run/proftpd/scoreboard

# Primary log file mest be outside of system logrotate province

TransferLog /usr/local/psa/var/log/xferlog

#Change default group for new files and directories in vhosts dir to psacln

<Directory /home/httpd/vhosts>
GroupOwner group01
</Directory>

Include /etc/proftpd.include
 
Back
Top