![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Security Anything involving computer security goes here. |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| limiting failed logins to three | csaunders | HP-UX | 1 | 10-18-2007 06:56 AM |
| Problem with 'ghosted' logins. | seg | UNIX for Dummies Questions & Answers | 1 | 12-02-2004 08:43 AM |
| NVT logins | pappous | UNIX for Dummies Questions & Answers | 2 | 03-15-2001 07:26 PM |
| Limiting access | misha | UNIX for Dummies Questions & Answers | 4 | 02-24-2001 03:25 AM |
| Help with logins | crispyco | UNIX for Dummies Questions & Answers | 2 | 01-22-2001 08:03 AM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
I am migrating from 5.2 to 5.3 AIX. In previous versions of AIX, including 5.2, I've been able to limit user's logins to 1 by using the following script named Block_user:
#!/bin/ksh USER=$1 NUM=`who | grep $USER | cut -c1-8 | wc -l` #The above ' is not a single quote but back quote if [[ $NUM -lt 1 ]] then exit 0 fi echo "permission denied...$NUM is the limit of logins" exit 1 and changing the following /usr/lib/security/methods.cfg - add: auth_method program = /usr/bin/Block_user and /etc/security/user, changing the default stanza to read auth1 = SYSTEM,auth_method This doesn't work in 5.3. The user tries to login and receives "Invaild user or password". Removing the auth_method from /etc/security/user allows the person to login. I've spoken with IBM and so far no one has an answer as to why it will not work. I'm hoping someone out here does? ![]() |
| Forum Sponsor | ||
|
|
|
|||
|
thank you for the reply but fuser will not help. What I was trying to do was limit the number of logins per user. Since my posting I found that IBM went back to the old way of doing this and that is setting the limit in login.cfg.
![]() |
|||
| Google UNIX.COM |