Spiders am confused, need to get myself a decent book I think but until that time I need to create a script which will run when a user logs in and checks to see if they are already logged in. The script should check all users but not "root"
I figured the quickest way would be to create a temp file when the user logs in and delete it when they logout. The script checks for this file and if it is found the session gets dropped.
Nah its not inactive sessions thats the problems its our users logging in 7 or 8 times when our licence agreement with our software provider only allows a max of 4 connections per user.
Not sure if this works on AIX, but using procps (http://procps.sf.net) included in a Linux install, I can do this:
Quote:
ps -fC sshd
From there, it's trivial to count the number of sshd processes by user. I would assume that this is not sshd, but you can substitute your process name.
Hi.
Add these lines to the begining of your /etc/profile:
Then create a file named /etc/users.txt
and put there one user per line.
These are the users you want to be limited.
TIPS: - You also should "trap" CTRL+C and so on to be more secure...
- Take into account that this does not control "su" sessions...
Any Unix Admins out there who were tasked with upgrading and maintaining java/jboss installs and possibly related apps?
How did it work out?
Any tools to allow developers to tweak their java settings, like a console? I just started looking into this, if anyone has experience I'd appreciate... (0 Replies)
Hello,
I hired a coder a couple weeks ago to develop 3 small modules for a popular CMS. I created Github repos for each module so as to manage the code and allow others to download it at will.
The CMS in question is structured in such a way that each module is housed in its own... (2 Replies)
I'm very new with Unix and and am needing assistance in writing a Unix script that will uncompress a dated file then rename it. The script will also need to remove several old files that have a similar naming. The directory that the files reside in is call achdirdep the file that I need uncompress... (1 Reply)
so I have taken on the task of running a few workshops / teaching sessions.
we have three new unix people, they have the basics sorted, CD, PWD, LS and such.
we are looking at people who have been doing helpdesk untill two months ago.
I have given them a few session:
file systems, what... (2 Replies)
hi everyone. Am just a new guy in this forum interested in advanced shell scripting. I have been running some basic scripts and setting up cronjobs in fedora and its fun, i wanna move to the next level.
I got interested in this forum and its gonna take me to the next level.
cheers guys, good... (1 Reply)