Hi,
I have to change many times user in a script.
With the command su userName I receive the request for password. I need to open a session with another user I would put the password at the beginning.
How can I do it?
Thanks, bye bye.
---------- Post updated 22-04-10 at 10:58 AM ---------- Previous update was 21-04-10 at 04:41 PM ----------
Hi,
I tried this command:
In this way I am able to change user and execute the ls command.
No I have a problem
I have to execute, changing user this code:
Where operation are sqlplus session. I need to execute the code I past as userA while other code, after what I past need to be executed as userB.
How can I open a session for the code I past as userA and close the session after operations are completed?
Thanks, bye bye.
I am on several other Forums under the handle of FloridaBD and therefore
would like to request that my user name here on Unix forums be changed from
SunBurntYux
to FloridaBSD
Thanks. (1 Reply)
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)
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)
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)
Dear Experts,
I'm currently working on a Red Hat Linux env. I have been working in AIX. My user is set to use SH default so when it logs in, we have to manually csh to do few things. I know you can change this in AIX using smitty tool. is there any similar too in LINUX that can change it?
... (7 Replies)
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)
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)