Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi. I have a nonroot user and i want to be able to suspend the system as that user. i dont want to have to type the root password or sudo everytime i suspend, because i do this multiple times in a day.when i try to suspend, i get the following error:
/usr/sbin/pm-suspend
This utility may only be run by the root user.
does anyone know how to allow a nonroot user to run this without having to sudo etc? thanks.
Depending on your distro, you should be able to suspend from the shutdown menu.
You can set up a sudoer (/etc/sudoers) who can run the command, and only that command, as root. Then set up a launcher so you don't have to type the command in every time either.
Does your system use policy-kit. Try "polkit-auth --user <username> --show-obtainable". Does it have an entry dealing with suspending?
It used to be the case that programs like this were made suid root to enable regular users to run them. However this usually leaves a dangerous hole. Linux has moved from setting the suid bit --> to udev changing group ownership or permissions on devices --> to policy kit --> to where most of my old polkit rules have gone (session kit / dbus)?
Now you need to use your desktop environment configuration tools to make certain you do something like this properly. A client/server approach is now most common. The desktop communicates the request through dbus. The system determines whether you are authorized to do it and carries it out for you.
Look in the "users & groups" or "security section" configuration section for your distro. That is usually where these type of permissions are made. It could also be a matter of the feature not being enabled. Look at your desktop power management control as well.
If you didn't create a swap partition as large as your memory, you won't be able to suspend your machine. The swap partition is the resume device. It needs to be as large as your memory to be able to dump the memory info there.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.