Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Maximum unsuccessful attempts in unix Post 302579680 by anandrec on Tuesday 6th of December 2011 10:47:23 AM
Old 12-06-2011
Maximum unsuccessful attempts in unix

Hello everyone,

Can anyone help me out where is the maximum unsuccessful login attempts stored in unix?

How can we know how many unsuccessful login attempts an user has made?

Where is the blocked users info maintained or how can we get whether the user is blocked?

Thanks in advance.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unsuccessful compilation of TOP s/w

Hi, I did the following : /usr/local/bin/gcc -DHAVE_GETOPT -DORDER -DHAVE_STRERROR -c top.c and I got these error messages : /usr/ccs/bin/as: "/var/tmp/ccZcR4Mm.s", line 1936: error: unknown opcode ".subsection" /usr/ccs/bin/as: "/var/tmp/ccZcR4Mm.s", line 1936: error: statement... (1 Reply)
Discussion started by: dawn_lwf
1 Replies

2. UNIX for Advanced & Expert Users

Maximum 3 login attempts

Hi, I notice in my Sun Solaris 8 sparc workstation, if I failed my login in the 5th time, I will be closed the connection from the host. I want to make 3 times. That is, if user fails to login with 3 attempts, he will be closed the connection. How to do it? Of course I am the admin of the... (2 Replies)
Discussion started by: champion
2 Replies

3. UNIX for Dummies Questions & Answers

user password keeps "unsuccessful attempts"

i had a user who informed that when he tried to login he got this " too many unsuccessful attepmpts" this has happened regularly and he did not forget his password. i suspect that somebody tried to change. so i did some checks. i did a last, and found that nobody uses this sipo other than... (8 Replies)
Discussion started by: yls177
8 Replies

4. UNIX for Advanced & Expert Users

Unix and the maximum number of processes under a 386 box.

Hi ! I would like to know if Unix could launch more than 8192 processes , which is the maximum number of LDTs on a 386 box. Is this done by swapping some memory on the disk ? Thanks for your answers. (0 Replies)
Discussion started by: krhamidou
0 Replies

5. UNIX for Dummies Questions & Answers

Maximum size of a file in unix

What's the maximum file size supported by unix. (3 Replies)
Discussion started by: nagalenoj
3 Replies

6. UNIX for Dummies Questions & Answers

what is the maximum length of th os-command line in Unix.

Hi All, I didn't find any thread that match this question so I hope it's not redundant. I am totally new to Unix. I want to know what is the maximum length of the os-commandline in Unix. Will it cause any problem if I run any application whose total path length is much longer than 256... (2 Replies)
Discussion started by: kumardesai
2 Replies

7. UNIX for Dummies Questions & Answers

Unix shell script for finding top ten files of maximum size

I need to write a Unix shell script which will list top 10 files in a directory tree on basis of size. i.e. first file should be the biggest in the whole directory and all its sub directories. Please suggest any ideas (10 Replies)
Discussion started by: abhilashnair
10 Replies

8. Shell Programming and Scripting

swremove unsuccessful case handling

i am using the command "swremove productname".... How can i check the unsucceful condition?.... i want to say "if unsuccessful display that message to the user and exit".... Can anu one help me??.... i am coding in this script for the first time so please dont mind... THanks (1 Reply)
Discussion started by: rag84dec
1 Replies

9. Shell Programming and Scripting

what is the maximum length of a unix shell variable which can be can passed to plsql

