From: poe@daimi.aau.dk (Peter Orbaek)
Newsgroups: comp.os.linux
Subject: Announcement: SysV compatible init, a new last(1) and more
Keywords: init last linux admutil
Date: 8 Jun 92 16:04:39 GMT
Organization: DAIMI: Computer Science Department, Aarhus University, Denmark
The admutil-1.0.tar.Z package which includes this has been available
for some time now, but I keep getting mail from people who miss features
that are already in that package, so maybe my first announcement didn't
make it everywhere.
The admutil-1.0 package includes the following:
* setgrp - like su(1) but sets the group id only.
* shutdown - shuts down the system, putting correct entries into wtmp
and provides for timed shutdowns.
* passwd - changes passwords
* chsh - changes ones shell
* last - an improved last(1) command
* init - a Sys V compatible init(8) with run-levels and all, but not tested
very much.
A bug in some versions of libc makes passwd and chsh garble the passwd file,
so be careful.
asm1@ukc.ac.uk mailed me and asked for a lastlogin feature in the login
program.
Most of the code was already in login.c so here is a small patch to login.c
from the poeigl-1.2.tar.Z package:
------------- cut here ------------
*** login.c~ Wed Feb 26 22:58:19 1992
--- login.c Mon Jun 8 17:47:56 1992
***************
*** 770,778 ****
struct lastlog ll;
int fd;
char *ctime();
! #ifdef linux
! return;
! #endif
if ((fd = open(_PATH_LASTLOG, O_RDWR, 0)) >= 0) {
(void)lseek(fd, (off_t)pwd->pw_uid * sizeof(ll), L_SET);
if (!quiet) {
--- 770,776 ----
struct lastlog ll;
int fd;
char *ctime();
!
if ((fd = open(_PATH_LASTLOG, O_RDWR, 0)) >= 0) {
(void)lseek(fd, (off_t)pwd->pw_uid * sizeof(ll), L_SET);
if (!quiet) {
------------ cut here -------------
The package can be ftp'ed from:
ftp.daimi.aau.dk:/pub/Linux-source/admutil-1.0.tar.Z
The IP number is 130.225.16.27
Or you can get it from:
nic.funet.fi:/pub/OS/Linux/tools/admutil-1.0.tar.Z
--
Peter Orbaek ----------------- poe@daimi.aau.dk | ///
Hasle Ringvej 122, DK-8200 Aarhus N, DENMARK | ///
| \\\///
"Strong typing is for people with weak memories" | \XX/
|