Posts tagged ·

command

·...

How to run 64bit IBM ldapsearch command

Comments Off

Technote (FAQ)


Question

How to run the 64bit IBM ldapsearch command

Answer

1. Use the idslink command to make the appropriate 64bit links

For example, if using IBM LDAP v6.2, run this:
# cd /opt/IBM/ldap/V6.2/bin
# ./idslink -i -g -l 64 -f

2. Run the ldapsearch command
# /opt/IBM/ldap/V6.2/bin/64/ldapsearch <...>


Comments Off

How can I obtain the md5sum command for AIX?

Comments Off

Technote (FAQ)


Question

How can I obtain the md5sum command for AIX?

Answer

The 'md5sum' command is included in the "coreutils" RPM available at the AIX Linux Toolbox website.

Here are instructions on how to download and install the "coreutils" RPM to obtain the 'md5sum' command:

1) Download coreutils* RPM from AIX Linux Toolbox site
http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html
Download this file: coreutils-5.2.1-2.aix5.1.ppc.rpm
Transfer the file over in binary mode to AIX.

2) Query the RPM to see that md5sum is present
# rpm -qpl coreutils-5.2.1-2.aix5.1.ppc.rpm | grep md5
/opt/freeware/bin/md5sum
/opt/freeware/man/man1/md5sum.1
/usr/bin/md5sum

3) Install the RPM
# rpm -ivh coreutils-5.2.1-2.aix5.1.ppc.rpm
coreutils ##################################################

4) Query the RPM to show that it is installed
# rpm -qa | grep core
coreutils-5.2.1-2

5) Confirm that the md5sum command is present
# ls -l /usr/bin/md5sum
lrwxrwxrwx 1 root system 29 May 13 11:03 /usr/bin/md5sum -> ../../opt/freeware/bin/md5sum
#

Please note that this RPM and its contents are provided as-is and is not officially supported by IBM.

Comments Off

Unable to use the logout command to terminate all processes in a user’s ssh session when exiting.

Comments Off

Technote (FAQ)


Question

Why doesn't the logout command terminate all processes in a user's ssh session?

Answer

You can use the logout command in ssh to terminate processes from a user's ssh session if you

change UseLogin from no to yes in /etc/ssh/sshd_config.

However, if using X11Forwarding in SSH changing UseLogin from no to yes prevents X11Forwarding from working in SSH.

This line should look like the following in /etc/ssh/sshd_config to disable X11Forwarding: #X11Forwarding no

To enable UseLogin in SSH do the following:
# vi /etc/ssh/sshd_config

Change this line from:
#UseLogin no

Change to:
UseLogin yes

Stop and restart sshd.
# stopsrc -g ssh
# startsrc -g ssh

After making the above change when exiting an ssh session using the logout command all processes that were started within the ssh session will be terminated.

For more information on UseLogin and X11Forwarding please see the sshd man pages.


Comments Off