1
vote
4answers
12k views

How to run a file with sudo without a password? [duplicate]

Possible Duplicate: How to run an application using sudo without a password? I've made a script that preforms various system tasks, that I run regularly, but I have to use sudo to run the ...
7
votes
0answers
10k views

Can I run sudo without entering a password? [duplicate]

Possible Duplicate: How to run an application using sudo without a password? I like Ubuntu, but I hate entering a password every time when I run a command with sudo. Can I avoid it?
112
votes
3answers
247k views

How to run sudo command with no password?

How does the ubuntu user on the AWS images for Ubuntu Server 12.04 have passwordless sudo for all commands when there is no configuration for it in /etc/sudoers? I'm using Ubuntu server 12.04 on ...
36
votes
8answers
47k views

How do I make Powertop changes permanent?

I'm on a Compaq 615 and it's fan is loud. Not much you can do about that but I'm trying to keep the CPU/GPU as cool as possible. This is what Powertop has to say: If I change all of them to "good",...
10
votes
1answer
3k views

How to make 'sudo' grab the password from a file?

I want to run a command that requires the sudo password say: sudo apt-get update Isn't this supposed to work (I have stored the password in a normal text file passwd.txt): sudo apt-get update <~...
6
votes
1answer
13k views

How to allow execution without using the sudo?

I am writing a Java application where i need to do a command line execution and get a result back, but when i execute the command, it ask for sudo password. So far i tried: $ sudo -s $ vim /etc/...
8
votes
3answers
4k views

Where are the startup scripts for Unity Desktop?

I want to run a script as soon as my lightdm authentication succeed, and my Unity starts loading. and i want to run my scripts as a root user. where are startup scripts located in Unity ?
2
votes
2answers
12k views

tcpdump permissions problem

having trouble running tcpdump. I'm on Trusty. I must run tcpdump with non-root user. Searched the web for my problem and figured out i should sudo setcap cap_net_admin=eip /usr/sbin/tcpdump That ...
-7
votes
1answer
3k views

How to sudo visudo without a password, remove all prompts for password [closed]

Websites tell me to use sudo when I have no password, usually tell me one of two things. It is bad security Or use 'sudo visudo' and the %admin ALL=(ALL) NOPASSWD: ALL line I would like to not ...
1
vote
1answer
1k views

Possible to run gksudo without a password require?

So i have xampp installed on my desktop and since it can use alot of ram if it stays active for a long time i followed tutorial to put together some kind of python script to start and stop services ...
7
votes
0answers
3k views

How to make powertop “Device Power Management” suggestion permanent? [duplicate]

When I run powertop on my laptop I get following suggestion: Suggestion: Enable Device Power Management by pressing the P key Doing this results in considerable saving in power usage and I would ...
1
vote
1answer
616 views

How can I run sudo hidd --search without a password?

If I run hidd --search it says HID create error 13 (Permission denied) If I run as sudo it connects fine. I want this script to run on login. I saw how to edit sudoers, but will it create a ...
0
votes
2answers
548 views

using a sudo command without a password for a certain app

I'm using a python script to run docker, but docker requires sudo commands to run and it's bad practice to store the sudo password in the file or give the whole python script sudo rights, I've seen a ...
1
vote
3answers
310 views

Can I automate updating/upgrading with sudo in this way?

Please consider this code: alias fast='echo "password" | sudo -S apt-get update && sudo -S apt-get upgrade' I have not yet had a problem using it but is it possible that if the first step, ...
5
votes
1answer
221 views

Any reason to have a strong user password?

I recently decided to change my (very) strong user password to something trivial. This was mostly to eliminate frustration with typing a long password each time I sudo or whatever. My question is, ...

15 30 50 per page