User inactivity


 
Thread Tools Search this Thread
Operating Systems Solaris User inactivity
# 1  
Old 11-26-2012
User inactivity

Simple question: for determining whether the user has exceeded the maximum amount of "inactivity" (as set in the shadow file) what date is the current login being compared to? Is it wtmp data or something?
# 2  
Old 11-26-2012
It is usually set up with a readonly variable named TMOUT, on a per user or group basis

ksh example (usually in /etc/profile somewhere)
Code:
typeset -r TMOUT=14400

sets a timeout inactivity period of 4 hours.
# 3  
Old 11-26-2012
Sorry, my question was ambiguous and I'm seeing that just now. I meant the user account inactivity that you configure in /etc/shadow regarding the maximum amount of account inactivity allowed before the account becomes inaccessible until a password reset. I'm thinking that it only pertains to login activity (making it probably wtmp) but I'm not sure what all is involved in actually enforcing that limit (like if sudo activity would reset the clock on an account being inactive).
# 4  
Old 11-26-2012
That "timer" is reset by login.

Code:
sudo su - someuser

has no effect on inactivity timers.

NOTE: this is a horrible idea if you have users that log in and stay logged in for long periods.

In Solaris the nistbladm command is used to do this. A value of -1 in "field" 5 turns off the feature, any positive number turns it on. Where 5 refers to the
Code:
shadow=::::42::

clause of nistbladm. 42 days of inactivity.

Consider not trying to edit /etc/shadow. The consequences of an error with nistbladm
are small compared to the problems of a really screwed up /etc/shadow file.

... maybe I got what you wanted this time.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

last - find out inactivity

I am on AIX 6.1, and need to find out who has not accessed the system within 1, 2, or 3 months depending upon the filter I specify. The output I need to have is the account name and the last time accessed: i.e. kart Mar 27 05:13 - 05:13 (00:00) Please advise. (5 Replies)
Discussion started by: Daniel Gate
5 Replies

2. Shell Programming and Scripting

Shell exit due to inactivity

I am installing an executable files. It takes around 30 minutes. During this time...the shell pops the msg "due to inactivity shell pops out in 60 seconds. I dont want this to happen. the terminal shouldnt exit at all. Is there any way that it doesnt exit.I am using putty with ksh (7 Replies)
Discussion started by: sriki32
7 Replies

3. UNIX for Dummies Questions & Answers

lock the console after 5 minutes of inactivity.

How would i force The server console to be locked automatically after 5 minutes ? I want it to happen for X as well as terminal session of the machine. My Linux distribution details. LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch Distributor ID:... (11 Replies)
Discussion started by: pinga123
11 Replies

4. UNIX for Advanced & Expert Users

Determining if user is local-user in /etc/passwd or LDAP user

Besides doing some shell-script which loops through /etc/passwd, I was wondering if there was some command that would tell me, like an enhanced version of getent. The Operating system is Solaris 10 (recent-ish revision) using Sun DS for LDAP. (5 Replies)
Discussion started by: ckmehta
5 Replies

5. IP Networking

TCP server dies after few hours of inactivity

We have a NAS application which can be accessed by both HTTP and HTTPS connections. The issue we are facing is that the tcp server instance that initiates the HTTP access dies after a few hours of inactivity(the NAS application was kept idle for around 10 hours). However, the tcpserver that... (1 Reply)
Discussion started by: swatidas11
1 Replies

6. Red Hat

inactivity default to 30 days

Hi All, On red hat ent 4. How do I make the inactivity a default to 30 days? What config file I need to modify so that I will not modify /etc/shadow? Thanks for any comment you may add. (1 Reply)
Discussion started by: itik
1 Replies

7. Solaris

solaris 9 console inactivity timeout

All, I log into Solaris 9 server through a command line at the console and want enable a inactivity timer to log out of the server after 5 minutes. How can it be done? (1 Reply)
Discussion started by: bubba112557
1 Replies

8. UNIX for Advanced & Expert Users

User inactivity at OS level

Dear friends, Can anyone let me know how to configure various OS mentioned below to get user ids deactivated automatically if not logged in at all for a period of, say, 45 days? 1. UNIX / Linux / AIX / Tru64 2. It is OK whether the solution is by running OS commands / running scripts written... (1 Reply)
Discussion started by: bache_gowda
1 Replies

9. SCO

Apparent logoff’s due to inactivity.

I have run across an issue with the last two Dell Poweredge servers I have attempted to deploy. I seems that when a telnet session sits idle for 5 to 30 minutes (seems random) the session is being closed and users are logged off. If the session has user activity there is no problem staying... (0 Replies)
Discussion started by: gadgetman
0 Replies
Login or Register to Ask a Question