Teen Programmers Unite  
 

 

Return to forum top

binary problems

Posted by grandsnafu [send private reply] at September 19, 2001, 12:51:26 AM

Suddenly and out of nowhere a bunch of files in /bin and /usr/bin (we're talking about linux, btw) won't run unless you're root. System things like ps, locate and find. doing 'chmod +x <program>' gives a "chmod: ps: Operation not permitted" error, even as root. ls -l <file> shows that most of the apps that don't work are in group lp. chgrp just says "operation not permitted" too. Anybody had a similiar problem before?

Posted by gian [send private reply] at September 19, 2001, 02:11:27 AM

From my knowledge, ps has always required you to be root... as for locate and find, if you're looking in directories that your user account is not permitted to view will of course, produce that error.

I can't really explain the rest of it, but it sounds like the permissions on the whole /bin & /usr/bin dirs have been messed up.

Posted by taubz [send private reply] at September 19, 2001, 10:39:34 PM

ps works for me as any user - viewing everyone's processes (RH 7.1... I dunno what version of ps that would be)

Posted by drdevil [send private reply] at September 20, 2001, 12:37:53 PM

ps works for every user, always has.
just do:
chmod a+x /bin/*
chmod a+x /usr/bin/*


Posted by gian [send private reply] at September 20, 2001, 02:05:22 PM

Okay... whatever monolithic unix variant I got that misconception from must have been... Irix 5.2?!

Posted by grandsnafu [send private reply] at September 22, 2001, 01:49:47 AM

my computer happily chmod +x ifies everything under /bin, /usr/bin/, and pretty much anywhere else. it gives a "/bin/blalal: Operation not permitted," for netstat, ps, locate, and find. even as root. since when can root not do whatever they want to do?

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.