The purpose of this script is to scan the /etc/passwd file one line at a time comparing the usernames to the usernames found in a database table. I will later locked every account which is not in the database table.
I have export the userlist from the database in a file (/tmp/userlist). It should be faster than a sql check for every user.
The script works ok but my problem is that the script check also all system accounts!
how can disable it that the script didnīt check the system accounts like root,www-data and so on…
Hi all,
Please help me with the issue im facing.
my client has a recquirement that unix script has to schedule the no.of jobs based on the value from the oracle table.for example if the table has a value of 20 the unix script has to schedule 20 jobs.im able to write the script to get the value... (1 Reply)
I'm trying to make this work, and it half works. Accounts with password hashes matching the old crypt(3) algorithm work just fine:
JUpfW/w6jo6aw
But accounts with longer password hashes preceded by $1$, such as the following, do not work:
$1$iIcbppdP$HDyjJeVMGgJ.ovLsnjtTR.... (0 Replies)
Hi,
I 'd like to update the below highlighted values in a sample file based on the following table:
8283879A25918000000000005400000000000065629TTF3
8683884F40273000000000003900000000000047399TTF3
8883884FG0063000000000002600000000000031599TTF3... (7 Replies)
Anyone have a clue about this?
I have checked the MySQL documentation and it does not seem possible to exclude a row of a table from replication between Master and Slave. It seems that replication in MySQL can only be managed at the table level, not at the row level.
Does anyone know a work... (5 Replies)
Dear Members,
I have a table REQUESTS in Oracle which has an attribute REQUEST_ACTION. The entries in REQUEST_ACTION are like, ME, MD, ND, NE etc.
I would like to create a script which will will call other scripts based on the request action.
Can we directly read from the REQUEST_ACTION... (2 Replies)
I have an application desigend in PHP and MySQl running on apache web server that I is running on a Amazon EC2 server Centos. I want to implement the master-master and master slave replication and high availability disaster recovery on this application database.
For this I have created two... (0 Replies)
Discussion started by: Palak Sharma
0 Replies
LEARN ABOUT REDHAT
userlist
USERLIST(8) Finger-type Userlisting USERLIST(8)NAME
userlist - Userlisting of who's on your system.
SYNOPSIS
userlist
DESCRIPTION
This program simply gives you a listing of who is connected to your system. It is used primarily in the sorted listing of cfingerd, which
utilitizes the same method of display for a more uniform output between systems. (It also made more sense to do it this way instead of
having jumbled up display listings in sorted finger displays. Besides, it made more sense to do this than use finger. :)
This program functions with the same types of things in mind that cfingerd does. If the user has a .nofinger file, their username will not
be displayed in the userlisting.
Example output is shown as:
Username Real Name Idletime TTY Remote console
username I'm real ... 9d 23:59 0 (remote.site.com)
where it would display the user's login name, the user's real name, their idle time given in the format "dd hh:mm", their TTY, and their
remote location (or where they're telnetting from).
If the username is over 8 characters, the program will not search for their information in the passwd file, since it may be too long.
Besides, it checks getpwnam, anyway. :)
OPTIONS -c Give standard CFINGERD (custom) output.
-n List only people idle less than one day.
ADDITIONAL
Although userlist is not required to run as suid root, it is a good idea. The reason is it checks each users' directory for a .nofinger
file. If indeed that user has a .nofinger file in his/her directory, that user will not be shown in the userlisting.
If you change the program to run as nobody.nobody, you are free to do so. But you will also show the users if they are online, regardless
of whether or not they have a ".nofinger" file (as long as their directory is NOT world-readable.)
CONTACTING
If you like this program, have any suggestions on how it could be modified, or have bug reports, please write to: khollis@bitgate.com.
Your continued Public Domain support is appreciated! Thanks.
SEE ALSO cfingerd.conf(5), cfingerd(8), finger(1).
cfingerd 1.4.2 29 August 1999 USERLIST(8)