Linux ordinary users to perform administrator permissions in visudo

Recommended for you: Get network issues from WhatsUp Gold. Not end users.

Because the server, in order to facilitate the release version, made a simple version of the manager, but ordinary users have been suggested in the executive administrator permissions

sudo cp /tmp/test.war /opt/

test is not allowed to execute

Also checked some information that is

In the right after the super administrator user visudo

Add test ALL= (ALL) NOPASSWD: ALL (on the final test to the user name)

Careful not to directly use the text editing command operation, using the visudo will prove to you add a content type . In order to guarantee the safety or not directly edit.

Under normal circumstances this is OK but I come here before the end of the cause is unknown

Then consult the " " professionals; after that the direct use the command is as follows;:

sudo su -c "The command can be as ":

sudo su -c "cp /tmp/test.war /opt/"

Successful test command attention to the double quotation marks!!

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by Harvey at December 21, 2013 - 10:16 AM