Featured post

Quiz: Data PreProcessing

Thursday, 2 June 2016

Solaris 11:Fixing corrupted sudoers file

 If sudoers is corrupted , we can’ take root. To fix this issue, follow below steps.

11>  Go to console and send break signal ~^B, it will ask for options select “r(reset)”.

22> Once it starts to boot try both of the break signal , one of them should work
~# or #.

33> It will come to ok prompt, boot from net
Ok> boot net –s

44> Different options will come, select the 3rd to go to shell

55> zpool import -f rpool

56> beadm list

67>     beadm mount <BE name> /a

78>     vi /a/etc/sudoer.s/XYZsudoers (set TERM=vt100 and export it otherwise very tough to edit the file)

89>     cd /

910>     beadm umount <BE name>


111> init 0