what is the maximum length of a unix shell variable which can be can passed to plsql variable:( (1 Reply)
Discussion started by: alokjyotibal
1 Replies

10. UNIX for Dummies Questions & Answers

How to get successful/unsuccessful FTP logs in UNIX

Hi, We have one UNIX Server (Sun Solaris), and the files coming to this server from another server. The problem is, that server is continously sending files to our server via FTP. But the observation is that some files missing in our Server but in that server it shows the files FTPed... (2 Replies)
Discussion started by: vikash.rastogi
2 Replies
getprtcent(3)						     Library Functions Manual						     getprtcent(3)

NAME
getprtcent, getprtcnam, setprtcent, endprtcent, putprtcnam - manipulate terminal control database entry for a trusted system SYNOPSIS
DESCRIPTION
and each returns a pointer to an object with the following structure containing the broken-out fields of an entry in the terminal control database. Each entry in the database contains a pr_term structure, declared in the header file: struct t_field { char fd_devname[14]; /* Terminal (or host) name */ uid_t fd_uid; /* uid of last successful login */ time_t fd_slogin; /* time stamp of successful login */ uid_t fd_uuid; /* uid of last unsuccessful login */ time_t fd_ulogin; /* time stamp of unsuccessful login */ int fd_nlogins; /* consecutive failed attempts */ int fd_max_tries; /* maximum unsuc login tries allowed */ time_t fd_logdelay; /* delay between login tries */ char fd_lock; /* terminal locked? */ int fd_login_timeout; /* login timeout in seconds */ }; struct t_flag { unsigned short fg_devname:1, /* Is fd_devname set? */ fg_uid:1, /* Is fd_uid set? */ fg_slogin:1, /* Is fd_stime set? */ fg_uuid:1, /* Is fd_uuid set? */ fg_ulogin:1, /* Is fd_ftime set? */ fg_nlogins:1, /* Is fd_nlogins set? */ fg_max_tries:1, /* Is fd_max_tries set? */ fg_logdelay:1, /* Is fd_logdelay set? */ fg_lock:1, /* Is fd_lock set? */ fg_login_timeout:1 /* is fd_login_timeout valid? */ ; }; struct pr_term { struct t_field ufld; struct t_flag uflg; struct t_field sfld; struct t_flag sflg; }; The system stores the user ID and time of the last successful login ( fd_uid and fd_slogin) and unsuccessful login ( fd_uuid and fd_ulogin) in the appropriate Terminal Control database entry. The system increments fd_nlogins with each unsuccessful login, and resets the field to 0 on a successful login. The fd_max_tries field is a limit on the number of unsuccessful logins until the account is locked. An adminis- trative lock can also be applied, indicated by a non-zero fd_lock field. fd_logdelay stores the amount of time (in seconds) that the sys- tem waits between unsuccessful login attempts, and fd_login_timeout stores the number of seconds from the beginning of an authentication attempt until the login attempt is terminated. Note that ufld and uflg refer to user-specific entries, and sfld and sflg refer to the system default values (see authcap(4)). The value returned by or refers to a structure that is overwritten by calls to these routines. To retrieve an entry, modify it, and replace it in the database, copy the entry using structure assignment and supply the modified buffer to returns a pointer to the first terminal pr_term structure in the database when first called. Thereafter, it returns a pointer to the next pr_term structure in the database, so successive calls can be used to search the database. searches from the beginning of the database until a terminal name matching name is found, and returns a pointer to the particular structure in which it was found. If an end-of-file or an error is encountered on reading, these functions return a NULL pointer. A call to has the effect of rewinding the Terminal Control database to allow repeated searches. can be called to close the Terminal Con- trol database when processing is complete. puts a new or replaced terminal control entry pr with key name into the database. If the fg_devname field is 0, the requested entry is deleted from the Terminal Control database. locks the database for all update operations, and performs an after the update or failed attempt. APPLICATION USAGE
In a multithreaded application, these routines are safe to be called only from one dedicated thread. These routines are not POSIX.1c async-cancel safe nor async-signal safe. RETURN VALUE
and return NULL pointers on or error. returns 0 if it cannot add or update the entry. NOTES
The fd_devname field, on systems supporting connections, may refer to the ASCII representation of a host name. This can be determined by using (see getdvagent(3)) to interrogate the Device Assignment database as to the type of the device, passing in the fd_devname field of the Terminal Control structure as an argument. This allows lockout by machine, instead of the device (typically pseudo tty) on which the session originated. Programs using these routines must be compiled with The sfld and sflg structures are filled from corresponding fields in the system default database. Thus, a program can easily extract the user-specific or system-wide parameters for each database field (see getprpwent and getdvagent). WARNINGS
HP-UX 11i Version 3 is the last release to support trusted systems functionality. FILES
Terminal Control database System Defaults database SEE ALSO
getprdfent(3), authcap(4), ttys(4). TO BE OBSOLETED getprtcent(3)
All times are GMT -4. The time now is 05:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy