1 README file for the admutils V1.16 for Linux.
3 See installation instructions at the bottom. Currently the latest versions
4 of this software is maintained at ftp://ftp.daimi.aau.dk/pub/linux/poe/
7 This software is distributed as is without any warranty what so ever.
8 With respect to copyrights it is covered by the GNU Public License.
10 Version 1.17 (7-Oct-95):
11 Added setrlimit() calls to passwd.c and chsh.c to fix security hole
12 caused by resource limitations. Inspired by Zefram
13 <A.Main@dcs.warwick.ac.uk>. Also beefed up the ptmp locking in
15 Added swap_off() function to shutdown.c by baekgrd@ibm.net
17 Bugfix in shutdown.c that makes sure wtmp gets closed. By
18 Alexandre Julliard <julliard@sunsite.unc.edu>.
19 Fixed bug in passwd.c that made it impossible to change from having
20 no password into having one.
22 Version 1.16 (18-Sep-95):
23 Added feature to passwd.c by Arpad Magossanyi (mag@tas.vein.hu),
24 so root can give a password for a user on the command line. This
25 might be useful in a shell script autogenerating passwords for
28 Added and updated manual pages for all commands by Rick Faith.
30 Version 1.15d (21-Aug-95):
31 Fixed minor nit with salt generation in passwd.c
32 By Steven Reisman <sar@beehive.mn.org>.
34 Version 1.15c (5-Jul-95):
35 passwd does not allow reuse of the old password when changing.
36 passwd returns 1 if the password is not changed. This was
37 suggested by Anibal Jodorcovsky <anibal@ee.mcgill.ca> who
38 also fixed my initial bug in this feature.
40 passwd uses O_EXCL for opening /etc/ptmp instead of access/fopen.
41 This was suggested by jorge@un1.satlink.com (Jorge).
43 Version 1.15a (12-Jun-95):
44 Fix in last.c so it does not print wtmp entries marked DEAD_PROCESS.
45 By Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
47 Version 1.15 (5-Jun-95):
48 Man-page fixes, fixes in pathnames.h to adhere to the FSSTND.
49 Fix by Rickard Faith <faith@cs.unc.edu> to passwd.c, so sanity
50 checks come before the second entry of the new password.
51 This is for Linux 1.2, GCC 2.6.2 or later.
53 Version 1.14a (12-Mar-95):
54 Fixed passwd and chsh so a username that is a prefix of another
55 doesn't affect the other's password. After suggested patch
56 by Valtteri J. Karu <vatekaru@tuug.utu.fi>, but differently!
58 Version 1.14 (12-Feb-95):
59 Added options -l, -y, -i to last.c. See last.man
61 Version 1.13d (26-Jan-95):
62 Added some comments on request from Rik Faith. Compiled succesfully
63 on Linux 1.1.73, GCC 2.5.8, libc 4.5.26
65 Version 1.13c (6-Dec-94):
66 New versions of passwd and chsh due to Alvaro Martinez Echevarria
67 <alvaro@enano.etsit.upm.es>, so they will coexist with YP/NIS
70 Version 1.13b (7-Nov-94):
71 Use fgets() + atoi() in chsh.c instead of scanf().
73 Version 1.12 (17-Sep-94):
74 Rik Faith provided patches for passwd.c to let non-alphabetics count
75 as digits as well, allows more obscure passwords.
77 Applied patches from Dave Gentzel <gentzel@nova.enet.dec.com>
78 to prevent dereferencing a NULL pointer, and turn off accounting
81 Version 1.11 (18-Aug-94):
82 Finally got around to making it a non-alpha version. Just a
83 little cleanup in Makefile
85 Version 1.10b (8-Jun-94):
86 David A. Holland <dholland@husc.harvard.edu> made me aware of a
87 security leak in passwd and chsh. /etc/ptmp could be forced to
88 be world-writeable. Fixed by hardwiring an umask of 022 into
91 Vesa Ruokonen <ruokonen@taivas.lut.fi> sent me a new pathnames.h
92 file that shouldn't conflict with paths.h.
94 Cleaned the source a bit for -Wall
96 Version 1.10a (31-May-94):
97 Vesa Ruokonen <ruokonen@taivas.lut.fi> provided a patch for
98 passwd.c such that it will work for multiple usernames for
99 the same uid. I mimicked his actions on chsh.c. In both cases
100 I added a check to ensure that even if utmp is hacked, one can
101 only change the password for users with the same uid.
103 Version 1.9 (9-Feb-94):
104 Vesa Ruokonen suggested that newgrp should support passwords in
105 /etc/group. It now does. I mostly rewrote newgrp to make it
108 Version 1.8 (19-Jan-94):
109 Rik Faith provided several patches, especially for passwd.c and
112 Version 1.7 (3-Nov-93): changes since 1.6
113 Shutdown can now be used as a login shell. I forget who sent me the
114 patch. Example /etc/passwd entry:
116 shutdown:dLbVbIMx7bVHw:0:0:Stopper:/:/etc/halt
118 The package should now be prepared to have shutdown in /sbin as well
119 as in /etc. utmp and wtmp are allowed in /usr/adm too. Both things
120 are configurable in the Makefile.
122 <flebbe@cygnus.tat.physik.uni-tuebingen.de> Olaf Flebbe provided a
123 patch for chsh.c to make it work.
125 This version is built under linux 0.99.13 with gcc 2.4.3 and
128 Version 1.6 (1-Jun-93)
129 Shutdown now looks more like shutdown on SunOS, but not quite. Most
130 of this was done by Scott Telford (s.telford@ed.ac.uk), but I
131 butchered his patches somewhat. This version was built under Linux
132 0.99.9 with GCC 2.3.3 and libc 4.3.3.
134 "make install" will now install shutdown in /etc instead of /usr/bin
136 Version 1.5 (13-Dec-92)
137 This version is tested and built under Linux 0.98P6 with gcc-2.2.2d7
138 You will have a hard time making it work with the older compilers and
141 Su is now deprecated. I believe that the GNU/FSF version is better.
144 last - A new and better last command, a port from BSD done by
146 I put a couple of if's in so LOGIN_PROCESS entries in wtmp
149 chsh - CHangeSHell changes the shell entry in the passwd file.
150 Written from scratch by me.
152 passwd - Changes the password in the passwd file.
153 Also done from scratch by me.
155 su - A su(1) command by me.
157 newgrp - Sets the gid if possible, ala su(1), written by Michael
160 shutdown - Shuts down linux. Supports timed shutdowns, and sends
161 warnings to all users currently logged in. It then
162 kills all processes and unmounts file-systems etc.
164 Shutdown also doubles as halt and reboot commands.
166 Shutdown leaves the file /etc/nologin behind after shutdown,
167 it is wise to have a "rm -f /etc/nologin" in ones /etc/rc
169 Shutdown now supports a -s switch, that works in connection
170 with the init program in poeigl-1.7 or later, so a singleuser
173 Rick Sladkey <jrs@world.std.com> provided patches for better
174 umounting code, needed in connection with NFS.
176 Remy Card <card@masi.ibp.fr> provided patches for support for
177 fastboot/fasthalt. These create a /fastboot file on shutdown,
178 and /etc/rc may check for the existance of this file, to
179 optionally skip fsck.
181 example.rc An example of an /etc/rc file. Edit it to suit your own setup.
183 ctrlaltdel - Sets the behaviour of the Ctrl-Alt-Del combination.
184 "ctrlaltdel hard" makes the key-combination instantly reboot
185 the machine without syncing the disk or anything. This may
186 very well corrupt the data on the disk.
188 "ctrlaltdel soft" makes the key-combination send a SIGINT to
189 the init process. Such a command would typically be in /etc/rc.
190 For this to make sense you must run the init from the
191 poeigl-1.4 package or later. The System V compatible init in
192 this package won't reboot the machine when it gets a SIGINT.
193 Linux version 0.96b-PL1 or later is also needed for this
196 init is gone as of V1.5, it was outdated and buggy. If you want a
197 SYSV compatible init get the newest one from Mike Smoorenburg, called
205 and then (optionally) as root:
210 - Peter (poe@daimi.aau.dk)