home *** CD-ROM | disk | FTP | other *** search
/ Freelog 22 / freelog 22.iso / Prog / Djgpp / RHIDE14B.ZIP / doc / rhide / VCSA.SH < prev   
Encoding:
Linux/UNIX/POSIX Shell Script  |  1997-10-01  |  542 b   |  19 lines

  1. #!/bin/bash
  2. #
  3. # This script can be used to create a new group
  4. # called 'vcsa' and change the goup owner of the
  5. # vcsa devices to 'vcsa' and setting rw permission
  6. # to that devices for the group vcsa.
  7. #
  8. # You can use this, if you don't want to have RHIDE
  9. # and it's related programs to be a root setuid program.
  10. # In that case you can make them a vcsa setgid program.
  11.  
  12. # create the new group
  13. groupadd vcsa
  14.  
  15. for i in /dev/vcsa[1-9] /dev/vcsa[1-9][0-9]
  16. do
  17.   echo "chgrp vcsa $i; chmod 660 $i"
  18.   chgrp vcsa $i; chmod 660 $i
  19. done