Glenn Faden wrote:
> epiq wrote:
>> i am install snv_101b update for SunOS  5.11 snv_101b i86pc i386 i86pc 
>> Solaris and lost root role for my user account.  i know root password, but 
>> can't  make su because lost root role. How i can restore this role without 
>> rollback updates?
>>   
> Try booting from the previous image, and then mounting your new image so 
> you can repair it.
> 
> You should have a ZFS dataset with a name like rpool/ROOT/opensolaris-1
> 
> To mount it, temporarily, do this:
> 
> # zfs set mountpoint=/mnt rpool/ROOT/opensolaris-1
> 
> # diff /etc/user_attr /mnt/etc/user_attr
> 
> Depending on what the diff shows, you can either edit the file 
> /mnt/etc/user_attr by hand, or simply do this
> 
> # cp diff /etc/user_attr /mnt/etc/user_attr

Of course, remove the word "diff" from this command; i.e

# cp /etc/user_attr /mnt/etc/user_attr

> 
> Remember to restore the mountpoint before rebooting:
> 
> # zfs set mountpoint=/ rpool/ROOT/opensolaris-1
> 
> --Glenn
> 
> _______________________________________________
> security-discuss mailing list
> security-discuss at opensolaris.org


-- 
Scott Rotondo
Principal Engineer, Solaris Security Technologies
President, Trusted Computing Group
Phone/FAX: +1 408 850 3655 (Internal x68278)

Reply via email to