During Some Free Time

Marco Ramilli
Date
12 December 2007
Read
Share
Some time I cannot understand why people don't want reading normal and easy paper but they prefer asking (in this case -to me-) a lot of obvious things. During these days I received some mails asking how to change system administrator properties. In particular case some of my "old" student wanna know how to fix time on users accounts using linux OS. Well, just 2m of google research and I found lots of great paper on this problem. Anyway the most easiest way to fix the time ,on user accounts, is using pam_time.so by Andrew G. Morgan. Keep in mind that the main useful file is in /etc/security/time.conf .

Here an easy example :

Service;ttys;users;time

To limit ssh access from 23:00PM to 08:00AM -favorite hacker's time- you can write the following lane

sshd;*;*;!Al2300-0800

The !Al term means, anything axcept "All the days".

Another great example could be the following one:

login;*;!root;!Al1600-2000

It permits people from 4PM to 8PM all the days except the root.

If I can suggest something to you; remember that the initial hardening time is one of the most important procedure to increase security on your machines. be careful.
Marco Ramilli
Date
12 December 2007
Read
Share
← Go back
Latest Posts

i-SOON Data Leak: Key Points

Introduction i-SOON (上海安洵), a prominent contractor for various Chinese government agencies such […]

Date
26.02.2024
Duration
5 min
Text
Marco Ramilli

X Gold Badges: a new proliferating market

When I saw a threat actor hijacking the X account of Google's […]

Date
08.01.2024
Duration
5 min
Text
Marco Ramilli

Technical Data Sheet: LOCKBIT 3.0

LOCKBIT 3.0 is a notorious Ransomware Group that was first identified on […]

Date
20.12.2023
Duration
5 min
Text
Marco Ramilli
1 2 3 236
Back to Top
magnifier