The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
191 views

How to give Root privileges for User in Centos 6.2 minimal

I installed Centos 6.2 minimal x86_64 server in Virtual Machine Manager. After installed I created Username in the server. And I added the User into a wheel group. # useradd testuser # ...
2
votes
1answer
102 views

Sudo email notification setup error

I'm Using Centos version: [sysadmin@backup-srv ~]$ cat /etc/redhat-release CentOS release 6.4 (Final) I'm using this sudo version: [sysadmin@backup-srv ~]$ sudo -V Sudo version 1.8.6p3 Sudoers ...
2
votes
2answers
94 views

visudo/sudoedit and gvim --remote-silent

Is it possible to use gvim --remote-silent and similar as an editor for visudo and sudoedit? Actually, I don't think this is related to the --remote option. Even if I set Defaults editor = ...
1
vote
1answer
618 views

sudoers - How to use NOPASSWD and sudoedit at the same time?

What is the syntax for using NOPASSWD and sudoedit at the same time in /etc/sudoers? I tried this: john ALL=(ALL) NOPASSWD: sudoedit /path/to/file but I still get prompted for a password.
4
votes
2answers
422 views

Sudoedit Vim force write (update) without quit

I'm doing some scripting with Vim and I've just started using sudoedit. Problem is, when I :w it writes to the temp file, so any testing of the script can't happen unless I quit the editor. How can ...
2
votes
1answer
69 views

How can I run emacs with no shell?

I'm administrating an Arch Linux server. How can I securely add emacs to my /etc/sudoers editor variable? Currently I have "emacs" but that allows M-x shell. Basically, I want something like rvim, ...
10
votes
3answers
1k views

This file must be edited with the 'visudo' command.? [duplicate]

Why it is recommended to edit /etc/sudoers file with the visudo command? Here is a sample of the file: ## Sudoers allows particular users to run various commands as ## the root user, without needing ...
0
votes
4answers
142 views

Trying to setup sudo user

I'm trying to setup sudo with no password but still I get prompted for password. I'm using Ubuntu, here is the relevant line from the sudoers configuration file : gandalf ALL=(ALL:ALL) NOPASSWD: ...
2
votes
0answers
250 views

Is there a better alternative to sudoedit?

What I really hate about sudoedit is the fact that it always uses a different filename. I'm using emacsclient and when editing a file twice I'm left with two useless buffers. Sometimes I even happen ...