First find the default boot device using the setboot command
# setboot
Primary bootpath : 0/4/1/0.0.0.7.0
HA Alternate bootpath : 0/0/2/0
Alternate bootpath : 0/4/1/0.0.0.6.0
Autoboot is ON (enabled)#
Find the corresponding dirver for the Hardware path using ioscan
# ioscan -funC disk
disk 39 0/4/1/0.0.0.6.0 sdisk CLAIMED DEVICE HP DG146ABAB4
/dev/dsk/c17t6d0 /dev/dsk/c17t6d0s2 /dev/rdsk/c17t6d0 /dev/rdsk/c17t6d0s2
/dev/dsk/c17t6d0s1 /dev/dsk/c17t6d0s3 /dev/rdsk/c17t6d0s1 /dev/rdsk/c17t6d0s3
disk 40 0/4/1/0.0.0.7.0 sdisk CLAIMED DEVICE HP DG146ABAB4
/dev/dsk/c17t7d0 /dev/dsk/c17t7d0s2 /dev/rdsk/c17t7d0 /dev/rdsk/c17t7d0s2
/dev/dsk/c17t7d0s1 /dev/dsk/c17t7d0s3 /dev/rdsk/c17t7d0s1 /dev/rdsk/c17t7d0s3
#
List the contents of EFI shell.This can be useful to compare root and root mirror disks.
# lifls -l /dev/rdsk/c17t7d0s2
volume ISL10 data size 7984 directory size 8 06/10/27 14:23:07
filename type start size implement created
===============================================================
ISL -12800 584 242 0 06/10/27 14:23:07
AUTO -12289 832 1 0 06/10/27 14:23:07
HPUX -12928 840 1024 0 06/10/27 14:23:07
PAD -12290 1864 1468 0 06/10/27 14:23:07
LABEL BIN 3336 8 0 08/07/01 05:19:23#
27 August 2008
22 August 2008
Sudoers file on Solaris 10
sudo is available from the SFWsudo package on Solaris 10.
To use it a /etc/sudoers file has been set but still leading to the following error
user NOT in sudoers
Hopefully, truss will help :-)
root@server:/# truss -o /tmp/output sudo ls
The /tmp/output file is answering the enigma:
root@server:/# grep sudoers /tmp/output
lstat("/opt/sfw/etc/sudoers", 0xFFBFFB28) = 0
open("/opt/sfw/etc/sudoers", O_RDONLY) = 4
The sudoers file to edit is in /opt/sfw/etc
To use it a /etc/sudoers file has been set but still leading to the following error
user NOT in sudoers
Hopefully, truss will help :-)
root@server:/# truss -o /tmp/output sudo ls
The /tmp/output file is answering the enigma:
root@server:/# grep sudoers /tmp/output
lstat("/opt/sfw/etc/sudoers", 0xFFBFFB28) = 0
open("/opt/sfw/etc/sudoers", O_RDONLY) = 4
The sudoers file to edit is in /opt/sfw/etc
Subscribe to:
Posts (Atom)