home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!ukma!rankin
- From: rankin@ms.uky.edu (David W. Rankin Jr.)
- Subject: Re: sudo with hidden password?
- References: <Bxz50B.IIB@news.cso.uiuc.edu>
- Message-ID: <1992Nov20.20723.358@ms.uky.edu>
- Date: Fri, 20 Nov 1992 07:07:23 GMT
- Organization: University Of Kentucky, Dept. of Math Sciences
- Lines: 25
-
- In article <Bxz50B.IIB@news.cso.uiuc.edu> rolf@geoserv.isgs.uiuc.edu writes:
- >I have been using the "sudo" command from the Unix System
- >Administration Handbook by Nemeth/Snyder/Seebass and like it
- >very much. However, I would like to find if someone has a
- >modified version of it that would hide your password instead
- >of displaying it for all to see.
- > Thank you.
-
- Just after glancing through the code, I'd say that what you could do is
- (assuming your system echos characters back rather than relying on local
- echo) place a system("stty -echo");, or the equivalent, and see if that
- helps anything. Place that call before the input for the password, then
- system("stty echo"); after it. I don't know if it works myself, since I
- don't have a UNIX system to run sudo on yet [yet :)], but my guess would
- bne that that would work.
-
- Hope this helps,
-
- --
- "You know, I don't think Apple could damage the Mac more if the tried."
- -me, on the new pricing schemes on System 7.1, MacTCP 1.1.1, and MacX
- --"When UK pays me money for my opinions, it can have them. Not before."--
- David W. Rankin, Jr., Mac Archiver for f.ms.uky.edu Packrat on IRC
- Main address: rankin@ms.uky.edu rankin@ukma.BITNET ...!gatech!ukma!rankin
- Alternates: rankin@mik.uky.edu djrank00@aix3090b.uky.edu
-