home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / shell / 5241 < prev    next >
Encoding:
Text File  |  1993-01-04  |  1.7 KB  |  39 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!europa.asd.contel.com!gatech!asuvax!ncar!csn!cherokee!uswmrg!engineer.mrg.uswest.com!chris
  3. From: chris@engineer.mrg.uswest.com (Chris Fedde)
  4. Subject: Re: How to make Restrict Shell more safely?
  5. Message-ID: <1993Jan4.131835.21436@uswmrg.mrg.uswest.com.mrg.uswest.com>
  6. Organization: USWEST Marketing Resources
  7. NntpPostingHost: engineer.mrg.uswest.com
  8. References: <cslee.225.726145569@pds.nchu.edu.tw>
  9. Date: 04 Jan 93 18:18:35 GMT
  10. Lines: 27
  11.  
  12. In article <cslee.225.726145569@pds.nchu.edu.tw> cslee@pds.nchu.edu.tw (Lee Chee Siong) writes:
  13. >Hi,
  14. >  I want to creat a few accounts in Restrict Shell enviroment. In this 
  15. >account, only a few command(e.g. vi, ftp, mail, news) can be used. Is
  16. >there any suggestion to creat this environment to make it more security
  17. >in my system?
  18. >  Any comming is appreciate.
  19. >
  20. >
  21. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
  22. ><>   CS Lee    (Lee Chee Siong)        <>  If you can give    <>
  23. ><>   National Chung Hsing University,        <>      nothing else, <>
  24. ><>   Taichung, Taiwan, Republic of China.    <>  at least give a    <>
  25. ><>   Internet Address: cslee@pds.nchu.edu.tw    <>      cheerful face <>
  26. ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
  27.  
  28.  
  29. Two aproaches come to mind
  30. 1) use /bin/rsh as login shell for these users. I think that there are
  31. equivalents for csh and ksh.  It should be relatively easy to customize the
  32. environments restrictions.
  33.  
  34. 2) Set up a subdirectory /sub/dir with copies of all the required
  35. binaries and data files.  Be sure to copy /bin/sh to /sub/dir/bin.
  36. Exec /etc/chroot /sub/dir /bin/sh from the users login shell.
  37.  
  38. Chris Fedde, USWEST MRG, chris@mrg.uswest.com, voice +13037842823
  39.