Register
It is currently Wed Oct 01, 2014 6:13 am

What scripts does bash login shell invoke?


All times are UTC - 6 hours


Post new topic Reply to topic  [ 2 posts ] 
Author Message
 PostPosted: Mon May 09, 2011 8:29 am   

Joined: Mon May 09, 2011 8:21 am
Posts: 1
When I do RSH or SSH from a username other than root, I am getting the following errors. I am trying to find out which script (that the bash login shell executes) is causing this problem. I compared /etc/bashrc, /etc/profile from a working machine, didnt find any difference.
I am able to login, but the errors 'Permission denied' are affecting my automation scripts.
Any help will be greatly appreciated.

Thanks
-Chandra

autotest:mc1:~>/usr/bin/rsh 10.219.8.58
Password:
Password:
Login incorrect

login: autotest
Password:
-bash: id: command not found
-bash: [: =: unary operator expected
-bash: id: command not found
-bash: id: command not found
-bash: [: =: unary operator expected
-bash: /usr/bin/pkg-config: Permission denied
-bash: /usr/bin/pkg-config: Permission denied
-bash: /usr/bin/pkg-config: Permission denied
autotest:mc2:~>exit
logout
rlogin: connection closed.
autotest:mc1:~>exit


Top
 Profile  
 PostPosted: Mon May 09, 2011 8:50 am   
User avatar

Joined: Tue Apr 27, 2010 2:28 pm
Posts: 172
Location: Czech Republic
Does the non-root user have the permission to run /usr/bin/pkg-config? All the scripts might be the same, but the file itself can have different permissions (or the users might belong to different groups on different machines).


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP