Visit Our UNIX and Linux User Community

How to logout inactive users????

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to logout inactive users????
# 1  
Old 03-13-2002
Question How to logout inactive users????

I would like to automatically logout from the system inactive users depending on their functions.

For example there are users that I would like to logout after 15 minutes of inactivity, but there are others that I would like to logout after 30 minutes of inactivity.

It's possible to do this???
# 2  
Old 03-13-2002
Simply build a script that contains the logic to find each user based on what they are running or on their group or whatever your criteria is and kill (see man kill) their children and then the parent.
# 3  
Old 03-13-2002
I'm new to UNIX.... How could I do this????
# 4  
Old 03-13-2002
Search the web for free info on writing shell scripts
(example )

Learn UNIX commands - the same way or read man pages.

Scripting is only doing what you would do from the command line in a certain order.
# 5  
Old 03-13-2002

O.K. I greatly appreciate your help. Thanks.
# 6  
Old 03-14-2002
# 7  
Old 03-14-2002

Thanks a lot!!!! I'm glad to know there is a simple way to do what I'm looking for.

Previous Thread | Next Thread
Test Your Knowledge in Computers #890
Difficulty: Easy
In sed, the REGEX dot (.) matches exactly one character.
True or False?

8 More Discussions You Might Find Interesting

1. What is on Your Mind?

Purge of Inactive Users with Zero Posts and Other Anti-spam Measures

In order to keep the site "clean, safe and warm", I have recently purged all accounts at UNIX.COM which meet the ALL of the following 3 criteria: No user activity in 2018 No posts (zero post count) Link in user profile. In addition, I purged all users who registered but never confirmed... (6 Replies)
Discussion started by: Neo
6 Replies

2. Shell Programming and Scripting

Deleting Inactive Solaris users

Hello, I want to do a search for users on my solaris boxes that have been inactive for a defined number of days and then delete them. Any ideas how to determine or calculate the number of days (possibly using the /var/adm/wtmpx file) from the user's last login to the current date of search. ... (0 Replies)
Discussion started by: prince2010
0 Replies

3. Solaris

Log Information about login/logout of any users

Hi to all, i want configure my solaris 10 machine to log all login,logout and "su" in a particularly file. How can i do it? Now i enable auth.* in syslog.conf but the informations are written in a confused mode... Thanks (4 Replies)
Discussion started by: suuuper
4 Replies

4. Solaris

List all inactive users who has not logged on since last 90 days

I need actuall script which List all inactive users who has not logged on since last 90 days Thanks in advance. Di! (17 Replies)
Discussion started by: haridham
17 Replies

5. UNIX for Dummies Questions & Answers

List all inactive users who has not logged on since last 90 days

Hi, Can I get a script to list out all the users, who has not logged on since last 90 days. Last command in not working due due to /var/adm/wtmpx is more than 2 GB. Thanks in advance. Regards, Roni (10 Replies)
Discussion started by: manasranjanpand
10 Replies

6. Solaris

logging logout of users

I am looking for solutions to address my need to log to a file whenever a user logs out or session disconnects. (1 Reply)
Discussion started by: mhm4
1 Replies

7. UNIX for Dummies Questions & Answers

??? Log file users login and logout..???

hi all... only one question.... what is the file...where show me records login and logout of the unix user's..?? thank you.... I waiting for response... (1 Reply)
Discussion started by: chanfle
1 Replies

8. UNIX for Dummies Questions & Answers

Canīt logout to user inactive

I have SCO OpenServer release 5 I used TIMEOUT and TMOUT in .profile but I donīt Know if is correctly WND=/usr/synergy/dbl DTKMAPFIL=/u/ics/icsdat/icsmap.ics umask 000 ... (1 Reply)
Discussion started by: lalox
1 Replies

Featured Tech Videos