Linked Questions
74 questions linked to/from How to run a specific program as root without a password prompt?
25
votes
2
answers
53k
views
sudo: password prompted even when NOPASSWD is set [duplicate]
~/bin$ cat setbrightness
id
echo $1 > /sys/class/backlight/intel_backlight/brightness
~/bin$ whoami
rag
~/bin$ sudo -l
Matching Defaults entries for rag on this host:
env_reset, mail_badpass, ...
12
votes
1
answer
43k
views
Sudo with NOPASSWD and service restart [duplicate]
I have an /etc/sudoers with the following:
glens ALL=NOPASSWD:/usr/sbin/service php5-fpm
glens ALL=(ALL:ALL) ALL
And I'm trying to run the command:
sudo /usr/sbin/service php5-fpm restart
...
9
votes
2
answers
46k
views
I'm not getting privileges, edited /etc/sudoers [duplicate]
I want to run any program without asking root password. Because I'm the only person who use the system. So I googled and edited /etc/sudoers.
What I did:
# chmod 640 /etc/sudoers
# vim /etc/sudoers
...
7
votes
1
answer
16k
views
How do you get NOPASSWD sudo option to work in Fedora 15? [duplicate]
Possible Duplicate:
How to run a specific program as root without a password prompt?
I installed fedora 15. I use sudo visudo to modify sudoers file and add the following line:
USERNAME ALL=(ALL)...
6
votes
1
answer
2k
views
No password to run command as root for fixed command? [duplicate]
Is it possible to define a rule in sudoers to allow one user to run one well defined command as root, without password or other authentication except being the right user?
Are there alternatives to ...
4
votes
1
answer
5k
views
Can't give myself NOPASSWD privelege for chmod/chown [duplicate]
I'm trying to set my local computer (which has Linux Mint 13 Maya) so that I can chmod & chown any file with my regular max user account.
Following this page,
https://askubuntu.com/questions/...
4
votes
1
answer
8k
views
How can I add sudo permission for copying? [duplicate]
my sudoers file:
cat /etc/sudoers
...
USERHERE ALL = NOPASSWD: /bin/cp /home/USERHERE/foo/in.csv /home/anotheruser/in.csv
...
it looks OK too:
USERHERE@notebook:~/foo$ sudo -l
Matching Defaults ...
0
votes
2
answers
6k
views
sudoers file change not working? [duplicate]
I'm in Ubuntu 18.04LTS and I want to change the sudoers file to execute sudo shutdown -h now without the need of password (for my_username). The steps I take were:
With my user my_username open ...
1
vote
1
answer
4k
views
How to make sudo accept password automatically without prompting for it? [duplicate]
I created a user named shut so that whenever one logs in using that username the machine would shut down. For that I placed the below command in the end of the .profile.
exec sudo shutdown -h now
But ...
5
votes
1
answer
2k
views
Sudo specific command with no password [duplicate]
I've got the following entry in /etc/sudoers to allow me to run any command after asking for my password
%sudo ALL=(ALL:ALL) ALL
I also want to run a specific command with no password as part of a ...
0
votes
1
answer
5k
views
Allow all commands via sudo but nopasswd for specific commands [duplicate]
I want to make sudo configuration such that one user 'test' should have access to all commands,all hosts like root. But for specific commands like 'ls /root' password should not get promted.
I'hv ...
0
votes
2
answers
4k
views
Is it possible to write a script that run su or sudo command without typing password? [duplicate]
Is it possible to write a script that run su or sudo command without typing password?. I googled and its said that su doesn't read password from buffer. So is there any solution?
1
vote
1
answer
2k
views
sudo NOPASSWD is ignored [duplicate]
I want to be able to run the pm-suspend and pacman without sudo to ask me for a password for all users in the group sudo.
I added the following line to my /etc/sudoers configuration following this QA:...
1
vote
2
answers
1k
views
Can we install a package through a shell script? [duplicate]
I'm trying to write a shell script so that when I reinstall my Ubuntu again. I could just run script and retain all the packages. And I'm planning to pass password in form of argument.
My question ...
1
vote
1
answer
3k
views
How to allow non-root users to run certain programs (for example the KDE app store) without root [duplicate]
Put simply, Whenever somebody logs onto the family computer that I manage, I get bugged about updates and "could you install x thing that I saw in the store" and such. How would I enable all users to ...