Sponsored Content
Special Forums Cybersecurity Problem with limiting logins to one in AIX 5.3 Post 302116075 by Confused_lulu on Tuesday 1st of May 2007 01:38:59 PM
Old 05-01-2007
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. Smilie
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Limiting access

Hi, I'm new to linux and unix, and i have couple of problems: 1) how can i limit the access for a user, for example, i created a user, and i want that this user will be able to be only in one directory, and will see only the files i want him to. 2) I have a domain name, and i want that every... (4 Replies)
Discussion started by: misha
4 Replies

2. UNIX for Dummies Questions & Answers

question about limiting the display from the ls command

hey guys im rly new to unix. im attempting to list the 5 largest files in a directory. so i got this far... ls -lR | sort -r and this lists all files by filesize, how can i limit this to only the 5 largest? (4 Replies)
Discussion started by: Aesop
4 Replies

3. UNIX for Dummies Questions & Answers

Problem with 'ghosted' logins.

I'm using a FreeBSD 5 x86 system. I have no users aside from root and my normal login, ie. the computer is not used by anyone other than myself. I find that I get two ghosted logins after running KDE. These logins have no processes attached to them and `who` reports that they came from my... (1 Reply)
Discussion started by: seg
1 Replies

4. HP-UX

limiting failed logins to three

I have tried limiting failed logins to three by the following method logins -ox \ | awk -F: '($8 != "LK" && $1 != "root") { print $1 }' \ | while read logname; do /usr/lbin/modprpw -m umaxlntr=3 "$logname" done /usr/lbin/modprdef -m umaxlntr=3 but it is failing on the 4th... any ideas?... (1 Reply)
Discussion started by: csaunders
1 Replies

5. HP-UX

Limiting SFTP Users While Not Limiting Regular Users?

Hi, I have searched the web and have come back with nothing that is satisfactory for what I require. SFTP is my corporations new file transfer standard. What I require is a method to lock down SFTP users to their directory (they may go to sub directories) while not restricting regular users. ... (2 Replies)
Discussion started by: Emancipator
2 Replies

6. AIX

AIX ftp/sftp script monitor to failed logins

Hi All, Any idea on how to write a script on AIX 5.3 to monitor ftp or sftp login failed. Thanks and more power, Itik (2 Replies)
Discussion started by: itik
2 Replies

7. Solaris

Limiting Connections from a single IP

I'm looking for a way to limit connections to a Solaris 10 box from any single IP. The problem is that I've had more experience doing this with IPTables on Linux, rather than with IPFilter, which I've found to be somewhat feature-poor. I hope there is some way to do this using IPFilter, I've... (2 Replies)
Discussion started by: spynappels
2 Replies

8. UNIX for Advanced & Expert Users

Limiting access to postqueue

Hi, I have a Debian 6 machine running Postfix 2.7.1. The email server works pretty well. I discovered that any non-root user can access to the mail queue using postqueue command just like root. How can I limit this access? (1 Reply)
Discussion started by: mjdousti
1 Replies

9. Shell Programming and Scripting

Limiting the Script

Greetings. I have script to monitor the disk space of folder it runs every 17 min with help of cron. It sends email when disk size reaches to 85 %. Now the issue is that it continousely generates email until we clear some space in that folder. Is it possible to restrict the Script to send only... (14 Replies)
Discussion started by: manju98458
14 Replies
last(8) 						      System Manager's Manual							   last(8)

NAME
last - Displays information about previous logins SYNOPSIS
/usr/bin/last [-n maxlines | -maxlines] [-f filename] [name...] [tty...] FLAGS
Reads information about previous logins from filename instead of from the accounting file /var/adm/wtmp. Limits the output to maxlines number of record lines. Limits the output to maxlines number of record lines. Provides SVID conformance, and is equivalent to -maxlines. DESCRIPTION
The last command displays, in reverse chronological order, all previous logins and logouts entered in the currently active /var/adm/wtmp file. The list of output records can be restricted to maxlines number of record lines if the -maxlines or the -n maxlines flag is speci- fied. The last command also displays logins and logouts by the user specified with the name parameter, and logins and logouts from termi- nals specified with the tty parameter. The tty terminal references can be fully named (for example, tty0) or abbreviated (for example, 0). For each process, the following information is displayed according to session, with the most recent session listed first: Time session began Duration of session The tty terminal on which session took place The following information is included when applicable: Terminations when rebooting Continuing sessions If the last command is interrupted, an indication of how far the search has progressed in the /var/adm/wtmp file is provided. If the com- mand is interrupted by a quit signal, an indication as to how far the search has progressed is provided, but the search continues. To obtain information about the mean time between reboots, use the word shutdown as the name parameter. EXAMPLES
The following example displays all recorded logins and logouts for user root and all recorded logins and logouts from the console terminal: last root console The following example displays the time between system reboots: % last shutdown shutdown ~ Fri Aug 28 17:59 shutdown ~ Mon Aug 17 09:07 wtmp begins Mon Aug 17 08:51 In the previous example, the shutdown pseudouser is used to list the mean time between system reboots. FILES
Specifies the command path. Header file defining structures used to organize login information. The login/logout database file. RELATED INFORMATION
Commands: lastcomm(8) Files: utmp(4), wtmp(4). delim off last(8)
All times are GMT -4. The time now is 11:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy