41⟩ What file controls system wide password aging?
/etc/shadow
“Sun Solaris (OS) Interview Questions and Answers will guide you that the Solaris is a UNIX-based operating system introduced by the Sun Microsystems in 1992. Sun Solaris is known for its scalability, especially on SPARC systems, and for originating many innovative features that you will learn here by these Sun Solarid OS interview questions and answers guide.”
/etc/shadow
When NValias need is:
In case system can not boot from primary disk and it is needed to make another boot disk to access the data , nvalias command is used.
nvalias command makes the device alias and assigns an alternate name to a physical disk. Physical address of target disk is required which can be had by show-disk command on ok>.
ok> nvalias disk7 /iommu@f,e0000000/sbus@f,e0001000/dma@3,81000/esp@3,80000/sd2,0
The new aliased disk can be named as boot disk or can be used for booting by referring its name
ok> setenv boot-device disk7
ok>reset
or
ok> boot disk7
- ls -l | grep ^- | sort -nr
- cat sample.txt | grep -v ‘^$’ > new_sample.txt
- grep .Debug. *.confHere grep uses the string .Debug. to search in all files with extension..conf. under current directory.
- tail .f Debug.logHere tail shows the newly appended data into Debug.log by some processes/user.
- cd CDMA_3X_GEN*Here original directory name is . .CDMA_3X_GENERATION_DATA..
- find . -depth -print
You have to use the option "d" along with th patchadd commnad.
patchadd –d
prtvtoc /dev/rdsk/c0t0d0s0
________________________________________
PRTVTOC
/etc/named.conf
the command would be
eeprom boot-device & not printenv as suggested
Check man for "patchadd"...
:)eNJOY
The /etc/shadow file contains following fields.Login-id : Which indicates the username of that perticular user.Passwd : It Contains encrypted password.Lastchg : Indicates the number of days between 1-JAN-1970 and last password modification date.Min : Contains minimum no of days required between password changes.Max : Contains the maximum no of days the password is valid before the user's prompted to enter a password at login.Warn : Contains the number of days the user is warn before the password expires.Inactive : Contains the number of inactive days allowed for that user before the user's account is locked. Expire : contains the date when the user account expires once exceeded. The user can no longer log in also it will display the message "Your password has been expired".
/etc/path_to_inst contains each device, its instance name and number along with its physical name.
nfsd
mountd
lockd
statd
nfslogd
These five daemons will be in NFS server.
statd and lockd will be in NFS client too.
Both these commands are run at obp (open boot Prom) probe-scsi will probe the internal scsi and probe-scsi-all will probe both internal and external scsi.
Maybe not the best explanation but not bad...
________________________________________
The probe-scsi command communicates with all SCSI devices connected to on-board SCSI controllers.
The probe-scsi-all command additionally accesses devices connected to any host adapters installed in PCI slots.
A solaris disk has an area called volume table of contents(VTOC) that stores information about disk structure and organization.
________________________________________
VTOC stores in 0th sector
After VTOC Boot Block is there from (1-15) sector
you can simply use the time command on both systems.! For example:
time <<trans>>
out put will be like..
real 0m2.009s
user 0m0.000s
sys 0m0.000s
So, in actuality, It took a total of 2.009 seconds of my time to watch this command complete. But, as you can see, it used virtually no processing time.
For small transcation you may not find the much difference(sometimes no diff)
#prtdiag command will help you to find the RAM size.