On Fri, 13 Oct 2000, Catalin Braica wrote:
> poate era vorba de /etc de sub ~ftp.
> Faza e ca exista doua nivele de drepturi, unul dat prin proftpd, si al
> doilea la nivelul sistemului de fisiere. Adica daca proftpd ruleaza sa
> zicem sub nobody:nogroup, si sa zicem directorul ~ftp/incoming/gigi e a lu
> gigi:users, si are drepturile drwx------, atunci decit gigi, cind face ftp
> _poate_ sa aiba drepturi.
> Deci ca sa aiba si un anonymous drepturi, trebuie specificat asta in
> proftpd.conf, dar sa aiba drepturi si in sistemul de fisiere, adica
> ~ftp/incoming/gigi sa fie cel putin (pt dir si cd) drwx---r-x. cel putin.
> Cam risky, nu ?
> Si in +, chestiile asta difera intre versiunile de proftpd, cel putin care
> le-am testat eu (pre1-pre10 parca)
Am verificat si eo astea inainte de ajunge cu problema pe aceasta lista
Atit /etc cit si /etc/proftpd.conf utilizatorul adishor are drepturi de
citire
[root@gw1 /]# ls
total 9544
...............
drwxr-xr-x 38 root root 4096 OCT 13 10:37 etc
...............
[root@gw1 /etc]# ls proftpd.conf
-rw-r--r-- 1 root root 5840 OCT 13 10:50 proftpd.conf
Conectat ftp se poate face orice (creare directory, sterger
fisiere, etc.) mai putin de pus fisiere.
Daca nu avea drepturi de scriere in acel director nici nu putea sa creeze
un director. nu?
Name (0:root): adishor
331 Password required for adishor.
Password:
230 User adishor logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
drwxr-xr-x 2 adishor root 4096 Oct 11 06:38 cgi-bin
drwxr-xr-x 2 adishor root 4096 Oct 12 15:41 logs
drwxr-xr-x 2 root root 4096 Oct 11 06:43 mail
drwxr-xr-x 2 adishor root 4096 Oct 13 02:10 public_html
226-Transfer complete.
226 Quotas off
ftp> mkdir 1
257 "/home/users/adishor/1" - Directory successfully created.
ftp> put abc1
local: abc1 remote: abc1
200 PORT command successful.
550/abc1: Permission denied
---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
unsubscribe from this list.