home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.admin
- Path: sparky!uunet!newsflash.concordia.ca!mizar.cc.umanitoba.ca!mills
- From: mills@ccu.umanitoba.ca (Gary Mills)
- Subject: utmp security and shelltool, a solution
- Message-ID: <Bz63xD.2y7@ccu.umanitoba.ca>
- Sender: news@ccu.umanitoba.ca
- Nntp-Posting-Host: altair.cc.umanitoba.ca
- Organization: University of Manitoba, Winnipeg, Canada
- Date: Sat, 12 Dec 1992 22:32:01 GMT
- Lines: 17
-
- I finally figured out a way to make the /etc/utmp file unwritable by
- ordinary users and still have shelltool and cmdtool operate normally.
- I built something called signinsh. Here's an excerpt from my README file:
-
- >Signinsh is a solution to this problem, at least until Sun fixes
- >shelltool and cmdtool. /etc/utmp must be made writable by a group,
- >such as group tty, and signinsh must run setgid to the same group.
- >Then, for example, when cmdtool is started with signinsh as its
- >argument, signinsh will write an entry for the pseudo-tty in /etc/utmp,
- >then reset its gid, and start a shell. It then waits until the shell
- >terminates, clears the /etc/utmp entry, and itself terminates.
-
- If anyone else is interested in this, it's available by anonymous ftp
- from ftp.cc.umanitoba.ca, in the sun-fixes directory.
-
- --
- -Gary Mills- -Networking Group- -U of M Computer Services-
-