The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
$ . ./.profile MikeBigjohn UNIX for Dummies Questions & Answers 3 09-14-2007 01:20 AM
Where can I read about the difference between "..profile" and ".profile" zorrokan UNIX for Dummies Questions & Answers 2 09-04-2007 10:35 PM
Difference between .profile and .~/.profile maneesh mehta SCO 3 12-14-2005 12:35 AM
changed .profile but didnt ./.profile, yet reflected changes yls177 UNIX for Dummies Questions & Answers 4 12-05-2002 07:21 AM
why i have local.profile, local.cshrc,local.login instead of .profile, .login ? abidmalik UNIX for Dummies Questions & Answers 5 08-26-2002 10:47 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-01-2006
Registered User
 

Join Date: Oct 2005
Location: Mumbai,India
Posts: 58
Stumble this Post!
Thumbs up 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


note- O.S : solaris 8

thanks & regards
abhijeetkul
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-03-2006
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Stumble this Post!
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.
Reply With Quote
  #3 (permalink)  
Old 03-08-2006
Registered User
 

Join Date: Oct 2005
Location: Mumbai,India
Posts: 58
Stumble this Post!
Smile

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
Reply With Quote
  #4 (permalink)  
Old 03-08-2006
Registered User
 

Join Date: Dec 2004
Location: Zürich
Posts: 146
Stumble this Post!
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?
Reply With Quote
  #5 (permalink)  
Old 03-08-2006
Registered User
 

Join Date: Oct 2005
Location: Mumbai,India
Posts: 58
Stumble this Post!
Smile

rein
can you guide on creating the symbolic links?

thanks & regards
abhijeet
Reply With Quote
  #6 (permalink)  
Old 03-13-2006
Registered User
 

Join Date: Oct 2005
Location: Mumbai,India
Posts: 58
Stumble this Post!
Thumbs up

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
Reply With Quote
  #7 (permalink)  
Old 03-20-2006
Registered User
 

Join Date: Dec 2004
Location: Zürich
Posts: 146
Stumble this Post!
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.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:40 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0