[Solaris] grub password

— Get encrypted password using grub command.

# /boot/grub/bin/grub
grub> md5crypt
Password: ********
Encrypted: $1$0igLM0$4m3eSYgUSzmE4GXHoXZIr0
grub> quit

— Edit menu.lst.
Add «password —md5 <encrypted password>».
Add «lock» if OS boot needs to be protected also.

# cat /rpool/boot/grub/menu.lst
splashimage /boot/grub/splash.xpm.gz
foreground 343434
background F7FbFF
default 0
timeout 30
password --md5 $1$0igLM0$4m3eSYgUSzmE4GXHoXZIr0
#---------- ADDED BY BOOTADM - DO NOT EDIT ----------
title Oracle Solaris 11 Express snv_151a
lock
findroot (pool_rpool,0,a)
bootfs rpool/ROOT/solaris
kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS
module$ /platform/i86pc/$ISADIR/boot_archive
#---------------------END BOOTADM--------------------

Взято с oracle.com

Добавить комментарий

Ваш e-mail не будет опубликован. Обязательные поля помечены *