Mostrando postagens com marcador Others. Mostrar todas as postagens
Mostrando postagens com marcador Others. Mostrar todas as postagens

What's mean the Serial Number?

quarta-feira, 22 de fevereiro de 2012

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)

Disable password age for all user

sábado, 4 de fevereiro de 2012

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

terça-feira, 24 de janeiro de 2012

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.

Adding timestamp after each command typed, using a trap

segunda-feira, 16 de janeiro de 2012

Put the follow entry in the user profile:

trap 'date "+# %c" | read -s' debug

Allow only direct root logins on the system console

segunda-feira, 9 de janeiro de 2012


Allow only direct root logins on the system console. Create the /etc/securetty file with the single entry, console, as follows:

# echo console > /etc/securetty

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

sexta-feira, 6 de janeiro de 2012

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