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
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?
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
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...
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)
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)
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)
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)
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)
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)
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)
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)