Sponsored Content
Full Discussion: Get List of users+IPs
Operating Systems AIX Get List of users+IPs Post 302929522 by -=XrAy=- on Monday 22nd of December 2014 10:58:29 AM
Old 12-22-2014
Quote:
Originally Posted by achenle
I'm not sure offhand how to prevent the login process from recording a hostname instead of an IP address in the utmpx data.
For SSH it is possible to disable the DNS reverse lookup(-u0):
https://www.linux-tips.org/article/9...lookups-in-ssh
But this can impact other sshd options:
SSH slow to login? Disable reverse DNS lookup - Arun Stephens

Regards
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

List of IPs & database lookup

I am trying to feed a list of IP's to do lookups from a database. My script works only for the first IP but all subsequent IPs output as 'unknown'. #!/usr/bin/php -q <? $ip = file('ip.txt'); foreach ($ip as $ip_num => $ip) { echo $ip; $out=sprintf("%u", ip2long($ip)); ... (1 Reply)
Discussion started by: hazno
1 Replies

2. Programming

Get the list of logged in users

How can I get the list of logged in users in the system programmatically? I can get the list with 'who' or 'users' commands but I need to get the list programmatically... May someone help, please? Thanks in advance. (2 Replies)
Discussion started by: xyzt
2 Replies

3. HP-UX

how to list locked users in hp-ux?

Actually.I have 2 questions to ask. 1. how to list locked account in hp-ux? 2.how to list locked account in linux(redhat)? I can use the command "passwd -S -username" to list a account who were locked . who knows how to list all locked accounts with one command. Thanks!! (5 Replies)
Discussion started by: robbiezr
5 Replies

4. Shell Programming and Scripting

Filter a list of IPs

Hello, I have a dump of IPs (around 2 million) and i need to filter out(delete) 37 IPs from this list. Here is a short list of IPs that i would need deleted 111.111.xxx.xxx 123.123.xxx.xxx 127.x.x.x 98.20.xx.xxx 10.135.xxx.xxx 11.105.xxx.xx 100.100.xxx.xxx 101.xxx.xx.xxx ... (11 Replies)
Discussion started by: senormarquez
11 Replies

5. Shell Programming and Scripting

Get Ips from a list file

Hi Everyone, I typed a command: awk '{ print $1}' $LOGFILE | sort | uniq -c | sort -nr > $DEST/a.txt And I got file a.txt which show 6 1.1.1.1 3 2.2.2.2 2 3.3.3.3 1 4.4.4.4 Just now, I want to get exact ips which has first column > 5 to a file b.txt. In this situation, the... (5 Replies)
Discussion started by: testcase
5 Replies

6. UNIX for Dummies Questions & Answers

List system users and..

Hello i need fast help... script which will list only human users from /etc/passwd and find out if they have something in home. Thanks (11 Replies)
Discussion started by: mentoscz
11 Replies

7. UNIX for Advanced & Expert Users

list of users

Hello!Does anybody know how to solve this script: ,,write a shell script which displays a list of names of users who have created files "*. c" in the last day."? (1 Reply)
Discussion started by: theodoraa
1 Replies

8. UNIX for Dummies Questions & Answers

Users list

Hi i would like to know were the folder that contain file with list of all users ? And were i can learn about what kind of folder i have and wheat they have inside? question 2. when i write ls -a i see all directories and then i choose for example Documents and inside Documents i typed again... (1 Reply)
Discussion started by: iliya24
1 Replies

9. Shell Programming and Scripting

List the Manager of Users in AD - Using list- Get-ADuser

Is there any command that can used in Linux that export usernames and their manager's name from AD using bash shell script? I know this can be done using powershell but I need to use Linux for this procedure. (2 Replies)
Discussion started by: dellanicholson
2 Replies
ipa-server-install(1)						 IPA Manual Pages					     ipa-server-install(1)

