This will help you to get/set valid user account of IBM Tivoli Access Manager (ITAM-eb) using TAM Java API. Please configure your environment before running this. Your PATH, CLASSPATH, JAVAHOME environmental variables should be set before running this and you have to include PD.jar in your project and classpath. Configuration for TAM-eb should be correct otherwise there will be some problems with it. For conection with IBM Tivoli Access Manager (ITAM-eb) visit: http://usmanali112.blogspot.com/2012/07/java-connection-with-ibm-tivoli-access.html

This will help you to set user password and show all users list of IBM Tivoli Access Manager (ITAM-eb) using TAM Java API. Please configure your environment before running this. Your PATH, CLASSPATH, JAVAHOME environmental variables should be set before running this and you have to include PD.jar in your project and classpath. Configuration for TAM-eb should be correct otherwise there will be some problems with it. For conection with IBM Tivoli Access Manager (ITAM-eb) visit: http://usmanali112.blogspot.com/2012/07/java-connection-with-ibm-tivoli-access.html

This will help you to add/delete user of IBM Tivoli Access Manager (ITAM-eb) using TAM Java API. Please configure your environment before running this. Your PATH, CLASSPATH, JAVAHOME environmental variables should be set before running this and you have to include PD.jar in your project and classpath. Configuration for TAM-eb should be correct otherwise there will be some problems with it. I used default values here which you have to change according to your requirements. For conection with IBM Tivoli Access Manager (ITAM-eb) visit: http://usmanali112.blogspot.com/2012/07/java-connection-with-ibm-tivoli-access.html

This will help you to add/delete group and get all groups list of IBM Tivoli Access Manager (ITAM-eb) using TAM Java API. Please configure your environment before running this. Your PATH, CLASSPATH, JAVAHOME environmental variables should be set before running this and you have to include PD.jar in your project and classpath. Configuration for TAM-eb should be correct otherwise there will be some problems with it. I used default values here which you have to change according to your requirements. For conection with IBM Tivoli Access Manager (ITAM-eb) visit: http://usmanali112.blogspot.com/2012/07/java-connection-with-ibm-tivoli-access.html

Wednesday, July 25, 2012

This will help you to create connection with IBM Tivoli Access Manager (ITAM-eb) using TAM Java API. Please configure your environment before running this. Your PATH, CLASSPATH, JAVAHOME environmental variables should be set before running this and you have to include PD.jar in your project and classpath. Configuration for TAM-eb should be correct otherwise there will be some problems with it. I have used default values for the connection, so you can modify these according your environment settings. The most important part is the use of com.tivoli.pd.jcfg.SvrSslCfg utility.

It will help you to add user or other entries in IBM Tivoli Directory Server (TDS) using JNDI. I used default values and my own user information, so you have to change it according your requirements. Also the user attributes will depend upon your directory server schema. For connection with IBM Tivoli Directory Server (TDS)/ LDAP visit: http://usmanali112.blogspot.com/2012/07/java-authentication-and-connection-with.html

This will help you to connect with LDAP using JNDI (Java Naming and Directory Interface). I used this to connect with IBM Tivoli Directory Server (TDS). The connection with LDAP will be on SSL and you can modify it for non SSL too. You can also authenticate a user of IBM Tivoli Directory Server (TDS). If user exists then he will be authenticated otherwise the given authentication method will throw an exception. I have used all default values for the connection, you should change all values according your environment settings.

• List priority value of all running processes in your system. Now reduce the priority value of any running process by 5. Compare the new and the old priority values.
Ans. $renice -5 -p process_id(1793 etc.)

• Move the user’s current home directory to the new directory “/studentHome”
Ans. $usermod -d /studentHome tux

• Change this user’s password to “d!g!t@l” with following settings:-
• Lock the account if it has been inactive for 5 days
• Minimum 2 days must be past before the user can change hi/her/its password
Ans. $passwd
d!g!t@l
$passwd -l tux

• Create a file and change its permissions so that owner can only read the file and the respective group can read/write the file while other can read/write/execute the file using octal values
Ans. $ chmod 467 file_name

• Change the permissions of the file so that user can read/write/execute the file, group can read/execute the file and others can only read the file without using octal values
Ans. $ chmod u=rwx,g=rx,o=r file_name

• Create a new user “Lab_user” and change the ownership of the file to this new user
Ans. $ sudo useradd lab_user
$ sudo chown lab_user file_name

• Create a new group “Lab_users” and assign this group to the file
Ans. $ sudo groupadd lab_users
$ sudo chgrp lab_users file_name

• Change the default permissions to rwx rw- r--
Ans. $ umask 013

• Create directory so that only the owner or root can delete the directory
Ans. $ mkdir test
$ chmod o+t test or or $ chmod 100 test

• Create a file so that when it is executed, the group ID of the process is changed to the group ID of the file
Ans. $ mkdir directory_name
$ sudo chown lab_user directory_name

Set up ACLs
• As root, create a dir ‘acl_test’ in /tmp and set its permission as 700
Ans. $ sudo mkdir /tmp/acl_test
$ sudo chmod 700 /tmp/acl_test

• As username, try to change into this dir
Ans. "you do not have permissions necessary to open the file"