Number of login times


 
Thread Tools Search this Thread
Operating Systems AIX Number of login times
# 1  
Old 07-14-2005
Number of login times

Hi! I'm currently using AIX 4.3 and would like to know where can i find to see that there's a restriction on the number of login times a user can have. Example, I want to see whether user A has only 1 login while user B can have 2 logins (without logging off the first one).

Would I be able to see it in the lsuser file?

i know that in my company, certain users can login several times without encountering "Too many logons" while certain users can only log in once.

Hope someone can help me out. thanks

TC
# 2  
Old 07-14-2005
If you go to smit, Security and Users, Users, Change / Show Characteristics of a User You will see this line: Allowed LOGIN TIMES. If left blank I suspect they can login as many times as they want to.
# 3  
Old 07-31-2005
The parameter Allowed LOGIN TIMES used to limit a user to logging in between certain hours.
# 4  
Old 07-31-2005
Actually, I have a problem with this issue. Inside the file /etc/security/login.cfg there is a parameter called maxlogins, which by default its value is equal to 2. This file considered as system-wide control, so all new created users will be set according to this file. In my case I created several users before I made an attention to the login.cfg file, so all these users have maxlogins = 2. When I opened 2 sessions using one of these users and I tried to open third session I get the following message:
All available sessions are in use
May be most of peopol will say, remove these users & create them again. Actuall this may considered as solution & it is not very difficult espcially if the number of users is in the range from 3 to 7, but I want know really if there is a way to change & control the number of sessions allowed for user to open at the same time.
# 5  
Old 08-01-2005
I tried to remove the users and add them again but still get the message:
3004-312 All available login sessions are in use.
# 6  
Old 08-01-2005
I don't use AIX, but the docs say to use these commands:

lslicense
chlicense
# 7  
Old 08-01-2005
Thanks Perderabo. lslicense & chlicense! What is the relationship between the number of login sessions for each user and the License?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Print String N times the number before it

Hey All, I want want to print a string N times the number N before it. Like i have "20 hello". so i want to print hello hello hello . . . . . 20 times.. Please help me.. I am not able o figure out.. how to do the same? (8 Replies)
Discussion started by: jaituteja
8 Replies

2. Shell Programming and Scripting

How to print a particular character n number of times in a line??

hi, Is it possible to print a particular character n number of times in a line? for example. i am print the following line using echo command.. echo "files successfully moved" i want to count the number of characters that are been displayed. i am doin it using echo "files... (8 Replies)
Discussion started by: Little
8 Replies

3. Shell Programming and Scripting

Match and count the number of times

ile1 Beckham Ronaldo file2 Beckham Beckham_human Ronaldo Ronaldo_spain Ronaldo Ronaldo_brazil Beckham Beckham_manch Zidane Zidane_Fran Rooney Rooney_Eng Output shud be (1 Reply)
Discussion started by: cdfd123
1 Replies

4. Shell Programming and Scripting

Print a word specific number of times

Hi All, I wanted to know if there is a shell command to print a word n number of times The Input File is : Cat 4 Bat 3 Zall 1 Kite 2 Output File required is : Cat Cat Cat Cat Bat Bat Bat Zall Kite (4 Replies)
Discussion started by: sam_2921
4 Replies

5. UNIX for Dummies Questions & Answers

Counting the number of times a character appears

I am looking for a bash command that counts the number of times a character appears in a file. For example "I am a newbie, trying to learn shell script". Then the command counts the number of e and gives them as 4. Also I want one that counts the number of times a character in a string is replaced.... (2 Replies)
Discussion started by: #moveon
2 Replies

6. BSD

Deny logon for x hours if login failed x times

Hello, I have a small inquiry. Sometimes, my good friend, Charlie Root, sends me security notifications that a possible breakin attempt has occured. It looks like this: Oct 29 06:58:17 cigva sshd: reverse mapping checking getaddrinfo for 180.144.164.220.broad.sm.yn.dynamic.163data.com.cn ... (2 Replies)
Discussion started by: brightstorm
2 Replies

7. Shell Programming and Scripting

printing strings in one X number of times from another

I have one file of numbers 4 5 2 ... And another file of strings aaaaa bbbbb ccccc ddddd eeeee ffffff ... I'd like to print the stings from each line in reverse order with some decoration the number of times listed in the first file such as: Yeah bbbbb aaaaa Yeah bbbbb aaaaa (5 Replies)
Discussion started by: dcfargo
5 Replies

8. Shell Programming and Scripting

Help script for login times

I am new to shellscript . PLease help me how can I write the following script. $ who ray pts/0 aug 31 01:18 ( 65.169.28.200 ) ray pts/1 sep 2 02:28 ( 65.169.28.200 ) bob pts/3 sep 2 02:31 ( 65.169.28.201 ) when run the command who |./ script , the script should... (3 Replies)
Discussion started by: LAY
3 Replies

9. Shell Programming and Scripting

Counting Number of times a File is accessed

Hi, I need to count the number of times a script is accessed from within the script. Is it possible ? Example: I have a script called lo.sh and i execute the script for the first time, then the counter variable declared inside the lo.sh should increment by 1. For every execution the... (1 Reply)
Discussion started by: pathanjalireddy
1 Replies

10. UNIX for Dummies Questions & Answers

How to block the IP after many times fail login?

Hi, there. I am using Red Hat 9 to run my web server. Recently I found lots tempts from different IP addresses tried to login into my system. I am not sure if they are the same person or not. Since this server is only for web hosting purpose for couple of my friends and myself, so it is very easy... (2 Replies)
Discussion started by: HOUSCOUS
2 Replies
Login or Register to Ask a Question