LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   No Sudo in Solaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/no-sudo-in-solaris-784558/)

malickhat 01-25-2010 05:30 AM

No Sudo in Solaris
 
Hi,
i've tried to find whether i've been in sudo list or not ,but i can't able to see any /etc/sudoers files in my solaris box ,so what is the file location for sudoers in solaris
so do i have to install something for getting sudo to work

jlliagre 01-25-2010 05:42 AM

Yes, sudo isn't part of Solaris 10 or older. You can install it from sunfreeware.com or other repositories. Alternatively, you can use rbac which has similar features.

OpenSolaris bundles sudo but makes use of rbac.

malickhat 01-25-2010 05:52 AM

Quote:

Originally Posted by jlliagre (Post 3839606)
Yes, sudo isn't part of Solaris 10 or older. You can install it from sunfreeware.com or other repositories. Alternatively, you can use rbac which has similar features.

OpenSolaris bundles sudo but makes use of rbac.

But i think i need to confirm first that i don't have sudo installed ,so for that what will be the location where it'll be normally located
and one more thing i can login by
Code:

su - myname
it ask me username and all that ,but i think it's different for sudoers right

jlliagre 01-25-2010 07:10 AM

Quote:

Originally Posted by malickhat (Post 3839613)
what will be the location where it'll be normally located

A common location would be /usr/local/bin, alternative might be /opt/<whatever>/bin.

malickhat 01-25-2010 12:01 PM

Quote:

Originally Posted by jlliagre (Post 3839669)
A common location would be /usr/local/bin, alternative might be /opt/<whatever>/bin.

But i can see that sudo is in my command list ,:scratch:where it will be coming from then

Blinker_Fluid 01-25-2010 02:09 PM

Quote:

Originally Posted by malickhat (Post 3839966)
But i can see that sudo is in my command list ,:scratch:where it will be coming from then

Try which sudo
$which sudo
/opt/csw/bin/sudo

jlliagre 01-25-2010 04:22 PM

Okay, I wrongly thought you were missing the sudo command, not its configuration file. Your sudoers file is probably in /usr/local/etc or /opt/csw/etc.


All times are GMT -5. The time now is 07:17 PM.