[solved] systemd power control doesn't work

Since there is no way of getting systemctl power control work without sudo, I tried modifying sudoers to allow my user to operate them without password.
However, it still won't work.
I tried that
cross ALL = NOPASSWD: /usr/sbin/hibernate,/usr/bin/systemctl suspend,/usr/bin/systemctl reboot,/usr/bin/systemctl suspend,/usr/bin/systemctl hibernate
and I tried that
cross ALL = NOPASSWD: /usr/bin/systemctl
The result was the same:
$ systemctl suspend
Failed to issue method call: Access denied
Failed to issue method call: Access denied
Last edited by impact (2012-11-09 11:28:17)

impact wrote:
Since there is no way of getting systemctl power control work without sudo, I tried modifying sudoers to allow my user to operate them without password.
However, it still won't work.
I tried that
cross ALL = NOPASSWD: /usr/sbin/hibernate,/usr/bin/systemctl suspend,/usr/bin/systemctl reboot,/usr/bin/systemctl suspend,/usr/bin/systemctl hibernate
and I tried that
cross ALL = NOPASSWD: /usr/bin/systemctl
The result was the same:
$ systemctl suspend
Failed to issue method call: Access denied
Failed to issue method call: Access denied
you have to use "sudo systemctl suspend" still, sudoers is only affecting sudo behavior as it was mentioned...
nahuy_systemd wrote:systemd very bad system. I solved this. I moved to CRUX.
...and you registered to the forum just to tell us that? well, if I were you, i would either change the doctor or make him prescribe me another pills

