users with same .profile


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting users with same .profile
# 1  
Old 03-01-2006
MySQL users with same .profile

guys
i have a unix user (say "x") which is also an application owner ..thru this user i manage most (90 %) of my tasks related to application i.e application down/up,processes stop/start etc..in short i manage my "tuxedo" via this user..

now
i want a new user to be created (on my name) which can perform all those tasks conducted by "x" ..everything that can be done by "x"...

Is it possible?
if yes ,how do we do it?

how about copying .profile of "x" for new user..i doubt this Smilie


note- O.S : solaris 8

thanks & regards
abhijeetkul
# 2  
Old 03-03-2006
Set up the new user to be in the same group as X - as long as the executables/scripts/whatever are set that anyone in that group can run them, then this will take care of most of your issuses.
# 3  
Old 03-08-2006
Bug

my new user is already in the same group.
also all my executables have "755" permissions on them.

still it is not working.

i want to know if following method can work out:
1. change the home directory of this new user.
2.change the login shell( bourne to ksh)
3.copy .profile of "x" to this new user.
4.put this user in a new group.( this bcoz i don want new user to be able to shutdown/start tuxedo;but simply run the perl scripts & executables i want it to run)

would this work?

i am in a jam due to this; each time i have to login as "x" & run those perl scripts//executable;

comments/suggestions most welcome

thanks & regards
abhijeet
# 4  
Old 03-08-2006
Why not create symbolic links to the scripts and place them in the home dir of your new user, then set permissions to meet your requirements?
# 5  
Old 03-08-2006
Bug

rein
can you guide on creating the symbolic links?

thanks & regards
abhijeet
# 6  
Old 03-13-2006
MySQL

i m trying to run a command from diffrent login ,where i get following messages

Empty compile time value given to use lib at /svm_wl1/billing/atai/rel/server/util/ataprocs line 73
Empty compile time value given to use lib at /svm_wl1/billing/atai/rel/server/util/ataprocs line 73
Empty compile time value given to use lib at /svm_wl1/billing/atai/rel/server/util/ataprocs line 73
Can't locate atailib.pm in @INC (@INC contains: /xps/app/gnu/perl/product/5.6.0/lib/5.6.0/sun4-solaris /xps/app/gnu/perl/product/5.6.0/lib/5.6.0 /xps/app/gnu/perl/product/5.6.0/lib/site_perl/5.6.0/sun4-solaris /xps/app/gnu/perl/product/5.6.0/lib/site_perl/5.6.0 /xps/app/gnu/perl/product/5.6.0/lib/site_perl .) at /svm_wl1/billing/atai/rel/server/util/ataprocs line 74.
BEGIN failed--compilation aborted at /svm_wl1/billing/atai/rel/server/util/ataprocs line 74.


any views on this

regards
abhijeetkul
# 7  
Old 03-20-2006
Setting up symbolic links is easy:

ln -s <source> <target>

Just make sure your permissions are ok. Maybe you need to use su?

In tuxedo, the .profile calls several scripts that set the tuxedo environment. Maybe it's worth checking up on this. If you execute the .profile from another user account these scripts must be called as well otherwise tux can't create its paths and you must be able to access these locations from that user.

I hope this is any help to you but I've came across similar issues when setting up tuxedo.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Do not allow bypassing users .profile

Hello, I find out that there is a way from putty to pass a command to your shell when trying to log in to a server and bypass .profile. Actually you can do this if you open a bash shell. The command to bypass .profile is the following: ssh -t hostname "bash --noprofile" Is there a way to... (32 Replies)
Discussion started by: omonoiatis9
32 Replies

2. HP-UX

Create a new user from using existing users profile

Hello, Just wanting to know if it is possible. Also I am new to command line. I am running 5.1b, if that matters. Thanks in advance (10 Replies)
Discussion started by: bcha
10 Replies

3. Solaris

Remove a given profile from a users account

Hi Guys, I was studying RBAC and I gave a profile to a user . I have not seen anywhere that shows how to remove the profile from the users account. Can anyone show me how to remove a given profile from a users account? Thanks alot guys. (2 Replies)
Discussion started by: cjashu
2 Replies

4. Shell Programming and Scripting

Users who desire to have their .profile executed must explicitly do so in the crontab entry. Why?

The .profile file should be read when the user logs in. So, there should be no need to execute .profile file again in a cron job (since the cron job is run after the user logs in). Doesn't the cron require login from the user. Then, from where does the cron execute? Please help!! (1 Reply)
Discussion started by: thulasidharan2k
1 Replies

5. Shell Programming and Scripting

sourcing .profile for other users

Hi Team, Thank you for your time. i have a situation where the user IDs of the applicatio users have been locked down to Read only. Hence I am writing a script to invoke their old .profile every time they login. My problem is : when i run . $userpath/.profile from within the ksh script... (9 Replies)
Discussion started by: anitha111
9 Replies

6. AIX

SSH and a users .profile

How do I get a command like "ssh Theuser@host date" to execute the /home/Theuser/.profile before executing the "date" command? (5 Replies)
Discussion started by: IL-Malti
5 Replies

7. UNIX for Advanced & Expert Users

How can I get sudo -u <username> to load that users profile on HP-UX

I am running a serverapplication on a HP-UX machine where I need to handle some of the commands as a specified user called "druser". When I log on as this user with the command; sudo -u druser -sit starts an instance of the shell as that user. However, it doesn't load that users .profile from... (1 Reply)
Discussion started by: ukiome
1 Replies

8. Infrastructure Monitoring

trap in etc/profile and user .profile

Hello I really wonder what's trap in etc/profile and in each user .profile. I try to google for it but I think I have no luck. Mostly hit is SNMP traps which I think it is not the same thing. I want to know ... 1. What's a "trap 2 3" means and are there any other value I can set... (4 Replies)
Discussion started by: Smith
4 Replies

9. UNIX for Dummies Questions & Answers

difference between /etc/profile and .profile?

What is the difference between /etc/profile and .profile? (5 Replies)
Discussion started by: gehlnar
5 Replies

10. UNIX for Dummies Questions & Answers

changed .profile but didnt ./.profile, yet reflected changes

hi , i added ls -F to .profile. and i need to do ./.profile for the effect to take effect BUT i didnt and YET the next day when i came to work and log in, the changes took effect. i am on aix. please explain.. thanks (4 Replies)
Discussion started by: yls177
4 Replies
Login or Register to Ask a Question