Shutdown from SliM without typing root password

Something similar to GDM's shutdown button...why does slim need the root password ?
As a second best, I tried setting up acpid to send the shutdown signal upon pressing the power button but that doesn't work until i'm logged in.
Any suggestions ?

tigrmesh wrote:If you have sudo installed, you can use visudo to give your user privilege to run the shutdown command.  Have a look at the man page for sudoers
I do have sudo set up so that I can shut down that way. I know that unix is multi user system but this is my laptop we're talking about and only I use it.
B wrote:You can do it just fine without having to be logged in. Just check the wiki.
Will check the wiki again...
Last edited by moljac024 (2008-04-27 09:18:05)

Similar Messages

  • [SOLVED] How do I shutdown from SLIM ?

    I am using SLIM to login to Fluxbox.  I should be able to type halt as username from within SLIM to shutdown.  Typing halt as username does not shutdown.  I have set sudo to allow my user to shutdown, but that doesn't help.
    How do I enable shutdown from within SLIM?
    Thank you
    Last edited by glenn69 (2012-04-26 17:49:01)

    glenn69 wrote:I am using SLIM to login to Fluxbox.  I should be able to type halt as username from within SLIM to shutdown.  Typing halt as username does not shutdown.  I have set sudo to allow my user to shutdown, but that doesn't help.
    Does it work with root password?

  • Auto mounting disk drives on click without prompting root password

    I've installed Arch linux using the instructions given on the Beginner's Guide wiki.
    I want to auto mount a file system (partition) when I click on a partition from the default toolbar or from within nautilus, without prompting me to provide the root password for the system.
    I'm using 'gdm' as one of the DAEMONS entries to start the graphical environment in /etc/rc.conf
    Following the above mentioned wiki, I had deleted the '~/.xinitrc' file as it was mentioned in here.
    Now, how do I find(or regenerate) a backup copy of this above mentioned file, to add the line ''exec ck-launch-session"?
    Or, is there some other way to get the desired functionality working for me?

    As for the .xinitrc file:
    @skunktrader: This is exactly what I wanted, the '/etc/skel/' directory. Never realized that directory there. Thanks!!!
    @Mr.Elendig: Creating the file manually was too obvious. Thanks anyway!!
    As for my requirement:
    Even after placing the .xinitrc to my home directory and appending the line 'exec ck-launch-session gnome-session', I'm still being prompted for root authenication when trying to mount the partition from the desktop environment.

  • Retrieve running configuration from RV082 without username or password?

    I have just started a job at a critical infrastructure plant in which the previous person in my position has several things set up with almost zero documentation. Since this plant is infrastructure-critical, I need to be careful in what I muck around with. Right now, the plant has no internet access (it is not necessary for the functioning of the plant) because the gentleman I replaced had set up an RV082 and was using it to VPN tunnel into the network. He is now on disciplinary leave, probably never to return, and we want to be sure he cannot access the plant. I don't know if we need to have access to the plant while off-site, but just in case we do, is there any way to get the running configuration off of this device while not knowing the username and/or password? I would really like to not wipe it out, but I suppose I can if there is no other way.
    Thank you for your time.
    Tim Bennett

    Hi Timothy, unfortunately without a user/password the device will need to be reset.
    -Tom
    Please mark answered for helpful posts

  • Shutdown and Reboot without going root

    Is there a way I can use the reboot or poweroff commands without using sudo or root?  Or is this a bad idea?
    Last edited by Falcata (2008-09-04 00:19:30)

    mcmillan wrote:
    My question:  What is the difference between 'chmod +s halt' and NOPASSWD for shutdown as you suggested?  I am not familiar with NOPASSWD.
    NOPASSWD is specified when you configure sudo, so some commands will be executed without asking for your users password. This is probably why it wasn't working for your menu, the computer was waiting for a password but there wasn't a way to display that request or enter it in.
    That makes sense, and is in line with what I figured was going on.  With NOPASSWD which commands would be executed w/out asking for a password?  How would this be more "secure" than using chmod +s on halt and reboot?  It seems that both ways accomplish the same thing in the end, I am just trying to understand why one is better than the other.
    moljac024 wrote:
    mcmillan wrote:
    My question:  What is the difference between 'chmod +s halt' and NOPASSWD for shutdown as you suggested?  I am not familiar with NOPASSWD.
    NOPASSWD is specified when you configure sudo, so some commands will be executed without asking for your users password. This is probably why it wasn't working for your menu, the computer was waiting for a password but there wasn't a way to display that request or enter it in.
    Exaclty. So you could specify the NOPASSWD parameter for the shutdown command and sudo will just do it without asking for the password. You should have an example of how to use that in your sudoers file. If not, then
    man sudo
    Please excuse my ignorance, but how is this better than chmod +s, which allows my user to use it w/out sudo?  It seems as though one lets ME use sudo w/out a password, the other lets ME use the command w/out sudo.  What is the benefit to using sudo without a password, other than not having to physically type the password?
    Last edited by monstermudder78 (2008-09-04 23:13:40)

  • How can I eliminate logging in without typing my password every time my

    When i first start up my computer, I have to put my password in. How can I eliminate that step

    Go to Users and Groups in System Preferences. Click on Login options lower left side, unlock the lock to make changes and then select Automatic login.

  • Solaris 8, no root password, no login

    During install I got a message like 'could not write /etc/passwd, is locked', I still continue the install, then after a while the install asks for the second software disk, this one is not recognized, so I skip it. Then after rebooting the system, it asks for a login and password, so I enter root en give my password. No way, it won't comply. So I try changing the /a/etc/passwd file (it seems to be the new environment), for instance by adding a line test::::: , so no password should be asked, this also does not work. Removing de root password from the passwd file does not work either. So, who can help me loggin in into the system without a root password, on a Linux machine this is no problem in stand-alone mode no password is asked. Booting with the b -s option gets you into the stand-alone or service mode. This is my last try, then I will throw Sun away......
    PS. My system is fully recognized by the install software. No problem there.
    Thanx....

    Did you remove the 2nd entry in /etc/shadow file?
    Each entry in the shadow file has the form:
    username:password:lastchg:min:max:warn:inactive:expire:flag
    Thanks
    -Manish

  • My IPhone is asking me to type in my password for my old Apple ID that does not exist anymore. I cant set up ICloud without typing in a password to a Apple ID that does not exist, so do I have to remove everything from my IPhone and start over?

    my IPhone is asking me to type in my password for my old Apple ID that does not exist anymore. I cant set up ICloud without typing in a password to a Apple ID that does not exist, so do I have to remove everything from my IPhone and start over?

    Hello miamat2017
    You should see an option to skip that step and then sign out of it when looking in Settings. Check out the article below for more information.
    iOS 7: If you're asked for the password to your previous Apple ID when signing out of iCloud
    http://support.apple.com/kb/ts5223
    Regards,
    -Norm G.

  • How do i fix my phone from typing my password wrong too much because it says to connect to itunes

    how do i fix my phone from typing my password wrong too much because it says to connect to itunes

    Do as the manual says and restore your iphone.

  • Preventing local admin from changing root password

    Is it possible to prevent a local admin from changing the root password? I would like to set up a computer so that the user has admin rights, but cannot change the root password via a terminal shell to gain root access.

    I can't provide you with details, but I'm sure that all you need to do is to edit the sudoers file. It needs to be edited with <visudo> when logged in as root in a Terminal. The location is </private/etc/sudoers>, but you don't need to know that when using <visudo>. From a first look I'd suppose you only have to uncomment the %admin line, but better get some more information. I never did this myself.

  • Rutilt without root password?

    Is there any way to use rutilt or wifi-radar without sudo or a root password, as is done with e.g. wicd and networkmanager? I'm getting sick of wicd's bugs, but the root access requirement is annoying - can I make these applications respect the network group, or allow some other group to use them without root priveleges? Or would that be too insecure?

    I've been using wifi-radar for ages and really like it.  To avoid having to run as root or enter password I've added to /etc/sudoers file:
    username ALL=(ALL) NOPASSWD: /usr/bin/wifi-radar
    I don't know if this would be what you want as it's kinda using sudo without having to type in "sudo wifi-radar".  wifi-radar is added to my DAEMONS list in rc.conf and works great.  I also have a wifi-radar icon in my E17 ibar so I can check out other access points if I want.  Come to think of it, is what I'm doing insecure?  Never really thought about it.

  • How can I disconnect from iCloud without password.

    Hi,
          I have lost my Apple ID password, So I have lost my iCloud password too. I am unable to login on iCloud service. I was unable to Off option "Find my iPhone"
    I tried everything but nothing is happen, i cant logout from iCloud, The mail ID which registered with apple that is also blocked. So nothing is option balance, then I reset device to Factory Restore option. But now again iPhone is asking the same icloud account and password. Now this iPhone is useless.
          Actually one of my colleague bought this iPhone 4 from second hand market one year back, he took the same apple ID what seller has given him and he is using it since 1 year, Now that guy may change his password and this guy is unable to use appstore. To put new ID we need to log out from old ID and to log out from old ID phone is asking password, so there is the problem started.
       Can anyone help me to log out from iCloud without password, please...
    Thanks
    Pramod

    From what you say the phone has been 'Activation Locked' by a previous owner - who presumably either sold it to the second-hand market or had it stolen and it landed up there.
    If this is the case, only the person who set the lock can unlock it. If you can't get hold of them to do this then the phone is permanently unusable.
    Even if you had set up a new Apple ID and logged into that the Activation Lock would have kicked in when you reset or updated the phone.

  • Call a host script from concurrent program without exposing APPS password?

    My understanding is as of now I need to link $FND_TOP/bin/fndcpesr in order to launch a unix script as concurrent program. This implies that there will be 4 standard input parameters when a certain unix script is called including oracle schema and password. As I see it now APPS password is provided to such scripts.
    Is there a way to execute a unix script from under 11i without exposing APPS password?

    Many thanks.
    Protecting Your Oracle User Password
    In some cases, there are security concerns with passing your Oracle username and
    password directly to your HOST program. If you do not want the concurrent manager
    to pass your username/password to your program, you can have the manager pass it as
    an environment variable instead. Or you can pass an Oracle Applications
    username/password for a user with the System Administrator responsibility.
    Alternatively, you can not pass it at all.
    First, define your concurrent program executable as a HOST program in the Concurrent
    Program Executable form.
    To have the username/password passed as an environment variable, enter the term
    'ENCRYPT' in the Execution Options field of the Concurrent Programs window when
    defining a concurrent program using this executable. 'ENCRYPT' signals the concurrent
    manager to pass the username/password in the environment variable fcp_login. The
    argument $1 is left blank.
    If you do not want the username/password passed to the program at all, enter
    +'SECURE' in the Execution Options field. The concurrent manager will not pass the+
    username/password to the program.

  • My wife purchased me a Ipod 80GB back in 2007 under her account. How can in download my music from my PC into my Ipod without using her password

    My wife purchased me a Ipod classic 80GB back in 2007, she also has a Ipod classic, but both are under user name and password. I have a newer PC. How can I download the music from my PC to my Ipod?

    iRip is a nice little program  it will get all your music, books, podcasts off your iPod without knowing a password or the iPod not sync to the iTunes library.
    http://thelittleappfactory.com/irip/index_irip1.php

  • My Macbook Retina doesn't log back in from sleep after typing in the password, have to force shut down

    Hi all,
    Recently i've been having this problem once in a while (once every few days) that when I opened up my computer from sleep, I typed in my password and clicked enter. After that, it shows that normal grey box thing; normally it logs in after a few seconds, but sometimes i wait for 2 minutes and still it doesn't log in. I sleep it and wake it again, but this time i type the password and i click enter, but nothing happens, i can't click switch user either. At this point my only choice is to force shut down my macbook. This problem is a bit annoying since sometimes i have unsaved work.
    Thanks in advance for any reply/ies.

    Press and hold the power button for a few seconds until the power shuts off, then release, wait a few more seconds, and press it again briefly to restart.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

Maybe you are looking for