Operating System - HP-UX
1820290 Members
3059 Online
109622 Solutions
New Discussion юеВ

help: some shell can not run su command?

 
SOLVED
Go to solution
ferry_4
Occasional Contributor

help: some shell can not run su command?

modify user's login shell through edit /etc/passwd ,not SAM. There is ok to telnet to the machine for these users, but they can not run su command. the error message is following:
/usr/lib/dld.sl: Can't open shared library: /usr/local/lib/libcom_err.sl
/usr/lib/dld.sl: No such file or directory
But these user can run su command through xwindow.
What's the reason? How to solve the problem?
12 REPLIES 12
Senthil Kumar .A_1
Honored Contributor
Solution

Re: help: some shell can not run su command?

Hi ferry,

Please give us the output of the following command, when executed in xwindow and the other on telnet session.

the command is,
which su


regards
senthil
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Muthukumar_5
Honored Contributor

Re: help: some shell can not run su command?

Is there anyconfiguration in /etc/pam.conf file su regardless of default configuration. That is making problem.

# grep su /etc/pam.conf

post this or check this.

--
Muthu
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: help: some shell can not run su command?

Hi Ferry,

What is your SHLIB_PATH and LD_LIB_PATH ? Try to check from telnet,

# ldd `which su`

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
ferry_4
Occasional Contributor

Re: help: some shell can not run su command?

hi senthil,
normal user's su: /usr/bin/su
question user's su: /usr/local/bin/su

TKS
Pete Randall
Outstanding Contributor

Re: help: some shell can not run su command?

I can't imagine why there would be a "su" in /usr/local/bin unless you've been hacked. I would get rid of it.


Pete

Pete
Arunvijai_4
Honored Contributor

Re: help: some shell can not run su command?

Hi,

There shouldn't be any question user's su: /usr/local/bin/su .. Change it to /usr/bin/su

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
ferry_4
Occasional Contributor

Re: help: some shell can not run su command?

Tt's very surprising that su is ok in xwindow session which su at /usr/local/bin/su , but su is error in telnet session which su at /usr/local/bin/su.
It's ok if I type /usr/bin/su to run su command.
What's the order of the $PATH search?
Arunvijai_4
Honored Contributor

Re: help: some shell can not run su command?

Hello,

Just check PATH variable..

# echo $PATH and check the order in both X and telnet session.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Senthil Kumar .A_1
Honored Contributor

Re: help: some shell can not run su command?

Hi ferry,

Just make sure, in the file /etc/PATH file /usr/bin directory appears before /usr/local/bin.

Or work with the $PATH variable in /etc/profile file till "which su" command in both xwindow and normal telnet session yields the same result namely, /usr/bin/su

regards,
Senthil
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Muthukumar_5
Honored Contributor

Re: help: some shell can not run su command?

Try to change the PATH variable configuration. IT will get the binaries based on that. Change the configuration with /etc/profile as,

export PATH=/bin:/sbin:/usr/bin:/usr/sbin: like that but. /usr/local/bin has to come after /usr/bin. Try to see /etc/PATH file also.

If you have not explicitly configure DTSOURCEPROFILE=1 /etc/profile file is not read.

--
Muthu
Easy to suggest when don't know about the problem!
ferry_4
Occasional Contributor

Re: help: some shell can not run su command?

Thank you every body.

Ferry
ferry_4
Occasional Contributor

Re: help: some shell can not run su command?

TKS