Where is the sudoers file in Solaris? Is it different between Solaris versions (specifically, 9 and 10)?
|
feedback
|
|
Neither Solaris 9 or 10 include sudo - it wasn't bundled with Solaris until Solaris 11 - so for Solaris 9 & 10 the answer is “Whatever path was compiled into whatever version you installed.” | |||||
feedback
|
|
On MacOS X - I expect others are similar:
see | |||||||
feedback
|
|
It depends where it was compiled into sudo; it can basically be anywhere, as long as the sudo and visudo tools both know about it. I tend to run
(which may need privilege) when I want to know where system X keeps its sudoers file. | |||
|
feedback
|
|
Solaris has a more advanced privilege system than that. For example you can allow someone access to privileged ports without giving general root access. To do what sudo does, add the "Primary Administrator" profile to the user:
And then under that user:
The profiles are defined in /etc/security/prof_attr. In there you'll see a list of the fine grained privileges in the profile. The user/profile assignments are in /etc/user_attr. | |||
feedback
|
|
instead of sudo, you can use
| |||
feedback
|