Posted by: oldmaven July 18, 2008
LINUX/UNIX Geeks - Please Advise!
Login in to Rate this Post:     0       ?        
.

I am finding it hard to believe that echo works but cp doesnt work, when i believe they are from the same directory. /bin/cp , /bin/echo , at least on this not-enterprise edition. Are they in yours?

If you find the magic place to change the library path besides rebuilding kernel, you can easily include it to the end of the script file with echo as  

$echo "LD_LIBRARY_PATH=working/directory" >> script.file   (sth like this to append to the script)

There was one which modifies dynamic library load path of compiled programs and libraries, which you can use for your pam.so if you arent getting the PAM modules for authentication.Its called "chrpath" , but i guess you dont have it installed by default on your machine.

Could you please provide error msgs as well , as what it says . Also possibly point out what scripts work and what dont, which privileges you have, which you dont.

And we can take these discussions off Sajha too, into a total technical arena, if you like.
Read Full Discussion Thread for this article