Handling multple profiles with single user account

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Handling multple profiles with single user account
# 1  
Old 04-28-2016
Handling multple profiles with single user account

Team ,

I would like to handle multiple profiles(.profile/.kshrc, .profile1/.kshrc1..etc) with single user account as 'useradm' in same server.

for example :
firstly login into server with useradm account it has to load .profile/.kshrc or profile1/.kshrc1, set the environment variables and able to access application A or B.

mean to say load profiles dynamically with single user account to manage the applications by setting environment variables

please let me know the possibilities
# 2  
Old 04-29-2016
Your requirements are not at all clear.

When you login as useradm with ksh as your login shell, it will run .profile in useradm's login directory or the current working directory if one does not exist in useradm's login directory, and interactive shells will run .kshrc (or the file named by the ENV environment variable if it exists) if it exists.

Once that happens, why can't useradm run any desired application?

Why does a different set of initialization files need to be sourced to run a different application?
# 3  
Old 04-30-2016
Hi Don ,

I'm planning to invoke multiple versions of application software using useradm account.
for example application software version is 1.0 & 2.0 , location of libraries, executables, jars are different as per versions and environment variables needs to be set accordingly .Please let me know how to set the environment dynamically ..
Thanks
# 4  
Old 04-30-2016
If I get you correctly, you could define two aliases which in turn execute two scripts that create/set the relevant environment, locations, versions, etc...
# 5  
Old 04-30-2016
Hi,

I have below profiles, only one profile(either 1 or 2) has to set in environment under useradm account.

1) . /opt/ibm/mqsi/9.0.0.2/bin/mqsiprofile

2) . /opt/IBM/iib-10.0.0.0/server/bin/mqsiprofile
# 6  
Old 05-01-2016
Quote:
Originally Posted by hemanth12345
Hi,

I have below profiles, only one profile(either 1 or 2) has to set in environment under useradm account.

1) . /opt/ibm/mqsi/9.0.0.2/bin/mqsiprofile

2) . /opt/IBM/iib-10.0.0.0/server/bin/mqsiprofile
Do you really have the two directories /opt/IBM and /opt/ibm?

What commands will be run after you execute:
Code:
. /opt/ibm/mqsi/9.0.0.2/bin/mqsiprofile

that depend on the variables initialized by that script?

And, what commands will be run after you execute:
Code:
. /opt/IBM/iib-10.0.0.0/server/bin/mqsiprofile

that depend on the variables initialized by that script?

After running one of the above scripts, will useradm want to later execute the other script before logging out and logging in again?
# 7  
Old 05-02-2016
Hi Don ,

Yes, we have two ibm & IBM directories.

Currently , below script has been set in .kshrc file
. /opt/IBM/iib-10.0.0.0/server/bin/mqsiprofile

it will set environment variables with prefix as mentioned below.
MQSI_* (nearly 20 entries)

my question is how to invoke and set in environment variables MQSI_* (nearly 20 entries) for below version ?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Issue handling single quoted argument in shell script.

Below is my script that works fine and prints the desired output: #!/bin/ksh echo "$1" | while IFS= read -r dirpath do echo "DIRR_PATH:$dirpath" install_dir=$install_dir" "$dirpath done echo "Desired Output:$install_dir" Output: ./loopissue.sh... (10 Replies)
Discussion started by: mohtashims
10 Replies

2. Cybersecurity

Single ldap account, different passwords?

Is it possible, either by software solution or configuration, to provision a single user account that has different passwords depending on what group of servers it is attempting to connect to? We have a dev, sit, uat, and production environment. They want to be able to set passwords in dev for... (2 Replies)
Discussion started by: Blackacid
2 Replies

3. UNIX for Dummies Questions & Answers

Difference between : Locked User Account & Disabled User Accounts in Linux ?

Thanks AVKlinux (3 Replies)
Discussion started by: avklinux
3 Replies

4. UNIX for Dummies Questions & Answers

single user mode - user accounts passwords

hello ppl, someone must be able to help with this --> I have an old NCR tower 32 with an ADDS terminal running a unix version 020102 (Im not sure if thats correct but its unix for sure). I have no user names and no passwords and need to login to read a tape. Is there any way to do that? I hear... (3 Replies)
Discussion started by: orestis
3 Replies

5. SCO

Multple crons at boot

I am running SCO on a Netfinity system and two crons are started on bootup, but only after the system is brought down hard. i.e. running haltsys, reboot, or by a power outage. Has anyone seen this before and know a resolution to stop it? (0 Replies)
Discussion started by: ertzman
0 Replies

6. UNIX for Dummies Questions & Answers

Installing Ubuntu To Single User Account?

I understand that Unix and it's counterparts are OSs, but would it be possible to just install them to a single user account? I'm using a family computer, whose other users want nothing more complicated on the computer than Internet Explorer, but I want to install Ubuntu so I can easily host my... (6 Replies)
Discussion started by: migigicoko
6 Replies

7. AIX

Handling User Id Change in AIX

Hi, I have a query that suppose the first or last name of the user changes and we need to change its userid for aix too. Then in that case how do we handle this scenario??I guess we can't change the user id so we should re-create the new id and associate all the data of the old id. But I donno... (1 Reply)
Discussion started by: tintin@10
1 Replies

8. Shell Programming and Scripting

AWK handling of single quote

Hi, Can someone let me know how I can acheive the following. I have ~ delimited file and I need to convert into something like SQL insert statements. SrcFile : 1~sjdsdj~asasas~ 2~aaaaa~qwqwqwq~qwq ..... I tried AWK -F"~" '{print "INSERT INTO XX VALUES("$1 " ,\' "$2" \' , \' "$3 }'... (3 Replies)
Discussion started by: braindrain
3 Replies

9. UNIX for Dummies Questions & Answers

"ap" command not dumping user profiles

System = SCO UnixWare 7.1.1 Using the following command... ap -dgv > users.ap ... I should be able to dump all 250 user profiles to the file "users.ap" and display the results for each account as it is added to the file. The problem is that I only get the following output: UX:ap: INFO:... (0 Replies)
Discussion started by: rm -r *
0 Replies
Login or Register to Ask a Question