Linked Questions

9
votes
2answers
39k 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 ...
9
votes
1answer
25k 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 ...
7
votes
2answers
22k 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,...
8
votes
1answer
15k 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=(...
6
votes
1answer
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
1answer
4k 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 ...
1
vote
1answer
2k 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 ...
3
votes
1answer
2k 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/...
0
votes
2answers
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?
0
votes
1answer
3k 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 ...
4
votes
1answer
1k 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 ...
1
vote
1answer
1k 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
2answers
768 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
1answer
957 views

Allow user to use sudo to execute anything, only one executable as nopassword [duplicate]

I have a Linux user that needs to be able to execute any command with sudo, but it should ask for their password for all apart from one executable. Currently my sudoers files looks like: # # This ...
0
votes
1answer
873 views

Linux Sudo Without Password Prompt [duplicate]

I want to run a bash command at startup (~/.config/autostart/myCommand.desktop) that requires sudo, but rather than it prompting me every time, I would like to include the password in the command, ...

15 30 50 per page