Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logging CMS Users off

Status
Not open for further replies.

buffalosoldier1972

Technical User
Jan 25, 2007
11
US
What is the command/script to log users off CMS every night?
 
I dont know who to do it via a script. But if you log in via root and type the command:

who -u

This will list all users currently logged on.

You will see a 4 or 5 digit PID number. To kill a user simply type:

kill XXXXX (PID Number)

Hope that helps.
 
yes, i am familiar with the kill command, but i want to get a script. So every night at 2AM ,everyone that stay logged in gets logged off. the number of users exceed the number licenses and some people never logoff to allow other users to get in.
 
Right so users screen lock their PC's and go home? Leaving themselves logged into CMS?
 
I have a similar problem...An automatic script installed as part of "cron" would be great. Anyone know how to write a script to do this in unix?

gblucas
 
yes users screen lock their PC's and go home, Leaving themselves logged into CMS. which causes a problem for the people on the night shift, who cannot get into CMS.
 
You can add a cron entry to reboot the CMS nightly at 2:00 AM. Use the command 'shutdown -y -g0 -i6'.

Kevin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top