Pm-suspend: as normal user without changing sudoers and wake-up issue

I'd like to be able to suspend my laptop as a normal user, but I don't want to "break" sudo just to do this. One wiki article (Suspend to RAM) says this:
In fact, only the pm-utils approach can be called without special privileges, see pm-utils#Suspend.2FHibernate as regular user
Linked article from the quote above describes how to make sudo run without asking for password. I wouldn't call that "without special privileges". After all, I can make anything run without special privileges if I edit sudoers in such way.
Is there any proper way to make pm-suspend run as a normal user?
One other thing about pm-suspend... I use netcfg and laptop-mode-tools. After wake-up from pm-suspend my wlan interface is down and hdparm -B value is set to 128. The wiki says that pm-utils is recommend for suspending to RAM because it can handle such things (i.e. restore as much as possible). Is there anything I must configure for this to work? If not, how can I set a custom script to be run after wake-up from pm-suspend?

For example: https://bbs.archlinux.org/viewtopic.php?id=127962
Edit: did you adjust the hdparm settings in laptop-mode.conf?
Last edited by bohoomil (2011-10-16 11:44:20)

Similar Messages

  • Creation of a normal user without admin rights

    Hi,
    I am new to oracle apex. Can you please let me know how to create a normal user without admin rights in oracle apex application.
    Thanks & Regards,
    venkat
    Edited by: 866673 on Jun 17, 2011 9:53 AM

    Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and ensure you have updated with your profile with a real handle instead of "866673".
    You'll get a faster, more effective response to your questions by including as much relevant information as possible upfront. This should usually include:
    <li>Full APEX version
    <li>Full DB version and edition
    <li>Web server architecture (EPG, OHS or APEX listener)
    <li>Browser(s)/version(s) used
    <li>Theme
    <li>Templates
    <li>Region type
    (although for your question only the APEX version is necessary).
    Assuming you mean a user who can authenticate to an application that uses Application Express Account Credentials?
    In APEX 4.0:
    1. Go to Home > Application Builder > [Your Application ] > Administration > Create Users and Groups > Create User
    2. Enter the User Identification information.
    3. In the Account Privileges, specify:
    User is a workspace administrator: No
    User is a developer: No
    4. Complete the rest of the form as necessary.

  • Hide Unit price from sales order for sales user without change authorization of document setting

    Hi all expert
    Hide Unit price from sales user without change authorization of document setting.
    I have also refer this note
    SAP B1 2005 Purchas Order,Good Reciept PO'S, and Unit Price Block
    but sill I had not getting my proper solution.
    I want to restrict sales person to see & access unit price. Here I know option of block authorization of document setting but its not good option because , In future ,if sales user wants to changes forms setting in future so Its become problematic for user. so I want do this without restrict user for form setting & only hide unit price table from him/her. also He/her able to access form setting with out unit price.
    Please reply
    Amol Nikam

    Hi Experts,
    Please Tell me Is there any option "Hide Unit price from sales order for sales user without change authorization of document setting"
    Regards/Thanks
    Amol

  • Created three new users without Apple IDs and they can't log into either of my Macbook Pro or Mac Mini running Mountain Lion.

    I have created three new users without Apple IDs and they can't log into either of my Macbook Pro or Mac Mini running Mountain Lion.  These accounts are for my kids and originally were setup with parental controls and time constraints.  Thinking this was the problem I removed the time constraints, removed the parental controls, deleted and re-added them, and made them standard users.  I have reinstalled, used disk utility to repair permissions, and made them admins.   Any help is appreciated.

    Users don't need Apple ID's. That's not the issue. Have you tried repairing permissions their accounts?
    http://osxdaily.com/2011/11/15/repair-user-permissions-in-mac-os-x-lion/
    Repairing User Permissions in OS X Lion
    You’ll need to reboot to perform this, and then use the same resetpassword utility that is used to change passwords in Lion, but instead choosing a hidden option.
    When you use the Disk Utility app and Repair Permissions — it doesn’t actually repair the permission settings on folders and files in your Home folder where your documents and personal applications reside.
    In Lion, there is an additional Repair Permissions application utility hidden away. This tool is located inside boot Repair Utilities. Here’s how to access it.
    Restart Lion and hold down the Command and R keys.    You will boot into the Repair Utilities screen. On top, in the Menu Bar click the Utilities item then select Terminal.
    In the Terminal window, type resetpassword and hit Return.
    The Password reset utility launches, but you’re not going to reset the password. Instead, click on the icon for your Mac’s hard drive at the top. From the drop-down below it, select the user account where you are having issues.
    At the bottom of the window, you’ll see an area labeled ‘Reset Home Directory Permissions and ACLs’. Click the Reset button there.
    The reset process takes a couple of minutes. When it’s done, quit the programs you’ve opened and restart your Mac. Notice that ‘Spotlight’ starts re-indexing immediately.

  • Writing to /sys as a normal user without authentication

    Okay - I know the title of this post is not quite descriptive enough etc. I just don't know what to call it...
    I'm trying to get my backlight working fully on my Sony Vaio PCG-GRT390ZP. I can modprobe the sony_laptop module and then echo the different values to the respective files like this:
    # echo 5 > /sys/class/backlight/sony/brightness
    I'm trying to get some python scripts written to handle the above command. (I'm using python because I'm more comfortable in that than in plain bash  / sh, and I have the python packages already.) Because of the scripting, I need to have write access in /sys as a normal user. I'm looking for the safest way to achieve this, as I can't imagine that
    chown -R <user> users /sys
    is safe at all. Any suggestions? Thanks a lot.

    Setting the suid flag for the scripts didn't seem to work, I think because the suid flag only affects binaries (though I could certainly be wrong - that's just what I read)
    So I went ahead and added the lines I needed to my sudoers to launch this script as root  without a password every time it's run (Since all this does is change the screen brightness I think I should be pretty safe. Unless others have differing opinions?)
    Thanks again for the brain jog. Sometimes that's all you need. (Now I just need to set up xbindkeys to launch these scripts I just wrote)

  • Sharepoint Site User name,created by and Modified field issue

    I am being admin of sharepoint site . I have added a user to my sharepoint site from people and groups(Site Action-->Site Settings-->Users and Permissions-->People and Groups). So Now "Created by" and "Modified by" field should
    show My login name(display name) in those fields Right ? But In those field it is showing  user name whom I have added to my sharepoint site. I have added user to my site so My display name should be their  in "created by" and "modified
    by" field. Facing this issue on PROD and UAT.

    Hi Rajshekhar,
    Actually, the users have been added to the site groups or granted with permissions in Site Permissions, then the users will be added to the User Information List of the site collection.
    I recommend to check if the users you added have already been listed in the User Information List.
    If yes, then the Created By and Modified By fields have already been filled with other values.
    Created By field will show the user name who is the first one to add the user to the site and the Modified By field will show the last one who edit the My Settings of that user.
    To access the User Information List, you can type the URL like this:
    http://server/_catalogs/users/detail.aspx.
    Best regards,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Video out without changing resolution and projecting a window

    Hi,
    Every time I need to project my screen, I have to change screen resolution to a smaller one - which makes all my icons bigger and changes everything.
    Is there a way to project the actual screen as it is - with the same resolution?
    Also, if I wanted to project a single window (and keep on working on my computer outside that window without having the audience watching) how could I do? An example for this would be projecting a presentation from my computer whilst i'm reading my notes on the same computer's screen... Is there any software to do this?
    Thanks.

    Only if the projector supports your Mac's native screen resolution, and few projectors at this time will run at that high a resolution. Otherwise you would have to run the system in extended desktop mode so that the screen and projector run independently. Given your second comment, that might be what you really do want to do. Keynote, I believe, supports presenting on one screen while having your notes on another screen.

  • Best way to allow user to change text and image

    Hi,
    A friend wants to change his product images and pricing etc.,
    on his static web pages.
    At the moment each product is within a cell in a table and
    the cell below is where the text for details and pricing is. This
    is the only area he will need to be in. Each product and edtails in
    each cell of a table on each page.
    He does not know anything about web design, Dreamweaver etc.,
    but wants to do update himself.
    I would like to know the best way for me to go about this
    using DW CS3. Maybe there is another script or program that will
    allow this.
    Thanks
    oz

    ozstar wrote:
    > Hi,
    >
    > A friend wants to change his product images and pricing
    etc., on his static
    > web pages.
    >
    > At the moment each product is within a cell in a table
    and the cell below is
    > where the text for details and pricing is. This is the
    only area he will need
    > to be in. Each product and edtails in each cell of a
    table on each page.
    >
    > He does not know anything about web design, Dreamweaver
    etc., but wants to do
    > update himself.
    >
    > I would like to know the best way for me to go about
    this using DW CS3. Maybe
    > there is another script or program that will allow this.
    >
    > Thanks
    >
    >
    > oz
    >
    Hi,
    You could use....
    An easy CMS like -
    http://www.cushycms.com/
    Contentseed -
    http://contentseed.com/
    Contribute -
    http://www.adobe.com/products/contribute/
    HTH
    chin chin
    Sinclair

  • New Apple user, brand new MBP, and several (simple) issues:

    1.  One of the first things I did was change the "natural" scrolling to normal scrolling on the trackpad.  Then I found it wasn't as responsive as expected - nor as responsive as my friend's Macbook Air - so I changed it back to "natural" scrolling, and got used to that.  But whenever I turn off/reboot my machine, the settings revert to the old way of scrolling.  Can anyone suggest a fix for this?  The same thing seems to happen with the settings for external mice.
    2.  A week into ownership, and I've already got a dark splotch on the screen, dead center.  Have always been a ThinkPad guy, and have never had a problem with them before.  There wasn't any damage, so I'm a little frustrated, but that's fine, these things happen.  I'm heading over to the Apple store to advise on my options (other than a return), and I'm wondering what to expect.  I'm hesitant to do a swap because I don't want to hand over a machine with all my personal information/passwords on it, plus I already upgraded the RAM.  Is there a (simple) way to wipe the HDD clean and start back from scratch?
    Thank you!

    When you wrote that the trackpad "wasn't as responsive as expected," did you mean that the screen pointer didn't move as quickly or as far for the same Trackpad swipe as before?
    If so, you can change the trackpad's responsiveness - regardless of whether you're using "natural" or (umm) unnatural scrolling - by just changing the following setting on your Mac: go to
              System Preferences > Trackpad settings > Point & Click
    and go to the horizontal slider called "Tracking Speed."
    If you set the Tracking Speed slider to "Slow" then sliding your finger across the Trackpad will result in the screen pointer moving very slowly across part of the screen. In contrast, with the Tracking Speed slider set to "Fast" the same movement on the Trackpad will make the screen's pointer fly across the screen in no time.
    Adjusting the tracking speed also changes the horizontal and vertical scrolling speeds.
    The only odd aspect to this, is that changing the scrolling direction shouldn't change the Tracking Speed, unless you accidentally brushed against the Tracking Speed slider while you were changing the scrolling direction.
    (Note! I'm using a desktop Mac with an Apple bluetooth trackpad, so my suggestion may not be completely accurate.)

  • I'm connected to the wifi at home but no internet access. i was surfing on the same wifi without any problems. and also this issue is for other wifi network.

    hello everyone.
    i was surfing browsing and downloading on my iphone 4 on my home wifi and other places without any problem but today i found out that even though i'm connected to my wifi i got no internet access. i also got this new problem, my led flash is on.  if i tilt the device the flas dims a bit. i tried switching off the device but still the flash is on. i tried using at other wifi network same problem. i tried forget this network, switching off and turning on the device i also tried reseting the network and also hard reseting the device. but still same problem. what can i do about this? and if i send it to apple what are my options? i got warrant coverage so will they be able to repair it ? if they are not able to repair then will they give me new iphone 4 or refurbished iphone 4 for replacement?

    Apple does not repair devices.  If they are covered under warranty, the device is replaced.  You will not get a new phone, you will get a service unit which is as good as if not better than new.
    If all the basic troubleshooting from the User's Guide has been done and the device does not get Internet access via Wi-Fi from multiple locations, the only thing left is to take it to Apple.

  • Eco mode changed? and software download issue

    I have always used my YV box in high Eco mode and it normally takes a number of minutes to start up - going through a Humax screen then onto a You view screen before the picture appears.
    Since yesterday I have noticed that the start up time is significantly reduced with no Humax screen appearing, the box going straight to the YouView screen and the picture appearing within probably 10 -15 seconds. I have checked on settings and the box states that it is still set to High Eco mode, is this due to a deliberate change in the Eco mode function or is it in fact ignoring the High Eco setting and is the box therefore actually noe running low eco mode?
    Also, I routinely run a software update once a day to pick up any changes, again starting from yesterday, when I try to do this I get a message saying 'An error occured while trying to update your software - Downloading failed ' this is accompanied by a warning triangle symbol containing an exclamation mark.
    Anyone else seen these happen?
    My software is :- 15.11.0    2.1.4    714   56
    Thanks
    Solved!
    Go to Solution.

    ricke17 wrote:
    Yeh 
    Need to spread the word deviously on this forum.
    They don't like blatant advertising even though it is strictly not-for-profit!

  • Is It possible to keep users behind WSA IPs without change?

    Hello Guys,
    I need to know if it is possible to deploy WSA to serve internal users without changing their IPs?
    If yes, how to do it?
    Thanks.

    We would need to know a little more information to really help you on this, however if you have ASA you can do this with WCCP. 
    This link might help:
    http://www.cisco.com/c/en/us/support/docs/security/web-security-appliance/117810-configure-wsa-00.html
    -MB

  • [SOLVED] Can't hibernate with xfce as normal user

    Until recently, I can't hibernate using xfce menu as normal user. All other operations such as poweroff, reboot, logout... works.
    When I tried systemctl:
    > systemctl hibernate
    Failed to issue method call: Operation not supported
    Failed to issue method call: Access denied
    "sudo systemctl hibernate" works
    All other operations also works for normal user (without sudo).
    When I checked CanHibernate:
    >sudo dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.CanHibernate
    method return sender=:1.0 -> dest=:1.56 reply_serial=2
    string "na"
    Which is totally not true since I could hibernate as root.
    CanReboot, CanShutdown... returns "true".
    As expected, this doesn't work:
    > dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.Hibernate boolean:true
    Error org.freedesktop.DBus.Error.Failed: Operation not supported
    And of course, all other operations work, which is confusing.
    Package versions:
    > pacman -Q xfwm4 xfdesktop xfce4-session xfce4-power-manager systemd slim polkit
    xfwm4 4.10.1-1
    xfdesktop 4.10.2-1
    xfce4-session 4.10.1-3
    xfce4-power-manager 1.2.0-5
    systemd 208-1
    slim 1.3.6-1
    polkit 0.112-1
    Any ideas what's wrong? Thanks in advance.
    Last edited by bullno1 (2013-10-05 05:57:20)

    qr wrote:
    Hey,
    I experienced the same problem after todays update and after I downgraded systemd and systemd-sysvcompat to 207-5 it's working again.
    I still have to figure out what changed, but it's a temporary fix. Hope it helps.
    Thanks. Downgrading seems to fix it.
    root wrote:As far as I see you are using polkit with XFCE, are you aware that recent updates (03/09 in my pacman log) established that polkit would not autostart anymore but in GNOME Flashback?
    You might want to make sure polkit is running (not only installed) and consider switching to lxpolkit which is suggested as a lightweight alternative which will start automatically with DEs such as XFCE.
    It is running. Thanks for the suggestion about lxpolkit. I'll check it out.

  • [Solved] nm-applet does not display in normal user's panel

    I installed Arch Linux yesterday. Today, I am trying to get some of the refinements working. I installed OpenBox as a standalone window manager. I got several things working exactly the way I wanted as root, such as networkmanager, nm-applet, and pypanel. When I startx as root, the nm-applet is properly displayed in the pypanel.
    Then I discovered that I could not run an X application as the normal user without first running "xhost +" as root. At this point, it dawned on me that I am not supposed to run startx as root, but as the normal user. Duh!
    So, I thought I set up everything the same way for the normal user. When I startx as the normal user, OpenBox runs, nm-applet runs, and pypanel runs, but pypanel does not display the nm-applet icon. I can now run my X application as the normal user, so that is good.
    My .config/openbox/autostart file is exactly the same for root and my normal user:
    (sleep 3 && pypanel) &
    (sleep 3 && /usr/bin/nm-applet --sm-disable) &
    nm-applet was started by this code, because ps -ef shows it running and owned by the normal user:
    [tim@(none) ~]$ ps -ef|grep nm-applet
    tim 2311 2306 0 15:27 tty1 00:00:00 /usr/bin/nm-applet --sm-disable
    tim 2332 2327 0 15:27 pts/0 00:00:00 grep nm-applet
    [tim@(none) ~]$ ps -ef|grep networkmanager
    root 497 476 0 14:14 ? 00:00:00 /sbin/dhcpcd -B -K -L -G -c /usr/lib/networkmanager/nm-dhcp-client.action eth0
    root 869 476 0 14:30 ? 00:00:00 /sbin/dhcpcd -B -K -L -G -c /usr/lib/networkmanager/nm-dhcp-client.action ra0
    tim 2345 2327 0 15:27 pts/0 00:00:00 grep networkmanager
    Why does pypanel display the nm-applet icon for root but not for the normal user?
    Tim (newbie to Arch but previously ran ArchBang for six months)
    Last edited by ratcheer (2012-05-02 22:34:30)

    I have now switched to tint2 from pypanel, anyway. It is much cleaner and easier to use. At least in my opinion.
    Tim
    Last edited by ratcheer (2012-05-03 02:31:59)

  • How to view the No. of connections used in DB as Normal user?

    Hi,
    I have an clarification about to view the number of connections in DB as normal user.
    As sys user, we can see the Max. no. of connections / number of connections used in Database. In the sameway, Do we have any option to
    view those details as normal user [I.e. As normal user without DBA Rights ]. Please let me know if its possible.
    Kindly clarify me on this.
    Thanks,
    Orahar.

    With due respect i wish to say, suppose my car (session) is running on road (db). If i ask how many cars (sessions) are there at presently on road (db); don't you think i am asking bit unproductive question? Suppose any how i got a number say 100 ; so now what this 100 can help me; what i am going to solve by this 100.
    if you knows all why’s answer, then there are answers for all hows for sure!
    Regards
    Girish Sharma

Maybe you are looking for