Results 1 to 3 of 3
Hey!
Im pretty new to linux but i decided to give it a try for my webbserver, i choose debian because of its easy package handling. Anyway i got my ...
- 12-09-2006 #1Just Joined!
- Join Date
- Dec 2006
- Posts
- 2
proftpd newbie problem :oops:
Hey!
Im pretty new to linux but i decided to give it a try for my webbserver, i choose debian because of its easy package handling. Anyway i got my apache webserver, mysql, php and now proftpd installed.
To the problem, how do i choose wich rights a folder/user have?, ive created a user with homedir /server/webb/micke, for exampel how do i set only read rights?, read and write(upload) rights?.
Ive read about the chmod command but im not totaly clear on how it works.
Thanks for taking your time and helping a newbie
/Mikael
- 12-10-2006 #2Linux User
- Join Date
- Feb 2006
- Posts
- 484
which chmod
chmod in the system or in the proftpd?
chmod in the linux
r-read
w-write
x-run
owner group others
rwx rwx rwx
421 421 421
for using chmod you need define a bitmask , the bitmask contain 3 number
chmod bitmask file
exmples
owner read only bitmask : (4+0+0)(0+0+0)(0+0+0)
command : chmod 400 file
owner full access , grup read and run , others nothing , bitmask=(4+2+1=7)(4+0+1=5)(0+0+0)
command : chmod 750 file
for read acces on a directory you need have run permission too
example
for get read permission on a directory
chmod 500 directory
ls -l
dr-x------ blabla directory
d mark it's a directory
2.
in proftpd you can define the permissions in the right section of /etc/proftpd.conf
read the documentation and for some help here is my proftpd.conf
ServerName "Anubys"
ServerType standalone
Port 21
DefaultServer on
ShowSymlinks on
PassivePorts 49152 50152
AllowForeignAddress on
DefaultRoot "/mnt/store/shared_data"
DefaultTransferMode ascii
MaxInstances 10
AllowOverwrite on
MultilineRFC2228 on
ServerIdent on "Tibi's ftp server on host ANUBYS"
IdentLookups on
RootRevoke on
TimeOutIdle 600
TimeOutLogin 300
TimeoutNoTransfer 300
#Umask 0222 0222
<Global /mnt/store/shared_data>
User friend
Group ftpuser
<Directory /mnt/store/shared_data>
<Limit LOGIN>
AllowGroup ftpuser
DenyGroup !ftpuser
AllowUser friend
DenyUser !friend
</Limit>
<Limit ALL>
AllowAll
</Limit>
<Limit DELE>
DenyAll
</Limit>
<Limit SITE_CHMOD>
AllowUser friend
AllowAll
</Limit>
GroupOwner ftpuser
UserOwner tibi
</Directory>
DeleteAbortedStores on
DefaultRoot "/mnt/store/shared_data"
DirFakeGroup on ftpuser
DirFakeUser on ftp
MaxClientsPerHost 3
MaxClientsPerUser 10
AllowStoreRestart on
AccessDenyMsg "A te kungfud nem eros
"
AllowOverwrite on
Umask 0002 0002
</Global>
<Anonymous /mnt/store/shared_data>
User anonymous
Group ftpuser
<Directory *>
<Limit WRITE>
DenyAll
</Limit>
<Limit PORT RETR REST LIST NOOP>
AllowAll
</Limit>
</Directory>
<Limit LOGIN>
AllowGroup ftpuser
DenyGroup !ftpuser
</Limit>
DirFakeGroup on ftpuser
DirFakeUser on ftp
AccessDenyMsg "Sikertelen anonymous eleres. Login:anonymous ,Password:anonymous"
MaxClientsPerHost 1
MaxClientsPerUser 8
RequireValidShell off
AllowStoreRestart off
UserDirRoot on
Umask 0222 0222
</Anonymous>
i hope it help
- 12-10-2006 #3Just Joined!
- Join Date
- Dec 2006
- Posts
- 2
okey thx!, gona try to set rights with the chmod command first and maby laborate some with the proftpd.conf file!


Reply With Quote
