mkusers.8
上传用户:lukesailor
上传日期:2007-01-04
资源大小:27k
文件大小:2k
- .TH mkusers 8 "31 Oct 1998" "Troll Tech AS" " -*- nroff -*-
- ."
- ." Written by Arnt Gulbrandsen <agulbra@troll.no> and copyright 1995-1999
- ." Troll Tech AS, Waldemar Thranes gate 98B, N-0175 Oslo, Norway, fax +47
- ." 22806380.
- ."
- ." Use, modification and distribution is allowed without limitation,
- ." warranty, or liability of any kind.
- ."
- ." $Id: mkusers.8,v 1.3 1999/01/02 07:32:16 agulbra Exp $
- ."
- .SH NAME
- mkusers - make user/group databases for ftpd
- .SH SYNOPSIS
- .B mkusers
- .SH DESCRIPTION
- .B Mkusers
- is program to compile
- .I /etc/passwd
- and
- .IR /etc/group,
- (or their YP/NIS equivalents) into database files that can be looked
- up very quickly by the built-in ls in
- .BR ftpd (8).
- .SH OPTIONS
- .TP
- None.
- .SH FILES
- .I /etc/passwd
- is used via
- .BR getpwent (3),
- to get the user names for all user ids.
- .PP
- .I /etc/group
- is used via
- .BR getgrent (3),
- to get the user names for all group ids.
- .PP
- Other files may be used, depending on what
- .BR getpwent "(3) and " getpwent (3)
- are configured to use.
- .I /etc/shadow
- and YP/NIS control files such as
- .I /etc/yp.conf
- are common examples.
- .PP
- .I /var/adm/ftp/users
- is used to store user names in an efficient format. Each user name is
- stored as a null-terminated string at offset (9*uid). (If user names
- are longer than 8 characters, they are truncated.)
- .PP
- .I /var/adm/ftp/groups
- is used to store groups names in an efficient format. Each group name
- is stored as a null-terminated string at offset (9*gid). (If group
- names are longer than 8 characters, they are truncated.)
- .PP
- .B Mkusers
- takes care to use
- .BR seek (3)
- so that
- .I /var/adm/ftp/users
- and
- .I /var/adm/ftp/groups
- are sparse if possible. Use "ls -s" to find the true size of these
- files (in kbytes) rather than "ls -l".
- .SH BUGS
- None known.
- .SH "HOME PAGE"
- http://www.troll.no/freebies/ftpd.html
- .SH "AUTHOR AND LICENCE"
- Written by Arnt Gulbrandsen <agulbra@troll.no> and copyright 1995-1999
- Troll Tech AS, Waldemar Thranes gate 98B, N-0175 Oslo, Norway, fax +47
- 22806380.
- .PP
- Use, modification and distribution is allowed without limitation,
- warranty, or liability of any kind.
- .SH SEE ALSO
- .BR ftp "(1), " ncftp "(1), " ftpd "(8), " mrtginfo "(8), "
- .BR "RFC 959" ", " "RFC 2228" " and " "RFC 2428"