русский
Germany.ruForen → Архив Досок→ Computer & Co

<Linux ftp Uservervarwaltung>

07.05.03 21:16
Re: <Linux ftp Uservervarwaltung>
 
genocidee гость
genocidee
in Antwort as400 06.05.03 23:27
Esli ti pol'3ueshsya wu-ftp, to smotri tut wse napisano:
---------------begin of [man ftpaccess]--------------
guestgroup <groupname> [<groupname> ...]
guestuser <username> [<username> ...]
realgroup <groupname> [<groupname> ...]
realuser <username> [<username> ...]
For guestgroup, if a REAL user is a member of any of
<groupname>, the session is set up exactly as with
anonymous FTP. In other words, a chroot() is done,
and the user is no longer permitted to issue the USER
and PASS commands. <groupname> is a valid group from
/etc/group (or whatever mechanism your getgrent(3)
library routine uses).
The user's home directory must be properly set up,
exactly as anonymous FTP would be. The home direc╜
tory field of the passwd entry is divided into two
directories. The first field is the root directory
which will be the argument to the chroot(2) call.
The second half is the user's home directory relative
to the root directory. The two halves are separated
by a "/./".
For example, in /etc/passwd, the real entry:
guest1:<passwd>:100:92:Guest Account:/ftp/./incoming:/etc/ftponly
When guest1 successfully logs in, the ftp server will
chroot("/ftp") and then chdir("/incoming"). The
guest user will only be able to access the directory
structure under /ftp (which will look and act as / to
guest1), just as an anonymous FTP user would.
The group name may be specified by either name or
numeric ID. To use a numeric group ID, place a '%'
before the number. Ranges may be given. Use an
asterisk to mean all groups.
guestuser works like guestgroup, except uses the user
name (or numeric ID).
realuser and realgroup have the same syntax, but
reverse the effect of guestuser and guestgroup. They
allow real user access when the remote user would
otherwise be determined a guest.
For example:
guestuser *
realgroup admin
causes all non-anonymous users to be treated as
guest, with the sole exception of users in the admin
group who are granted real user access.
---------end------------
Koro4e tebe nado sdelat' Eintrag w /etc/ftpaccess
guestuser _imya_twoego_3werya_
realuser _imya_realnoe_usera_ (stoit w /etc/passwd)
.... i potom delaesh w /etc/passwd sleduyushyuyu fishku:
user:<passwd>:100:92:GuestAccount:/ftp/./incoming:/etc/ftponly
Koro4e w tom pole gde domashnii katalog delaesh 2 kataloga ra3delenie to4koi, koro4e odin dlya ego nastoyashego kataloga, a wtoroi dlya togo 4tob w ftp ispol'3owat' kak werhnyuyu granicu...koro4e ponimaesh,
esli 4e pishi...
Is this the real world, Neo?
Is this the real world, Neo?
 

Sprung zu