Similar Messages

  • [solved] systemd 219: automount doesn't work anymore

    To mount a directory with sshfs on another Arch system in my local net I added this to fstab:
    [email protected]:/var/cache/pacman/pkg /var/cache/pacman/pkg fuse.sshfs x-systemd.automount,_netdev,user,noatime,idmap=user,transform_symlinks,identityfile=/root/.ssh/id_rsa,allow_other,default_permissions,reconnect 0 0
    I need it to use a local pacman directory globally so new packages will be downloaded only once for all my Arch pc's.
    This has worked for a long time but since systemd 219-1 nothing happens. Mounting it manually using fstab works. I switched back to systemd 218-2 and it works fine again.
    Thanks, lw.
    Last edited by LessWire (2015-03-16 14:41:09)

    Same here for cifs and ntfs4 mounts in fstab. Downgrade from 219-2 to 218-2 fixes this.
    Example fstab entry:
    //sambaserver/myshare /home/me/server/myshare cifs x-systemd.automount,sec=ntlmv2,nobrl,user=me,password=mypw,workgroup=My.LAN 0 0
    works with 218-2 but not with 219-2. Timing issue?
    Manually mounting the directories on console after boot works:
    mount //sambaserver/myshare
    Harvey

  • HT204032 Power-Nap doesn't work on my MacBook Air (Late 2010) with Mountain Lion 10.8.4

    I have a mb air (late 2010), I can see in the preferences the "power-nap battery option" but power-nap doesn't work. I try to install the SMC update but when i try to install it i get the message that my system is not compatible with the update. help me please...

    Try swiping down with two fingers. This solved my problem.

  • My beats studio 2013 work fine on my ipad but the mic/ volume control doesn't work on my iphone 5

    My beats studio 2013 work fine on my ipad but the mic/ volume control doesn't work on my iphone 5. Can anyone help me?

    Thanks, daniel.early79!
    I have an iPhone5 bought in late Dec 2012.
    I've noticed on rare occassions that the volume down button some times would not respond.
    Starting yesterday, the volume down button would not respond more consistently.
    Sometimes a reset would fix it, sometimes a reset network would fix it, but the problem would come back.
    Came across this thread, and pressing gently on the upper right hand corner fixed it!
    I remember seeing some video on Youtube or iFixit that shows how to replace the power button. It appears that the volume buttons and the power buttons are tied in together on the same piece of connector. I supposed taking the iphone in and out of cases may have warped or twisted the connector inside the case ever so slightly that the sensor for the down volume button got shifted.
    The down volume button works now, after doing the trick you suggested. I'll wait and see if it comes back before taking it in for warranty repair.

  • Replay video in Muse (some controls doesn't work)

    Hello colleagues,
    Can't understand what is happening. I put a video in the Animate and assign controls for buttons (for example, replay video from 0:00 sec). For stage and video autoplay function are disabled.
    Then I export the oam-file and insert it into the Muse with a Scroll Effect "Edge Animate" (Autoplay) to play the video at a certain point. Video starts correctly, but some controls doesn'n work, for example, "replay video". Along with this function "Toggle video play/pause" works correcly.
    Actually, I want to loop video playback but it doesn't work in the Muse (Loop function for a video).
    Can anybody recommend a solution?
    Thanks!

    Hello Joe,
    This is very interesting, but when I upload the project from Muse to my FTP-server, everything is working properly in all of browsers, all of controls and loop for the video clip. I found it by accident when I lost all hope. In other words, the problem is only when previewing the page in a browser (via the built-in local server). Maybe this is a question for the team Muse? Anyway I can send it in PM.
    Thanks for your reply,
    Alexander

  • Volume and Power button doesn't work..how do I fix?

    My son's volume buttons or the power button doesn't work.  Is there something I can do to fix these issues?

    Try the following to rule out a software problem.
    - Reset the iOS device. Nothing will be lost      
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings                            
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes
    - Restore to factory settings/new iOS device.                       
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
      Apple Retail Store - Genius Bar                                                              

  • I upgraded my iMac to 10.9.4.  Now the feature where you can go to 4 diff. screens (Command+Control) doesn't work.  How do I fix this?

    I upgraded my iMac to 10.9.4.  Now the feature where you can go to 4 diff. screens (Command+Control) doesn't work. 
    How do I fix this?

    Do you have that problem when running in the Firefox SafeMode? <br />
    [http://support.mozilla.com/en-US/kb/Safe+Mode] <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this: <br />
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • Hi! I bought my iPhone from USA and the power button doesn't work. I have warranty. I will come to UK soon. I wanna learn; can i benefit my warranty in UK?

    Hi! I bought my iPhone from USA and the power button doesn't work. I have warranty. I will come to UK soon. I wanna learn; can i benefit my warranty in UK?

    The warranty is not and has never been International.  Warranty and support are only valid in the country of origin.  The only exception is for devices sold in the EU where the EU is treated as one country for warranty and support purposes.

  • The screen doesn't work except on the bottom and i cant reboot it because my power button doesn't work, The screen doesn't work except on the bottom and i cant reboot it because my power button doesn't work

    I was in the middle of texting my mom and the screen stopped working! It only stopped working in the middle but i can't even turn it back on because my password numbers won't work when i touch them! I also cannot reboot my ipod because the power button doesn't work! I need help on fixing this problem please!!

    Try as best you can with broken button.:
    - iOS: Not responding or does not turn on
    Place the iPod in recovery mode using one of these programs:
    For PC
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    If necessary:
    Download QTMLClient.dll & iTunesMobileDevice.dll for RecBoot
    For MAC or PC
    The Firmware Umbrella - TinyUmbrella
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • Power adaptor doesn't work

    My power adaptor doesn't work at times. I have to jiggle in and hold it in at just the right position, for it to work. Would Apple replace a faulty power adaptor like that? Alternatively, is there anything I can do about it?
    Any help would be much appreciated! Thank you.

    Apple will typically replace a faulty power adapter if you are still within your one year warranty period and there are no clear signs of abuse. Just give them a call... or, if you have an Apple store nearby, bring it in. If you go to a store, you should bring your MacBook in as well just to be sure that the problem isn't related to an issue on the MacBook side vs. just the charger.

  • Power Nap doesn't work right in my MBA mid 2011. Anyone knows why?

    I just boght a MBA middle 2011 and power nap doesn't work right on it, specially in Mail app, where it downloads only a few mails and the rest of them are downloaded as usual, when recativate my laptop. Does anyone knows why?... i also tried to download the SMC update, but when i try to install it i get the message that my system is not compatible with the update.
    Please somebody help me!!
    Thanks in adevence!

    http://support.apple.com/kb/HT5394

  • IPhone 5 power button doesn't work

    My power button doesn't work and I still have the warranty and I wanted to know that if apple replaces my iPhone will I have to renew my contract with Verizon

    Replacing the phone in no way affects your Verizon contract.

  • My iPhone 5 is disabled and the power button doesn't work. How would I fix it?

    My iPhone 5 is disabled and the power button doesn't work. How would I fix it? Please Help

    wait it for your iPhone to die then before it turns it plug it into iTunes while holding the home button and it will force it into recovery mode.
    will be hard to get the timing right cause u will need to wait for the battery to die and charge up again. Other then that just take it to apple and have them replace the device for a fee.

  • Help iPhone 4 "Power Button doesn't work", how can I get repair it and how much will cost, want to keep same phone everything works fine not power button. :(

    My iPhone 4 power button doesn't work, how can I get repair it and how much will cost, want to keep same phone everything works fine not power button not working unable used my phone. My warranty is Expired how much will cost to put it on my phone plan? Thanks!

    Hi Julio,
    Here's a link for your question:
    http://support.apple.com/kb/index?page=servicefaq&geo=United_States&product=ipho ne
    Cheers,
    GB

  • ENVY 7640 - Power Button doesn't work after going to sleep

    We print about once a day. It printed the first day without problems.The second day, we were unable to print and went to the printer and pushed the touchscreen - nothing happened.Then we pushed the power button - nothing happened,Then we unplugged and re-pluged the power cord - the printer booted and we were able to print. The third day, we were unable to print and went to the printer and pushed the touchscreen - nothing happened.Then we pushed the power button - nothing happened,Then we unplugged and re-pluged the power cord - the printer booted and we were able to print.The fourth day, we were unable to print and went to the printer and pushed the touchscreen - nothing happened.Then we pushed the power button - nothing happened,Then we unplugged and re-pluged the power cord - the printer booted and we were able to print.Then we registered with this forum and ask this question:HOW CAN WE KEEP THIS PRINTER POWERED ON WITHOUT RE-PLUGGING IT EVERY DAY? 

    I have the same issue as described at the beginning of this post.  As noted by teacher, I have checked and confirmed the green light in back is still lit.  I just bought this printer and issues started from the beginning. After I unplug and then restart the printer that way, it turns on and the power button will turn off and then turn on the printer.  Its only after its static for a long time and goes into some undefined mode.  At that point, the printer no longer responds.  How can a company ship a product to customers in which the power button doesn't work? The only reason I bought this printer was becuase my HP Photosmart 7510 randomly gave me printer head error after changing the ink.  It was only like 3 years old.  I can't believe my new printer is buggy.  Your company is on thin ice now. Please help me resolve this problem.

Maybe you are looking for

  • How do I add a contact from the same company to my address book?

    How do I add a contact from the same company to my address book? I do not want to re-type all of the information. Thanks for your help.

  • IPhone 3GS with pictures in folder will not sync with iTunes

    The problem I have is that when I attempt to connec my iphone to my HP Pavilian dv500 it causes my computer to shut down. I have itunes up and running but the instant I plug the phone in windows shuts down. The blue screen has a message but it closes

  • IPhoto and Aperture sharing a library

    I want to use Aperture 3 while my wife uses iPhoto on the same computer. We have a gazillion photos in the library and I want both programs to be able to access the same photos. I've imported the iphoto library to Aperture and everything's fine. The

  • Force a timeout in a JSP

    Is there a config file or java method in app server that I can set a timeout for a jsp page and then send a message to the user saying they have to login again?

  • Inconsistent sending from Mail

    I've noticed that Mail doesn't perform the Send function consistently on my MacBook Pro. When I compose an email and click send, it goes to the Outbox and the grey wheel spins, but the blue status bar doesn't appear. I usually have to quit Mail and r