version 1, including all changes.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
DELUSER |
|
|
2 |
!!!DELUSER |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
OPTIONS |
|
|
7 |
FILES |
|
|
8 |
SEE ALSO |
|
|
9 |
COPYRIGHT |
|
|
10 |
---- |
|
|
11 |
!!NAME |
|
|
12 |
|
|
|
13 |
|
|
|
14 |
deluser, delgroup - remove a user or group from the system |
|
|
15 |
!!SYNOPSIS |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
__deluser__ [[options] [[--remove-home] |
|
|
19 |
[[--remove-all-files] [[--backup] user |
|
|
20 |
|
|
|
21 |
|
|
|
22 |
__deluser__ --group [[options] group__ |
|
|
23 |
delgroup__ [[options] group |
|
|
24 |
|
|
|
25 |
|
|
|
26 |
__deluser__ [[options] user group |
|
|
27 |
|
|
|
28 |
|
|
|
29 |
__COMMON OPTIONS__ |
|
|
30 |
|
|
|
31 |
|
|
|
32 |
[[--quiet] [[--help] [[--version] [[--conf FILE] |
|
|
33 |
!!DESCRIPTION |
|
|
34 |
|
|
|
35 |
|
|
|
36 |
__deluser__ and __delgroup__ remove users and groups |
|
|
37 |
from the system according to command line options and |
|
|
38 |
configuration information in ''/etc/deluser.conf''. They |
|
|
39 |
are friendlier front ends to the __userdel__ and |
|
|
40 |
__groupdel__ programs, removing the home directory as |
|
|
41 |
option or even all files on the system owned by the user to |
|
|
42 |
be removed, running a custom script, and other features. |
|
|
43 |
__deluser__ and __delgroup__ can be run in one of |
|
|
44 |
three modes: |
|
|
45 |
|
|
|
46 |
|
|
|
47 |
__Remove a normal user__ |
|
|
48 |
|
|
|
49 |
|
|
|
50 |
If called with one non-option argument and without the |
|
|
51 |
__--group__ options, __deluser__ will remove a normal |
|
|
52 |
user. |
|
|
53 |
|
|
|
54 |
|
|
|
55 |
By default, __deluser__ will remove the user without |
|
|
56 |
removing the home directory, the mail spool or any other |
|
|
57 |
files on the system owned by the user. Removing the home |
|
|
58 |
directory and mail spool can be archieved using the |
|
|
59 |
__--remove-home__ option and removing all files on the |
|
|
60 |
system owned by the user by the __--remove-all-files__ |
|
|
61 |
option. Note that if you activate both options |
|
|
62 |
__--remove-home__ will have no effect because all files |
|
|
63 |
including the home directory and mail spool are already |
|
|
64 |
covered by the __--remove-all-files__ |
|
|
65 |
option. |
|
|
66 |
|
|
|
67 |
|
|
|
68 |
If you want to backup all files before deleting them you can |
|
|
69 |
activate the __--backup__ option which will create a file |
|
|
70 |
username.tar(.gz|.bz2) in your current working directory. |
|
|
71 |
Both the remove and backup options can also be activated for |
|
|
72 |
default in the configuration file /etc/deluser.conf. See |
|
|
73 |
__deluser.conf(5)__ for details. |
|
|
74 |
|
|
|
75 |
|
|
|
76 |
If the file __/usr/local/sbin/deluser.local__ exists, it |
|
|
77 |
will be executed after the user account has been removed in |
|
|
78 |
order to do any local setup. The arguments passed to |
|
|
79 |
__deluser.local__ are: |
|
|
80 |
username uid gid home-directory |
|
|
81 |
|
|
|
82 |
|
|
|
83 |
__Remove a system group__ |
|
|
84 |
|
|
|
85 |
|
|
|
86 |
If __deluser__ is called with the __--group__ option, |
|
|
87 |
or __delgroup__ is called, a system group will be |
|
|
88 |
removed. |
|
|
89 |
|
|
|
90 |
|
|
|
91 |
Warning: If any users have the group to be removed as |
|
|
92 |
primary group the group cannot be removed. |
|
|
93 |
|
|
|
94 |
|
|
|
95 |
__Remove an user from a specific group__ |
|
|
96 |
|
|
|
97 |
|
|
|
98 |
If called with two non-option arguments, __deluser__ will |
|
|
99 |
remove an user from a specific group. |
|
|
100 |
!!OPTIONS |
|
|
101 |
|
|
|
102 |
|
|
|
103 |
__--conf FILE__ |
|
|
104 |
|
|
|
105 |
|
|
|
106 |
Use FILE instead of ''/etc/deluser.conf''. |
|
|
107 |
|
|
|
108 |
|
|
|
109 |
__--group__ |
|
|
110 |
|
|
|
111 |
|
|
|
112 |
Remove a group. This is the default action if the program is |
|
|
113 |
invoked as ''delgroup''. |
|
|
114 |
|
|
|
115 |
|
|
|
116 |
__--help__ |
|
|
117 |
|
|
|
118 |
|
|
|
119 |
Display brief instructions. |
|
|
120 |
|
|
|
121 |
|
|
|
122 |
__--quiet__ |
|
|
123 |
|
|
|
124 |
|
|
|
125 |
Suppress progress messages. |
|
|
126 |
|
|
|
127 |
|
|
|
128 |
__--version__ |
|
|
129 |
|
|
|
130 |
|
|
|
131 |
Display version and copyright information. |
|
|
132 |
!!FILES |
|
|
133 |
|
|
|
134 |
|
|
|
135 |
/etc/deluser.conf |
|
|
136 |
!!SEE ALSO |
|
|
137 |
|
|
|
138 |
|
|
|
139 |
deluser.conf(5), adduser(8), userdel(8), |
|
|
140 |
groupdel(8) |
|
|
141 |
!!COPYRIGHT |
|
|
142 |
|
|
|
143 |
|
|
|
144 |
Copyright (C) 2000 Roland Bauerschmidt. This manpage and the |
|
|
145 |
deluser program is based on adduser which is: |
|
|
146 |
Copyright (C) 1997, 1998, 1999 Guy Maor. |
|
|
147 |
Copyright (C) 1995 Ted Hajek, with a great deal borrowed |
|
|
148 |
from the original Debian __adduser__ |
|
|
149 |
Copyright (C) 1994 Ian Murdock. __deluser__ is free |
|
|
150 |
software; see the GNU General Public Licence version 2 or |
|
|
151 |
later for copying conditions. There is ''no'' |
|
|
152 |
warranty. |
|
|
153 |
---- |