Portál AbcLinuxu, 8. listopadu 2025 13:57
<Directory ~/user1>
<Limit WRITE>
AllowUser user1
DenyAll
</Limit>
</Directory>
<Directory ~/user2y>
<Limit WRITE>
AllowUser user2
DenyAll
</Limit>
</Directory>
atd ....
Ako je mozne zakazat userovy1 aby sa nedostal von zo svojho adresara
Řešení dotazu:
# This causes proftpd to perform a chroot into the authenticating user's directory # immediately after login. # Once this happens, the user is unable to "see" higher level directories. # Because a group-expression is included, only users who are a member of # the group 'users' and NOT a member of 'staff' will have their default # root directory set to '~'. DefaultRoot ~ users,!staff
... ### Pokud chceme, aby byli vsichni uzivatele # pouze ve svych domovskych adresarich, tak pouzijeme "~" DefaultRoot ~ ...Jinými slovy, pojal jsi nastavení trochu špatně a všechny ty řádky z userama můžeš vyměnit za ten jeden s "~"
# všichni uživatelé, co jsou členem skupiny "users" budou uzamknuti ve svých domovských adresářích DefaultRoot ~ usersZdar Max
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.