Cosmetic changes.
This commit is contained in:
parent
2f436049b3
commit
1d1202127b
@ -22,7 +22,8 @@
|
|||||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
.\" SUCH DAMAGE.
|
.\" SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.\" $Id: adduser.8,v 1.20 1997/05/01 22:55:58 ache Exp $
|
.\" $Id: adduser.8,v 1.21 1997/06/23 04:52:07 steve Exp $
|
||||||
|
.\"
|
||||||
.Dd January 9, 1995
|
.Dd January 9, 1995
|
||||||
.Dt ADDUSER 8
|
.Dt ADDUSER 8
|
||||||
.Os FreeBSD 2.1
|
.Os FreeBSD 2.1
|
||||||
@ -68,7 +69,8 @@
|
|||||||
.Nm Adduser
|
.Nm Adduser
|
||||||
is a simple program for adding new users. Adduser checks
|
is a simple program for adding new users. Adduser checks
|
||||||
the passwd, group and shell databases. It creates passwd/group entries,
|
the passwd, group and shell databases. It creates passwd/group entries,
|
||||||
HOME-directory, dotfiles and sends the new user a welcome message.
|
.Ev HOME
|
||||||
|
directory, dotfiles and sends the new user a welcome message.
|
||||||
.Sh RESTRICTIONS
|
.Sh RESTRICTIONS
|
||||||
.Bl -tag -width Ds -compact
|
.Bl -tag -width Ds -compact
|
||||||
.It Sy username
|
.It Sy username
|
||||||
@ -125,13 +127,13 @@ area.
|
|||||||
I have been using this model for almost 10 years and found that it works
|
I have been using this model for almost 10 years and found that it works
|
||||||
for most situations, and has never gotten in the way. (Rod Grimes)
|
for most situations, and has never gotten in the way. (Rod Grimes)
|
||||||
.Sh CONFIGURATION
|
.Sh CONFIGURATION
|
||||||
.Bl -tag -width Ds -compact
|
.Bl -enum
|
||||||
.It Sy 1.
|
.It
|
||||||
Read intern variables.
|
Read internal variables.
|
||||||
.It Sy 2.
|
.It
|
||||||
Read config file (/etc/adduser.conf)
|
Read configuration file (/etc/adduser.conf).
|
||||||
.It Sy 3.
|
.It
|
||||||
Parse command line options
|
Parse command line options.
|
||||||
.El
|
.El
|
||||||
.Sh OPTIONS
|
.Sh OPTIONS
|
||||||
.Bl -tag -width Ds
|
.Bl -tag -width Ds
|
||||||
@ -140,15 +142,17 @@ Batch mode.
|
|||||||
.It Sy -check_only
|
.It Sy -check_only
|
||||||
Check /etc/passwd, /etc/group, /etc/shells and exit.
|
Check /etc/passwd, /etc/group, /etc/shells and exit.
|
||||||
.It Sy -class Ar login_class
|
.It Sy -class Ar login_class
|
||||||
Set default login class
|
Set default login class.
|
||||||
.It Sy -create_config
|
.It Sy -create_config
|
||||||
Create new config and message file and exit.
|
Create new configuration and message file and exit.
|
||||||
.It Sy -dotdir Ar directory
|
.It Sy -dotdir Ar directory
|
||||||
Copy files from
|
Copy files from
|
||||||
.Ar directory
|
.Ar directory
|
||||||
into the HOME-directory of new users,
|
into the
|
||||||
|
.Ev HOME
|
||||||
|
directory of new users,
|
||||||
.Ql Pa dot.foo
|
.Ql Pa dot.foo
|
||||||
files renamed to
|
will be renamed to
|
||||||
.Ql Pa .foo .
|
.Ql Pa .foo .
|
||||||
Don't copy files if
|
Don't copy files if
|
||||||
.Ar directory
|
.Ar directory
|
||||||
@ -168,19 +172,21 @@ to read/execute/write
|
|||||||
.It Sy -group Ar login_group
|
.It Sy -group Ar login_group
|
||||||
Login group.
|
Login group.
|
||||||
.Ar USER
|
.Ar USER
|
||||||
means use username as login group.
|
means that the username is to be used as login group.
|
||||||
.It Sy -help,-h,-?
|
.It Sy -help,-h,-?
|
||||||
Print options and exit.
|
Print a summary of options and exit.
|
||||||
.It Sy -home Ar partition
|
.It Sy -home Ar partition
|
||||||
Default home partition where all users located.
|
Default home partition where all users located.
|
||||||
.It Sy -message Ar file
|
.It Sy -message Ar file
|
||||||
Send new users a welcome message.
|
Send new users a welcome message from
|
||||||
Don't send message if
|
.Ar file .
|
||||||
|
Specifying a value of
|
||||||
|
.Ar no
|
||||||
|
for
|
||||||
.Ar file
|
.Ar file
|
||||||
equal with
|
causes no message to be sent to new users.
|
||||||
.Ar no .
|
|
||||||
.It Sy -noconfig
|
.It Sy -noconfig
|
||||||
Do not read config file.
|
Do not read the default configuration file.
|
||||||
.It Sy -shell Ar shell
|
.It Sy -shell Ar shell
|
||||||
Default shell for new users.
|
Default shell for new users.
|
||||||
.It Sy -silent,-s,-quiet,-q
|
.It Sy -silent,-s,-quiet,-q
|
||||||
@ -195,7 +201,7 @@ Many warnings, questions. Recommended for novice users.
|
|||||||
.Bl -tag -width Ds -compact
|
.Bl -tag -width Ds -compact
|
||||||
.Ql Pa #
|
.Ql Pa #
|
||||||
is a comment.
|
is a comment.
|
||||||
.It Sy config file
|
.It Sy configuration file
|
||||||
.Nm Adduser
|
.Nm Adduser
|
||||||
reads and writes this file.
|
reads and writes this file.
|
||||||
See
|
See
|
||||||
@ -219,7 +225,8 @@ Create user 'baerenklau' and login group 'baerenklau'. Invite user
|
|||||||
baerenklau into groups guest, staff and baer. Use default login class.
|
baerenklau into groups guest, staff and baer. Use default login class.
|
||||||
Realname (fullname)
|
Realname (fullname)
|
||||||
is 'Teddy II'. Password is 'qwerty7' (don't use such passwords!). Create
|
is 'Teddy II'. Password is 'qwerty7' (don't use such passwords!). Create
|
||||||
HOME directory
|
.Ev HOME
|
||||||
|
directory
|
||||||
.Pa /home/baerenklau
|
.Pa /home/baerenklau
|
||||||
and copy all files and directories
|
and copy all files and directories
|
||||||
from
|
from
|
||||||
@ -245,7 +252,7 @@ shell database
|
|||||||
.It Pa /etc/login.conf
|
.It Pa /etc/login.conf
|
||||||
login classes database
|
login classes database
|
||||||
.It Pa /etc/adduser.conf
|
.It Pa /etc/adduser.conf
|
||||||
config file for adduser
|
configuration file for adduser
|
||||||
.It Pa /etc/adduser.message
|
.It Pa /etc/adduser.message
|
||||||
message file for adduser
|
message file for adduser
|
||||||
.It Pa /usr/share/skel
|
.It Pa /usr/share/skel
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.\" $Id$
|
.\" $Id: rmuser.8,v 1.6 1997/03/08 18:04:44 wosch Exp $
|
||||||
.\"
|
.\"
|
||||||
.Dd February 23, 1997
|
.Dd February 23, 1997
|
||||||
.Dt RMUSER 8
|
.Dt RMUSER 8
|
||||||
@ -38,29 +38,29 @@
|
|||||||
.Op Ar username
|
.Op Ar username
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
The utility
|
The utility
|
||||||
.Nm rmuser
|
.Nm
|
||||||
.Pp
|
.Pp
|
||||||
.Bl -enum
|
.Bl -enum
|
||||||
.It
|
.It
|
||||||
Removes the user's
|
Removes the user's
|
||||||
.Xr crontab 1
|
.Xr crontab 1
|
||||||
entry (if any)
|
entry (if any).
|
||||||
.It
|
.It
|
||||||
Removes any
|
Removes any
|
||||||
.Xr at 1
|
.Xr at 1
|
||||||
jobs belonging to the user
|
jobs belonging to the user.
|
||||||
.It
|
.It
|
||||||
Sends a SIGKILL signal to all processes owned by the user
|
Sends a SIGKILL signal to all processes owned by the user.
|
||||||
.It
|
.It
|
||||||
Removes the user from the system's local password file
|
Removes the user from the system's local password file.
|
||||||
.It
|
.It
|
||||||
Removes the user's home directory (if it is owned by the user),
|
Removes the user's home directory (if it is owned by the user),
|
||||||
including handling of symbolic links in the path to the actual home
|
including handling of symbolic links in the path to the actual home
|
||||||
directory
|
directory.
|
||||||
.It
|
.It
|
||||||
Removes the incoming mail and pop daemon mail files belonging to the
|
Removes the incoming mail and pop daemon mail files belonging to the
|
||||||
user from
|
user from
|
||||||
.Pa /var/mail
|
.Pa /var/mail .
|
||||||
.It
|
.It
|
||||||
Removes all files owned by the user from
|
Removes all files owned by the user from
|
||||||
.Pa /tmp ,
|
.Pa /tmp ,
|
||||||
@ -76,7 +76,7 @@ the group is removed; this complements
|
|||||||
per-user unique groups).
|
per-user unique groups).
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
.Nm rmuser
|
.Nm Rmuser
|
||||||
politely refuses to remove users whose uid is 0 (typically root), since
|
politely refuses to remove users whose uid is 0 (typically root), since
|
||||||
certain actions (namely, killing all the user's processes, and perhaps
|
certain actions (namely, killing all the user's processes, and perhaps
|
||||||
removing the user's home directory) would cause damage to a running system.
|
removing the user's home directory) would cause damage to a running system.
|
||||||
@ -90,19 +90,19 @@ entry may be removed manually.
|
|||||||
If not running "affirmitively" (i.e., option
|
If not running "affirmitively" (i.e., option
|
||||||
.Fl y
|
.Fl y
|
||||||
is not specified),
|
is not specified),
|
||||||
.Nm rmuser
|
.Nm
|
||||||
shows the selected user's password file entry and asks for confirmation
|
shows the selected user's password file entry and asks for confirmation
|
||||||
that you wish to remove the user. If the user's home directory is owned
|
that you wish to remove the user. If the user's home directory is owned
|
||||||
by the user,
|
by the user,
|
||||||
.Nm rmuser
|
.Nm
|
||||||
asks whether you wish to remove the user's home directory and everything
|
asks whether you wish to remove the user's home directory and everything
|
||||||
below.
|
below.
|
||||||
.Pp
|
.Pp
|
||||||
As
|
As
|
||||||
.Nm rmuser
|
.Nm
|
||||||
operates, it informs the user regarding the current activity. If any
|
operates, it informs the user regarding the current activity. If any
|
||||||
errors occur, they are posted to standard error and, if it is possible for
|
errors occur, they are posted to standard error and, if it is possible for
|
||||||
.Nm rmuser
|
.Nm
|
||||||
to continue, it will.
|
to continue, it will.
|
||||||
.Pp
|
.Pp
|
||||||
Available options:
|
Available options:
|
||||||
@ -114,7 +114,7 @@ the affirmative (i.e., yes). A username must also be specified on the
|
|||||||
command line if this option is used.
|
command line if this option is used.
|
||||||
.It Ar \&username
|
.It Ar \&username
|
||||||
Identifies the user to be removed; if not present,
|
Identifies the user to be removed; if not present,
|
||||||
.Nm rmuser
|
.Nm
|
||||||
interactively asks for the user to be removed.
|
interactively asks for the user to be removed.
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
.Bl -tag -width /etc/master.passwd -compact
|
.Bl -tag -width /etc/master.passwd -compact
|
||||||
@ -145,11 +145,11 @@ command appeared in
|
|||||||
.\" .Sh AUTHOR
|
.\" .Sh AUTHOR
|
||||||
.\" Guy Helmer, Ames, Iowa
|
.\" Guy Helmer, Ames, Iowa
|
||||||
.Sh BUGS
|
.Sh BUGS
|
||||||
.Nm rmuser
|
.Nm Rmuser
|
||||||
does not comprehensively search the filesystem for all files
|
does not comprehensively search the filesystem for all files
|
||||||
owned by the removed user and remove them; to do so on a system
|
owned by the removed user and remove them; to do so on a system
|
||||||
of any size is prohibitively slow and I/O intensive.
|
of any size is prohibitively slow and I/O intensive.
|
||||||
.Nm rmuser
|
.Nm Rmuser
|
||||||
also is unable to remove symbolic links that were created by the
|
also is unable to remove symbolic links that were created by the
|
||||||
user in
|
user in
|
||||||
.Pa /tmp
|
.Pa /tmp
|
||||||
@ -164,6 +164,6 @@ and
|
|||||||
.Pa /var/mail/.pop.username
|
.Pa /var/mail/.pop.username
|
||||||
that are not owned by the removed user but should be removed.
|
that are not owned by the removed user but should be removed.
|
||||||
.Pp
|
.Pp
|
||||||
.Nm rmuser
|
.Nm Rmuser
|
||||||
has no knowledge of NIS (Yellow Pages), and it operates only on the
|
has no knowledge of NIS (Yellow Pages), and it operates only on the
|
||||||
local password file.
|
local password file.
|
||||||
|
Loading…
Reference in New Issue
Block a user