Monday, 27 May 2013

How to add,remove,edit users in UNIX.

To check a user:

id -a psoft

Creating a User Account:

To create a User:

 useradd –d /export/home/oracle –m -g dba -s /bin/sh oracle

where 'oracle' is the user

Option -Description -Value
------------- -------------------- --------------------
-d -Home for the Oracle user -/export/home/oracle
-m -For making directory
-g -Primary Group dba
-s -Default Shell for the User -/bin/sh
Login -Name -Oracle

To modify a User:

For example: To Comment the user and assign secondary group to the user

 usermod -c "Owner of the Oracle Software 10g" -G oinstall oracle

Note: In the above command
Option -Description -Value
------------- -------------------- --------------------
-c -Comment -->"Owner of the Oracle Software"
-G -secondary Group--> oinstall

To set a password:

 passwd -r files oracle
New Password: XXXXXXXX
Re-enter new Password: XXXXXXXX
passwd: password successfully changed for oracle

Note: Where XXXXXXXX is the new password for oracle User.

To remove a user:

 userdel -r oracle

Note: The "-r" option is used to remove the user's home directory from the system.

How to add or get a port opened in LINUX

Make sure you have the "root" access

--> Go to /etc/sysconfig
--> There we have two files iptables and ip6tables ,make the following entries in those tables

iptables:-->>  -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT

ip6tables:-->>  -A RH-Firewall-1-INPUT -m tcp -p tcp --dport 8080 -j ACCEPT

The following port will not be blocked anymore by the Firewall on your LINUX machine

Wednesday, 22 May 2013

How to resolve blocked ports issue in chrome and firefox.

Hello friends,

Many a times we have found that after configuring the http port for our PIA, when we try to open the site through browsers like chrome and firefox, the PeopleSoft URL does not open up.
I faced these issues and the following steps can be taken to resolve the issue:--

In chrome :--
Add the following commands in the target location address of the desktop shortcut


In firefox :--
By default Firefox has some ports blocked to prevent exploits to vulnerable services. This proves problematic if you have a PeopleSoft site that uses one of these ports. For example, port 6000 is blocked because X11 uses it, but if you had a PeopleSoft PIA HTTP server on port 6000 Firefox would block your access.

To unblock a port in Firefox goto about :config in the address bar.

Look for the following key :

If the key isn’t present you need to create it. Right-click in the about :config window. You’ll want to click New and the String.

Give it the name of :

Give it the value of the port you want to allow such as 6000. If you want to unblock more than one port use a comma to separate the ports.