home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / bbs / waffle / 4432 < prev    next >
Encoding:
Internet Message Format  |  1992-11-23  |  1.8 KB

  1. Path: sparky!uunet!wupost!waikato.ac.nz!aukuni.ac.nz!kcbbs!nacjack!codewks!system
  2. Newsgroups: comp.bbs.waffle
  3. Subject: Re: Priv-problem
  4. Message-ID: <BasquB1w165w@codewks.nacjack.gen.nz>
  5. From: system@codewks.nacjack.gen.nz (Wayne McDougall)
  6. Date: Mon, 23 Nov 92 23:54:58 NZST
  7. References: <By50My.IGu@cs.psu.edu>
  8. Organization: The Code Works Limited, PO Box 10 155, Auckland, New Zealand
  9. Lines: 39
  10.  
  11. fenner@snobol.cs.psu.edu (Bill Fenner) writes:
  12.  
  13. > In article <1992Nov22.153343.354@et.tudelft.nl> mvdl@et.tudelft.nl writes:
  14. > |How can I have a user have the priv's to read system-mail (with SYS) but let
  15. > |him be unable to shell to dos ?
  16. > Change sysmail() in mail.c to require a lower priv level.  If you don't have
  17. > sources, you can't do it; right now, sysmail() requires priv=9.
  18.  
  19. Here's how to do it if you don't have the source command.
  20. 1. Remove the "shell" line from _system in the extern directory.
  21. 2. Add a file, say, TODOS to the extern directory, consisting of the 
  22. following:
  23.   /access=9  /command="c:\dos\%R" /shell
  24. 3. For those people you want to have acess to DOS, set the COMMENT in 
  25. their user profile to COMMAND, and for anyone else a non-DOS command.
  26.  
  27. Voila.
  28.  
  29. I know this is a kludge, but it works. Note that it would be nicer to 
  30. include /exclude based on the GROUP markers, but access level 9 seems 
  31. to be immune to group restrictions.
  32.  
  33. Note that there are obvious variations on the above theme. For better 
  34. security, you could have TODOS run an external program that asked for a 
  35. password, and only shelled out on the correct one.
  36.  
  37. The above solutions relies on ignorance of the non-members, but it 
  38. would be easy enough to increase the crypticity.
  39.  
  40. Regards
  41.  
  42.  
  43. -- 
  44.   Wayne McDougall, BCNU
  45.   This .sig unintentionally left blank.
  46.  
  47. Hello! I'm a .SIG Virus. Copy me and spread the fun.
  48.