Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

Disable user logins

SOLVED
Go to solution
H S Z
Regular Advisor

Disable user logins

hi gurus,
i want to track users ativities on tru64. what can i do?
addition to that, i want to also at a moment, disable all users logins. for root logins, i know i have to edit the /etc/securettys file.
please assist.

6 REPLIES
Ivan Ferreira
Honored Contributor

Re: Disable user logins

For tracking user activities you need to configure audit. See the Security Administration guide.

If you are using ENHANCED SECURITY, you can disable a user using:

usermod -x administrative_lock_applied=1
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
H S Z
Regular Advisor

Re: Disable user logins

hi ivan,
what i want to do is that, at a moment, for example, when i want to launch my backup, i dont want any user to login remotely to the system, so i want the system to reject remote user logins at that moment.
is that possible and how?
Rob Leadbeater
Honored Contributor
Solution

Re: Disable user logins

Hi,

You can reject all user logins by simply creating the nologin file in /etc

# touch /etc/nologin

Optionally, you could send a message to your users that the backup is running...

# echo "Backup in progress" > /etc/nologin

Should anyone attempt to login they'll see:


login: someuser
Password:

User logins denied by file /etc/nologin:
Contents:

Backup in progress

Let users back on again by removing the file...

Hope this helps,

Regards,

Rob
H S Z
Regular Advisor

Re: Disable user logins

Bigo! Rob.
this is what i wanted. thanks.
thanks.
H S Z
Regular Advisor

Re: Disable user logins

Yes, am very happy
Joakim Brosten
Frequent Advisor

Re: Disable user logins

Hello,

I remember from my time as a T64-admin that the "/etc/nologin" was not supported on True64.
I used to make a copy of "/etc/passwd", delete all users from it and after finnished what I had to do, copy back the original passwd file.

/JB