See the explanation using the follow serial number as example:
DEH2381234
The first two characters are the country code, in our example Germany (DE)
The third character is the code of the supply site (H ->Herrenberg, Germany)
The next three characters are the date of manufacture, the first digit is for the year then two for the calendar week (238 -> 38th week of 2002)
The last four characters are a sequential ID on that particular week (1234)
What's mean the Serial Number?
Labels: Others
Disable password age for all user
Sure, there's another methods to do that less fun :)
#for i in `awk -F ":" '{print $1}' /etc/passwd`
do
passwd -x -1 $i
done
Allowing logins specified period
You can define with the userdbset command what period that a specified user can login in your system, follow an example:
# userdbset -u egon LOGIN_TIMES=Any0800-1800
Where:
-u egon = user name
Any = Any day
0800-1800=Period allowed 08AM at 6PM.
Labels: Others
Adding timestamp after each command typed, using a trap
Put the follow entry in the user profile:
trap 'date "+# %c" | read -s' debug
Labels: Others
Allow only direct root logins on the system console
Allow only direct root logins on the system console. Create the /etc/securetty file with the single entry, console, as follows:
This restriction applies to all login names that have a UID of zero (0).
The purpose of the /etc/securetty file is to specify where root can log in.
[11.31] Disabling last login msgs
You can set the following variable in /etc/default/security:
DISPLAY_LAST_LOGIN=0
Edit the ssh configuration too /opt/ssh/etc/sshd_config:
PrintLastLog no
Restart the sshd do apply the changes in ssh:
# /sbin/init.d/secsh stop && /sbin/init.d/secsh start