Results 1 to 10 of 10

Thread:

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Mar:2008
    Location:
    Posts: 483

    ???

    #!/bin/bash
    sudo shutdown -h now

    , .

  2. #2

    Join Date: Jul:2011
    Location: Sofia
    Posts: 1,632
    , ?

  3. #3
    Registered User
    Join Date: Mar:2008
    Location:
    Posts: 483
    plink , sudo shutdown -h now /home/user/shutdown.sh

  4. #4
    Registered User
    Join Date: Sep:2003
    Location: Where you live
    Posts: 976
    /etc/sudoers :
    blabla host = (root) NOPASSWD: /sbin/shutdown
    blabla . blabla /sbin/shutdown . . /sbin/shutdown shutdown
    .
    Last edited by dzk; 20th December 2015 at 14:13.

  5. #5
    Registered User odido's Avatar
    Join Date: Feb:2015
    Location: Bulgaria
    Posts: 529
    - ? alias - .
    Last edited by odido; 20th December 2015 at 16:38.
    Lenovo R61i/8GB DDR2 800/T7700 2.4Ghz /Adata SSD 240GB

  6. #6
    Registered User
    Join Date: Mar:2008
    Location:
    Posts: 483
    shutdown: you must be root to do that!
    /sbin/sudoers "myusername host = (root) NOPASSWD: /sbin/shutdown"

    shutdown 755

    , e
    Last edited by the_tiana; 21st December 2015 at 06:38.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |