Number of login times


 
Thread Tools Search this Thread
Operating Systems AIX Number of login times
# 8  
Old 08-02-2005
lslicense/chlicense displays/changes the number of fixed licenses. In AIX only <nr_of_licenses> users can have concurrent terminal sessions, if these are used up only root can login.

Having no 4.3.3 system here to test I can give you only general directions where to look:

It is easy to change this setting either via "chlicense" or via a SMIT panel (without checking it: i think it is in "System Environments" somewhere) , which does the same. This is a *global* setting, though, and does not work on an individual basis like the OP wanted.

The "maxlogin" parameter was the correct way to do what OP wnated IMHO. It should be stored in the ODM and hence "lsuser -fa maxlogin ALL" should show the status quo and "chuser" (man chuser) should change that.

Alternatively (don't try this at home ;-)) ) you could change the ODM directly, the commands for that are "odmget" to read the ODMs contents and "odmput" to change it.

Hope this helps.

bakunin
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
SD_GET_SEATS(3) 						   sd_get_seats 						   SD_GET_SEATS(3)

NAME
sd_get_seats, sd_get_sessions, sd_get_uids - Determine available seats, sessions and logged in users SYNOPSIS
#include <systemd/sd-login.h> int sd_get_seats(char*** seats); int sd_get_sessions(char*** sessions); int sd_get_uids(char*** sessions); DESCRIPTION
sd_get_seats() may be used to determine all currently available local seats. Returns a NULL terminated array of seat identifiers. The returned array and all strings it references need to be freed with the libc free(3) call after use. Note that instead of an empty array NULL may be returned and should be considered equivalent to an empty array. Similar, sd_get_sessions() may be used to determine all current login sessions. Similar, sd_get_uids() may be used to determine all Unix users who currently have login sessions. RETURN VALUE
On success sd_get_seats(), sd_get_sessions() and sd_get_uids() return the number of entries in the arrays. On failure, these calls return a negative errno-style error code. NOTES
The sd_get_seats(), sd_get_sessions() and sd_get_uids() interfaces are available as shared library, which can be compiled and linked to with the libsystemd-login pkg-config(1) file. SEE ALSO
systemd(1), sd-login(7), sd_session_get_seat(3) AUTHOR
Lennart Poettering <lennart@poettering.net> Developer systemd 10/07/2013 SD_GET_SEATS(3)