1753937 Members
9771 Online
108811 Solutions
New Discussion юеВ

Re: switch user error

 
SOLVED
Go to solution
siva baskaran
Regular Advisor

switch user error

when i issuing su - command the error is giving like jwhat i have attached herewith so please guid me what i have to do in this case


thanks
siva
7 REPLIES 7
Derek Whigham_1
Trusted Contributor
Solution

Re: switch user error

Check permissions of /usr/bin/su. They should be as follows:

-r-sr-xr-x 1 root bin su and on the /usr and /usr/bin directories
Divide and Conquer
freddy_21
Respected Contributor

Re: switch user error

check permissin from file su

pegasus:/>ll /usr/bin/su
-r-sr-xr-x 1 root bin 28672 Aug 2 2005 /usr/bin/su
pegasus:/>

if permission not same with -r-sr-xr-x

please change with
# chmod 04555 /usr/bin/su

and try again


thanks
freddy
Peter Godron
Honored Contributor

Re: switch user error

Siva,
check the protections on /usr/bin/su
should be
-r-sr-xr-x 1 root bin
see

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=565976
Jaime Bolanos Rojas.
Honored Contributor

Re: switch user error

Siva,

Please check those things as stated above:

/etc/passwd, /usr/bin/login, & /usr/bin/su they should be 4555 to get the suid bit set. And /etc/group should be root sys

Regards,

Jaime.

Work hard when the need comes out.
spex
Honored Contributor

Re: switch user error

Siva,

It's also possible there's an error in /etc/passwd and/or /etc/group. Check out this thread:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=82841

PCS
susee_sundar
Regular Advisor

Re: switch user error

thanks to all let me check it out

siva
Andrew Merritt_2
Honored Contributor

Re: switch user error

Hi Siva,
Just a couple of general points, as the most likely answers have been given (permissions on /usr/bin/su). It would help if you state which version of HP-UX you are running.

Also, I'd suggest you really don't need to post a 35k MS Word document in order to show 6 lines of text which could have been included in the message.

Andrew