1753445 Members
5462 Online
108794 Solutions
New Discussion юеВ

Re: setuid

 
SOLVED
Go to solution
YOGI_3
Frequent Advisor

setuid

Hi all..
I am getting following error while i am ruuning one application ...application is price maker..
where i need to check for this error

UNIX login module failed to authenticate a user: 'wa
rning: unixuserinfo is not setuid to root'
There is never a wrong time to do the right things
8 REPLIES 8
RAC_1
Honored Contributor

Re: setuid

Looks like your apps depends upon the setuid script. you will have to set suid on it.
ll "script"
chmod 4755 will set setuid on it.
There is no substitute to HARDWORK
Orhan Biyiklioglu
Respected Contributor
Solution

Re: setuid

The following command

find / -name "unixuserinfo" -exec chmod u+s '{}' \;

will find all the files named unixuserinfo on the system an make them setuid.

However this is very dangerous because of the obvious security concerns about setuid programs. Only try it if you know what you are doing.

hth
AwadheshPandey
Honored Contributor

Re: setuid

try to run this application as root, may be this is the application only run by root user.

Awadhesh
It's kind of fun to do the impossible
Muthukumar_5
Honored Contributor

Re: setuid

check the permission of that application as ls -l . You have to set set uset ID bit as,

# chmod 4755

so that it will use setuid for specific user.

hth.
Easy to suggest when don't know about the problem!
YOGI_3
Frequent Advisor

Re: setuid

hi orhan and RAC, info provide by u is very very useful....
i find the files names unixuserinfo having the permissions as follows..

# ll /jvpc/ops/PriceMaker/Product/lib/unixuserinfo
-r-sr-sr-x 1 jvpc users 28924 Mar 1 2005 /jvpc/ops/PriceMaker/Product/lib/unixuserinfo
# ll /jvpc/ops/PriceMaker_513/Product/lib/unixuserinfo
-r-sr-sr-x 1 jvpc users 69544 Jul 13 2004 /jvpc/ops/PriceMaker_513/Product/lib/unixuserinfo
# ll /jvpc/ops/PriceMaker.error/Product/lib/unixuserinfo
-r-sr-sr-x 1 jvpc users 69544 Jul 23 2004 /jvpc/ops/PriceMaker.error/Product/lib/unixuserinfo
#
There is never a wrong time to do the right things
Orhan Biyiklioglu
Respected Contributor

Re: setuid

So the problem was the file ownership than not the permissions.

Use this

find / -name "unixuserinfo" -exec chown root '{}' \;

this will solve the problem.



PS: please assign points.


hth
Muthukumar_5
Honored Contributor

Re: setuid

Permission of,

-r-sr-sr-x 1 jvpc users

says that,

you have setuid and setgid to jvpc user and users group. It will make problem to root user so that change ownership as like /usr/bin/passwd tool as,

-r-sr-x-r-x (4555) root:bin group.

#chmod 4555
#chown root:bin

Do this. It will work.

hth.


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

Re: setuid

#chmod 4555 /jvpc/ops/PriceMaker/Product/lib/unixuserinfo and other files, also # chown root:bin /jvpc/ops/PriceMaker/Product/lib/unixuserinfo

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