Sponsored Content
Operating Systems HP-UX Hp-Unix user login file collection Post 302075131 by whl123 on Wednesday 31st of May 2006 12:32:49 AM
Old 05-31-2006
How to filter out the FPT login in the log file.

Dear All,

Based on the below information . how to filter out the information like ftp connection . Only list out the Telnet connection information.

Details of Last Succesfull Logins are Below:
localcm ftp tpe5 Mon May 29 16:56 - 16:56 (00:00)
localcm ftp tpe5 Mon May 29 16:53 - 16:53 (00:00)
localcm ftp tpe5 Mon May 29 16:47 - 16:47 (00:00)
localcm ftp tpe5 Mon May 29 16:41 - 16:41 (00:00)
localcm ftp tpe5 Mon May 29 16:35 - 16:35 (00:00)
localcm ftp ialtpe5.wanhai.c Mon May 29 16:35 - 16:35 (00:00)
localcm ftp tpe5 Mon May 29 16:29 - 16:29 (00:00)
localcm ftp ialtpe5cifs.wanh Mon May 29 16:29 - 16:29 (00:00)
localcm ftp tpe5 Mon May 29 16:26 - 16:26 (00:00)
localcm ftp tpe5 Mon May 29 16:20 - 16:20 (00:00)
localcm ftp ialtpe5.wanhai.c Mon May 29 16:17 - 16:17 (00:00)
localcm ftp tpe5 Mon May 29 16:14 - 16:14 (00:00)
localcm ftp tpe5 Mon May 29 16:11 - 16:11 (00:00)
localcm ftp tpe5 Mon May 29 16:05 - 16:05 (00:00)
localcm ftp ialtpe5.wanhai.c Mon May 29 16:05 - 16:05 (00:00)
localcm ftp tpe5 Mon May 29 15:59 - 15:59 (00:00)
localcm ftp ialtpe5cifs.wanh Mon May 29 15:59 - 15:59 (00:00)
localcm ftp tpe5 Mon May 29 15:53 - 15:53 (00:00)
localcm ftp ialtpe5.wanhai.c Mon May 29 15:53 - 15:53 (00:00)
localcm ftp tpe5 Mon May 29 15:50 - 15:50 (00:00)
user01 console Mon May 29 15:47 - 16:11 (00:23)
localcm ftp tpe5 Mon May 29 15:44 - 15:44 (00:00)
localcm ftp tpe5 Mon May 29 15:38 - 15:38 (00:00)
localcm ftp tpe5 Mon May 29 15:32 - 15:32 (00:00)

any idea??
pls kindly let me know how to do in the script?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Error login user file utmp

could probably help me with a unix problem. Basicallyu, when the users try to connect to the server they get this messge: No UTMP entry. you must exec "LOGIN" from the lowest level "sh" They are connecting using a windows emulator called TINYTERM. We cannot connect from the console either... (3 Replies)
Discussion started by: jernesto_diaz
3 Replies

2. SCO

Help adding user login in Unix Sco

We have made numerous requests to our system administrator to add new employees at login screen ( passwords not required ) to no avail. I can login into root but not sure how to proceed from there. We have a 10 yr. old version of SCO Can anyone help? I know very few unix commands okay... (1 Reply)
Discussion started by: houseostyle
1 Replies

3. UNIX for Dummies Questions & Answers

Collection of Unix Links

Hi, Is there is a good collection of Links to Unix Related stuff? Regards, Kriss (1 Reply)
Discussion started by: Kriss
1 Replies

4. Solaris

error message rmclomv ... SC Login Failure for user Please login:

Hello World ~ HW : SUN Fire V240 OS : Solaris 8 Error message prompts 'rmclomv ... SC login failure ...' on terminal. and Error Message prompts continually 'SC Login Failure for user Please login:' on Single Mode(init S) The System is in normal operation, though In case of rain, Can... (1 Reply)
Discussion started by: lifegeek
1 Replies

5. UNIX for Advanced & Expert Users

Unix user with root power problem in to login in putty