NAME
ipa-server-install - Configure an IPA server SYNOPSIS
ipa-server-install [OPTION]... DESCRIPTION
Configures the services needed by an IPA server. This includes setting up a Kerberos Key Distribution Center (KDC) and a Kadmin daemon with an LDAP back-end, configuring Apache, configuring NTP and optionally configuring and starting an LDAP-backed DNS server. By default a dog- tag-based CA will be configured to issue server certificates. OPTIONS
BASIC OPTIONS -r REALM_NAME, --realm=REALM_NAME The Kerberos realm name for the IPA server. You will not be able to estabilish trust with Active Directory unless the realm name is uppercased domain name. -n DOMAIN_NAME, --domain=DOMAIN_NAME Your DNS domain name -p DM_PASSWORD, --ds-password=DM_PASSWORD The password to be used by the Directory Server for the Directory Manager user -P MASTER_PASSWORD, --master-password=MASTER_PASSWORD The kerberos master password (normally autogenerated) -a ADMIN_PASSWORD, --admin-password=ADMIN_PASSWORD The password for the IPA admin user --mkhomedir Create home directories for users on their first login --hostname=HOST_NAME The fully-qualified DNS name of this server. If the hostname does not match system hostname, the system hostname will be updated accordingly to prevent service failures. --ip-address=IP_ADDRESS The IP address of this server. If this address does not match the address the host resolves to and --setup-dns is not selected the installation will fail. If the server hostname is not resolvable, a record for the hostname and IP_ADDRESS is added to /etc/hosts. -N, --no-ntp Do not configure NTP --idstart=IDSTART The starting user and group id number (default random) --idmax=IDMAX The maximum user and group id number (default: idstart+199999). If set to zero, the default value will be used. --no_hbac_allow Don't install allow_all HBAC rule. This rule lets any user from any host access any service on any other host. It is expected that users will remove this rule before moving to production. --no-ui-redirect Do not automatically redirect to the Web UI. --ssh-trust-dns Configure OpenSSH client to trust DNS SSHFP records. --no-ssh Do not configure OpenSSH client. --no-sshd Do not configure OpenSSH server. -d, --debug Enable debug logging when more verbose output is needed -U, --unattended An unattended installation that will never prompt for user input CERTIFICATE SYSTEM OPTIONS --external-ca Generate a CSR to be signed by an external CA --external_cert_file=FILE PEM file containing a certificate signed by the external CA. Must be given with --external_ca_file. --external_ca_file=FILE PEM file containing the external CA chain --dirsrv_pkcs12=FILE PKCS#12 file containing the Directory Server SSL Certificate --http_pkcs12=FILE PKCS#12 file containing the Apache Server SSL Certificate --dirsrv_pin=DIRSRV_PIN The password of the Directory Server PKCS#12 file --http_pin=HTTP_PIN The password of the Apache Server PKCS#12 file --subject=SUBJECT The certificate subject base (default O=REALM.NAME) DNS OPTIONS --setup-dns Generate a DNS zone if it does not exist already and configure the DNS server. This option requires that you either specify at least one DNS forwarder through the --forwarder option or use the --no-forwarders option. Note that you can set up a DNS at any time after the initial IPA server install by running ipa-dns-install (see ipa-dns-install(1)). --forwarder=IP_ADDRESS Add a DNS forwarder to the DNS configuration. You can use this option multiple times to specify more forwarders, but at least one must be provided, unless the --no-forwarders option is specified. --no-forwarders Do not add any DNS forwarders. Root DNS servers will be used instead. --reverse-zone=REVERSE_ZONE The reverse DNS zone to use --no-reverse Do not create reverse DNS zone --zonemgr The e-mail address of the DNS zone manager. Defaults to hostmaster@DOMAIN --no-host-dns Do not use DNS for hostname lookup during installation --no-dns-sshfp Do not automatically create DNS SSHFP records. UNINSTALL OPTIONS --uninstall Uninstall an existing IPA installation -U, --unattended An unattended uninstallation that will never prompt for user input EXIT STATUS
0 if the (un)installation was successful 1 if an error occurred SEE ALSO
ipa-dns-install(1) IPA
Jun 28 2012 ipa-server-install(1)
All times are GMT -4. The time now is 08:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy