Here is my current proftpd.conf file
Code:
ServerName "Gentoo FTP"
ServerType standalone
DeferWelcome off
DefaultServer on
RequireValidShell off
AuthPAM off
AuthPAMConfig ftp
Port 666
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
MaxInstances 30
# Set the user and group under which the server will run.
User nobody
Group nobody
# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite on
</Directory>
# chroot for all users of the group ftpuser
DefaultRoot ~ ftpuser
# grant login only for members of the group
<Limit LOGIN>
DenyGroup !ftpuser
</Limit>
# disable root login and require a valid shell (from /etc/shells)
<Global>
RootLogin off
RequireValidShell on
</Global>
UseReverseDNS off
IdentLookups off
# Logging formats
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"
# activate logging
# every login
ExtendedLog /var/log/ftp_auth.log AUTH auth
# file/dir access
ExtendedLog /var/log/ftp_access.log WRITE,READ write
# forr paranoid (big logfiles!)
#ExtendedLog /var/log/ftp_paranoid.log ALL default
Seeing my config, I would like ALL users who are part of ftpuser group access to /var/ftp for read/write access so..
This is what I did:
groupadd ftpuser
chown ftp:ftpuser /var/ftp/
useradd -d /var/ftp -g ftpuser -s /bin/false john
passwd john
now I can login as john with my password, and end up in that directory...I thought if I was in the same group that I changed the directory's group ownership to that I would be able to read/write... I can only read and cannot upload files.
Hope This explains basicly what Im trying to do. Much Thanks.