program running for one user and not for other user


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users program running for one user and not for other user
# 1  
Old 11-13-2006
program running for one user and not for other user

i have an application that i can call from command line

i can pass arguments to the command specifying the server name, user name and password.

when i give my login information such as username and password in the argument, the command gets executd. as an fyi, i can login using ssh to system.

but when my co-worker gives his login information ( he has been disabled to login to the server using ssh) to the command, the program fails saying

exec(): 0509-036 Cannot load program because of the following errors:
0509-150 Dependent module libvm.so could not be loaded.
0509-022 Cannot load module libkp.so
0509-026 System error: A file or directory in the path name does not exist

i made sure all the permissions are correct and they turned out to be correct.

is this because his ssh login is disabled and the command tries to login him in the server?
# 2  
Old 11-13-2006
Are u invoking any programs in the remote server thru the script after logging in to the machine? Is the error thrown from the part of the script which is supposed to be execed in the remote server?
# 3  
Old 11-13-2006
i would compare the PATH values --- including any required database paths (i.e., LD_LIBRARY*) and variables --- between the 2 of you and see what could be missing ... if those are the same, i would check whether the program you are trying to run requires you to be able to ssh into the server ...

i am more inclined to think that you have things in your PATH that your colleague doesn't because of the error being put out ...


good luck!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Does running a cron job of a user require the user to be logged in?

Suppose user 'asdf' is not logged into server 'bbbb', but the server is up. User 'asdf' has cron job. Will it be executed? (1 Reply)
Discussion started by: thulasidharan2k
1 Replies

2. UNIX for Dummies Questions & Answers

Change to different user id inside a program

Hi, There is a process ( built in C/C++) which starts with my user id and I need to execute a specific function with a different user id. Is there any api so that I provide userid, passwd and the next instance the process will have the new user id privileges. - Pranav (3 Replies)
Discussion started by: k_pranava
3 Replies

3. Shell Programming and Scripting

Run a program as another user

I have a bash script that launches another problem. I need to run that program under a certain user account. The script itself is run using 'sudo <scriptname>'. #!/bin/bash myprogram=... exec "$myprogram" How would this be done? (1 Reply)
Discussion started by: Carson Dyle
1 Replies

4. UNIX for Advanced & Expert Users

Determining if user is local-user in /etc/passwd or LDAP user

Besides doing some shell-script which loops through /etc/passwd, I was wondering if there was some command that would tell me, like an enhanced version of getent. The Operating system is Solaris 10 (recent-ish revision) using Sun DS for LDAP. (5 Replies)
Discussion started by: ckmehta
5 Replies

5. Shell Programming and Scripting

Running script from other user rather than login user

Hi, My requirement is that i am login from ROOT in a script but when any command is coming which is logging to sqlplus then i have to run it with normal user as only normal user have permission to connect to sqlplus . i tried making a script like this : #! /bin/ksh su -... (3 Replies)
Discussion started by: rawatds
3 Replies

6. UNIX and Linux Applications

graphical user acessible program

hi evaryone i am new to linux and i need help from u people ,i have to create a user accesible window in which i have to provide a button on submitting the button it has to run my c program,can anyone help me out how to do this . thanks (2 Replies)
Discussion started by: srilakshmi
2 Replies

7. Shell Programming and Scripting

Shell Program that prompts for user Id

Hi I have a question that after trying tirelessly I cant solve. I'm not great wth UNIX and wonder if anyone could help. I have to create a shell program using functions that prompts for a user ID. I must then verify that the user Id corresponds to an account on the system. If a legal user Id is... (16 Replies)
Discussion started by: mmg2711
16 Replies

8. UNIX for Dummies Questions & Answers

Shell Program that prompts for user Id

Hi I have a question that after trying tirelessly I cant solve. I'm not great wth UNIX and wonder if anyone could help. I have to create a shell program using functions that prompts for a user ID. I must then verify that the user Id corresponds to an account on the system. If a legal user Id is... (1 Reply)
Discussion started by: mmg2711
1 Replies

9. Shell Programming and Scripting

start a program with other user's permission

I have some of programs in unix system which are to started with one_user say "xxxx". I have sudo permission if i start these programs with sudo it shows root permission. But i want these programs permession should be "xxxx". I tried "su user_name -c Program_name" but it is not... (3 Replies)
Discussion started by: srikanthus2002
3 Replies

10. Programming

How to create a new unix user in through a c program

Hi , I want to create a new user using c program not with unix adduser command . is it possible to write a cprogram to create a new user account , it should accept username , grouid , group name and all other privilages . i can use system calls inside c program to do this . i will... (5 Replies)
Discussion started by: naren_chella
5 Replies
Login or Register to Ask a Question