home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / question / 13653 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.7 KB  |  36 lines

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