Solaris 10 sudo configuration Issue -


i using sunos 5.10 generic_147441-24 i86pc i386 i86pc

if run

which sudo

i below

/opt/sfw/bin

when run "sudo -l" below

user localuser may run following commands on host:

(root) nopasswd: /sbin/ifconfig

for "visudo"

visudo

-bash: visudo: command not found

also /etc/sudoers file not exist in box.

please me configure sudo, how possible out sudoers file.

i've never seen sudo binary exist in /opt, first thought visudo binary not in path, or sudo package installed not contain visudo binary. either way may consider downloading sudo package again , reinstalling.

to see if visudo binary exists anywhere:

find / -name visudo -print 

if find nothing, remember not explicitly need visudo use sudo -- it's there checkpoint making sure not save , exit sudoers file has errors, possibly compromising ability edit again or break sudo users on host.

also note /etc/sudoers can start off empty, fill in sudo rules. example, provide sudo commands on host user without prompting password:

userid all=(all) nopasswd: 

that particular user id can run "sudo -l" list sudo rules available it. test sudo in fact working on host.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -