Find the answer to your Linux question:
Results 1 to 3 of 3
Hello! Please help me. I have Kubuntu on my comp, and If I click on the shutdown icon in the menu, the kubuntu will shut down, but the computer is'nt ...
  1. #1
    Just Joined!
    Join Date
    Sep 2007
    Posts
    2

    Shutdown with shortcut?

    Hello!

    Please help me.

    I have Kubuntu on my comp, and If I click on the shutdown icon in the menu, the kubuntu will shut down, but the computer is'nt turning off.

    I want to make a shortcut on the desktop with the following terminal code:
    sudo su shutdown -h now

    The problem is, that Kubuntu ask for the root password now.
    Can I make another code with root password, also I want to turn off my computer with this icon, I don't want to type any passwords.

    Thx

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    955
    Why sudo su? "sudo shutdown -h now" should be good enough. You will then be asked for your own password, not root's. Shutting down the computer is a job for root [or (p)s(e)udo-root] so if you initiate it from your own login you'll need to give a password of some kind. The shutdown option in KDE works without a password because it comes out of a process that already belongs to root and not to you.

    I use Ubuntu so I'm not familiar with Kubuntu's shutdown choices. There should be one that does a complete shutdown as distinct from just logging you out. Are you sure you used the right one?
    "I'm just a little old lady; don't try to dazzle me with jargon!"

  3. #3
    Just Joined!
    Join Date
    Sep 2007
    Posts
    2
    Thx for your answer, but my collegue found the solution at a website.

Posting Permissions

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