Hello, I created a user in my AIX 5.3 system and i modified /etc/passwd file in and assigned this user the uid=0 like root user. The problem is that when this user log into the system through putty it asks for root password instead of the user password. As a result of this, if i reset the... (4 Replies)
Discussion started by: omonoiatis9
4 Replies

6. UNIX for Dummies Questions & Answers

Unix user login class

Hello - Could anyone please explain what is login class in unix..? is it supported by Linux, AIX, HP-UX, Solaris? Also how do we update this when a user is created? I looked into man pages for useradd/usermod and mkuser, but could not find any option to add/update login class for a user. ... (5 Replies)
Discussion started by: manju--
5 Replies

7. Shell Programming and Scripting

How to Login as another user through Shell script from current user[Not Root]

Hi Every body, I would need a shell script program to login as different user and perform some copy commands in the script. example: Supppose ora_toms is the active user ora_toms should be able to run a script where user: ftptomsp pass: XXX should login through and run the commands ... (9 Replies)
Discussion started by: ujjwal27
9 Replies

8. AIX

User Account Login Login on your AIX server

I want to learn AIX. I would like to find someone who would be willing to give me a login to their AIX home lab server. My intent is to poke around and discover the similarities and differences of AIX compared to other *NIXs. I am a UNIX admin so I can think of what some immediate concerns may... (1 Reply)
Discussion started by: perl_in_my_shel
1 Replies

9. Shell Programming and Scripting

Login into another user from user inside script

now i have logged in username : ramesh in unix Now i have to created script file to login into another user and have run a command inside that user and after executing the command i have to exit from that user. Inside script, i have to login into su - ram along with password : haihow and have to... (4 Replies)
Discussion started by: rammm
4 Replies

10. Shell Programming and Scripting

How to enforce user to Enter text when login to a UNIX / Linux system?

Hi. I inject my tracklogin.sh script in the profile of each user. $ more .profile ./tracklogin.sh # This is the default standard profile provided to a user. MAIL=/usr/mail/${LOGNAME:?} bash-3.2$ more tracklogin.sh #!/bin/bash tdate=$(date +"%d%m%y") mkdir -p /tmp/root_log... (20 Replies)
Discussion started by: mohtashims
20 Replies
ftpd_selinux(8) 					 ftpd SELinux policy documentation					   ftpd_selinux(8)

NAME
ftpd_selinux - Security-Enhanced Linux policy for ftp daemons. DESCRIPTION
Security-Enhanced Linux provides security for ftp daemons via flexible mandatory access control. FILE_CONTEXTS SELinux requires files to have a file type. File types may be specified with semanage and are restored with restorecon. Policy governs the access that daemons have to files. Allow ftp servers to read the /var/ftp directory by adding the public_content_t file type to the directory and by restoring the file type. semanage fcontext -a -t public_content_t "/var/ftp(/.*)?" restorecon -F -R -v /var/ftp Allow ftp servers to read and write /var/tmp/incoming by adding the public_content_rw_t type to the directory and by restoring the file type. This also requires the allow_ftpd_anon_write boolean to be set. semanage fcontext -a -t public_content_rw_t "/var/ftp/incoming(/.*)?" restorecon -F -R -v /var/ftp/incoming BOOLEANS
SELinux policy is based on least privilege required and may also be customizable by setting a boolean with setsebool. Allow ftp servers to read and write files with the public_content_rw_t file type. setsebool -P allow_ftpd_anon_write on Allow ftp servers to read or write files in the user home directories. setsebool -P ftp_home_dir on Allow ftp servers to read or write all files on the system. setsebool -P allow_ftpd_full_access on Allow ftp servers to use cifs for public file transfer services. setsebool -P allow_ftpd_use_cifs on Allow ftp servers to use nfs for public file transfer services. setsebool -P allow_ftpd_use_nfs on system-config-selinux is a GUI tool available to customize SELinux policy settings. AUTHOR
This manual page was written by Dan Walsh <dwalsh@redhat.com>. SEE ALSO
selinux(8), ftpd(8), setsebool(8), semanage(8), restorecon(8) dwalsh@redhat.com 17 Jan 2005 ftpd_selinux(8)
All times are GMT -4. The time now is 11:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy