Ok heres the command that is run.

Code:
--------------------
    
  #!/bin/sh
  sudo /sbin/shutdown -k now
  
--------------------


and here is the sudoers file

Code:
--------------------
    
  # sudoers file.
  #
  # This file MUST be edited with the 'visudo' command as root.
  #
  # See the sudoers man page for the details on how to write a sudoers file.
  #
  
  # Host alias specification
  
  # User alias specification
  
  # Cmnd alias specification
  
  # Defaults specification
  
  # Runas alias specification
  
  # User privilege specification
  root    ALL=(ALL) ALL
  slimserver localhost=NOPASSWD:/sbin/shutdown -k now
  # Uncomment to allow people in group wheel to run all commands
  # %wheel        ALL=(ALL)       ALL
  
  "/etc/sudoers.tmp" 30L, 619C
  
--------------------

thanks
jono


-- 
jonolumb
------------------------------------------------------------------------
jonolumb's Profile: http://forums.slimdevices.com/member.php?userid=1474
View this thread: http://forums.slimdevices.com/showthread.php?t=18073

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix

Reply via email to