Please explain about sudoers
Code:
user from-host = (who) commands 1. from-host - is it IP or hostname? 2. what does "who" mean? Explain with a simple language please. |
Well I think you will need to explain further? I have just looked at man page for sudoers and cannot find the line you have shown above.
Whilst scrolling through the man page though it does seem to quite explicitly list what a host and user are. Without more details on where you have drawn this from it is difficult to tell you what it actually means. |
Hello,
The line you indicated can be 'translated' into the following: Code:
usernames/group servername = (usernames command can be run as) command Kind regards, Eric |
I was reading some pages in Web and this line is what I know the syntaxis. It's not in the man page or anywhere else.
For example from man: Code:
steve CSNETS = (operator) /usr/local/op_commands/ "The user steve may run any command ... only as user operator" I don't get it. Who is allowed to run any command - user steve or user operator? |
If you have sudo or are a sudo user, you can use sudo to execute commands that a normal user isn't authorized to do.
http://linux.die.net/man/8/sudo |
Quote:
i.e. sudo -u operator command would work, but sudo -u fred command or sudo command (which defaults to "-u root" wouldn't. The sudoers man-page is notoriously hard to understand. Best bet is to skip down to the bottom of it and just look at the examples. |
All times are GMT -5. The time now is 01:14 PM. |