home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / unix / amiga / 493 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.6 KB

  1. Path: saluki-news.wham.siu.edu!slip106.termserv.siu.edu
  2. From: jimd@slip106.termserv.siu.edu (Jim Dutton)
  3. Newsgroups: comp.unix.amiga
  4. Subject: Solved - Re: Restricted Shells ?
  5. Date: Mon, 19 Feb 1996 01:31:45 CST
  6. Organization: Southern Illinois University
  7. Sender: NNTP@slip106.termserv.siu.edu
  8. Message-ID: <221b93fc.bb2da@slip106.termserv.siu.edu>
  9. Reply-To: jimd@slip106.termserv.siu.edu
  10. NNTP-Posting-Host: slip106.termserv.siu.edu
  11. Comment: AmigaNOS v2.9p
  12. In-Reply-To: <4et6ev$l67@rrzs3.uni-regensburg.de>
  13.          (from feyrer@rfhs1012.fh.uni-regensburg.de (Hubert Feyrer))
  14.          (at 2 Feb 1996 14:18:07 GMT)
  15. X-Mailer: //\\miga Electronic Mail (AmiElm 6.24)
  16.  
  17. Hi Hubert, on Feb 2 you wrote:
  18.  
  19. > Jim Dutton (jimd@slip106.termserv.siu.edu) wrote:
  20. > > Does anyone know of where any of the restricted shells can be found ?
  21. > I *think* bash can be convinced to act as an restricted shell by calling
  22. > it rbash or so, please consult the documentation.
  23.  
  24. It turns out the pdKSH (and many other shell programs) can be copied and
  25. renamed to r*sh and the shell program will recognize itself as being
  26. 'restricted', similar to your suggestion.
  27.  
  28. One could also use the "<shell name> -r" option, or possibly the "set -r"
  29. command to turn an (inter)active shell into a restricted shell. What I wanted,
  30. however, was a restricted shell for a special guest login that would be
  31. adequately limited in its abilities.
  32.  
  33. By copying pdKSH as rksh, adding this to the /etc/shells file, it was then
  34. simple to set up a restricted login where the user can't "go anywhere" (I
  35. set the directory in .profile), but could still "connect to me".
  36.  
  37.