user to usergroup change


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers user to usergroup change
# 1  
Old 12-26-2008
user to usergroup change

Hello Experts,

When I remotely login to my Unix Box using SSH, I get the shell prompt as :
Code:
--HOST=tx2addea010 USER=nbkqu7q DIR=/home/nbkqu7q
$

There is a usergroup "transact" and to change to it I give the command:
Code:
pbrun transact ksh

to get the shell prompt as :
Code:
--HOST=tx2addea010 USER=nbkqu7q DIR=/home/nbkqu7q
$ pbrun transact ksh
/etc/profile[100]: lsuser:  not found.
[YOU HAVE NEW MAIL]
--HOST=tx2addea010 USER=transact DIR=/usr/BOFA/hosting/apps/tr3
$

In short the command being used is "pbrun" to run "ksh" and the USER then becomes "transact".
I am trying to connect to this box from my java program where I stop looking for a response from the server once "null" is received, i.e. when the box returns "null" I break from the loop and proceed with other commands.
After receiving "[YOU HAVE NEW MAIL]", the code keeps waiting for something to come which means "null" has not yet come.

questions:
1. what is exactly being returned after "[YOU HAVE NEW MAIL]", if it's not null, that keeps the code waiting?
2. Is there any other way to change to transact group except pbrun?

info:
I have tested the code for other commands, it is running fine.

Regards,
Himanshu
 
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Change user

Hi All, need your assistance, how can i change user again after i change my user. here is the code that i tried su - myuser #success su - webuser ##what i want to try is to change user again to webuser from myuser account my output is it cannot change to webuser account. only in... (8 Replies)
Discussion started by: meister29
8 Replies

2. AIX

How to change normal user id to LDAP user id?

If I create a new user id test: mkuser id=400 test then I want it to LDAP user: chuser -R LDAP SYSTEM=LDAP registry=LDAP test It shows: 3004-687 User "test" does not exist. How to do? (4 Replies)
Discussion started by: rainbow_bean
4 Replies

3. Solaris

how to change /export/home/user dir to /home /user in solaris

Hi all i am using solaris 10, i am creating user with useradd -d/home/user -m -s /bin/sh user user is created with in the following path /export/home/user (auto mount) i need the user to be created like this (/home as default home directory ) useradd -d /home/user -m -s /bin/sh... (2 Replies)
Discussion started by: kalyankalyan
2 Replies

4. UNIX for Dummies Questions & Answers

change user> to user@host> ssh prompt

Hi, I was wondering how to change the prompt for my ssh login. At the moment it is like user> while I'd like it to be as user@host> It is in the .bash_profile or .ssh ??? Thanks (2 Replies)
Discussion started by: pmasterkim
2 Replies

5. Shell Programming and Scripting

How do i change to super user then revert back to ordinary user ,using shell script?

Hi all, I am trying to eject the cdrom from a livecd after certain stage... Now assuming that it is possible to eject,please consider my issue!!! The OS boots into a regular user by default...so i am unable to use the eject command to push out the drive... However if i try pfexec eject it... (3 Replies)
Discussion started by: wrapster
3 Replies
Login or Register to Ask a Question