
Hi All, A friend of mine performed this command on his machine Chmod 777 -R /usr/lib is there a way to undo this?

Chown them to the user you want access to. chown user:group -R /usr/lib and /or chmod o-w -R /usr/lib will remove write permissions for others, I think. Try it out. ./bernard On Mon, Oct 15, 2012 at 2:00 PM, jamo njoroge <patjayke@gmail.com> wrote:
Hi All, A friend of mine performed this command on his machine Chmod 777 -R /usr/lib
is there a way to undo this?
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

He should lock his account out of that computer and give in his resignation letter if its a company machine, otherwise if its his, he better reinstall and while at it google for "Linux fundamentals" book. ./Ok3ch On Mon, Oct 15, 2012 at 3:03 PM, Bernard Mwagiru <bmwagiru@gmail.com> wrote:
Chown them to the user you want access to.
chown user:group -R /usr/lib
and /or chmod o-w -R /usr/lib will remove write permissions for others, I think. Try it out.
./bernard
On Mon, Oct 15, 2012 at 2:00 PM, jamo njoroge <patjayke@gmail.com> wrote:
Hi All, A friend of mine performed this command on his machine
Chmod 777 -R /usr/lib
is there a way to undo this?
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

LOL On 15 October 2012 15:42, Okechukwu <okechukwu@gmail.com> wrote:
He should lock his account out of that computer and give in his resignation letter if its a company machine, otherwise if its his, he better reinstall and while at it google for "Linux fundamentals" book.
./Ok3ch
-- ˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙ Regards, David Njuki @njukey [Google,Twitter,Yahoo]

find /usr/lib -type d -exec chmod 755 {} \; # This is not likely to create any problems that I know of find /usr/lib -type f -exec chmod 640 {} \; # This might create problems if someone stored an executable file there, but that is odd! On Mon, Oct 15, 2012 at 2:00 PM, jamo njoroge <patjayke@gmail.com> wrote:
Hi All, A friend of mine performed this command on his machine Chmod 777 -R /usr/lib
is there a way to undo this?
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ I can't hear you -- I'm using the scrambler.

thanks guys, he decided to downgrade to 11.04 before i could try any of your commands... On 15 October 2012 15:12, Odhiambo Washington <odhiambo@gmail.com> wrote:
find /usr/lib -type d -exec chmod 755 {} \; # This is not likely to create any problems that I know of find /usr/lib -type f -exec chmod 640 {} \; # This might create problems if someone stored an executable file there, but that is odd!
On Mon, Oct 15, 2012 at 2:00 PM, jamo njoroge <patjayke@gmail.com> wrote:
Hi All, A friend of mine performed this command on his machine Chmod 777 -R /usr/lib
is there a way to undo this?
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ I can't hear you -- I'm using the scrambler.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

LOL!!! Actually a better solution that requires less thinking - format, install. Why did we forget that, given as you did not say there was any critical data:-) On Mon, Oct 15, 2012 at 3:43 PM, jamo njoroge <patjayke@gmail.com> wrote:
thanks guys, he decided to downgrade to 11.04 before i could try any of your commands...
On 15 October 2012 15:12, Odhiambo Washington <odhiambo@gmail.com> wrote:
find /usr/lib -type d -exec chmod 755 {} \; # This is not likely to create any problems that I know of find /usr/lib -type f -exec chmod 640 {} \; # This might create problems if someone stored an executable file there, but that is odd!
On Mon, Oct 15, 2012 at 2:00 PM, jamo njoroge <patjayke@gmail.com> wrote:
Hi All, A friend of mine performed this command on his machine Chmod 777 -R /usr/lib
is there a way to undo this?
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ I can't hear you -- I'm using the scrambler.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ I can't hear you -- I'm using the scrambler.
participants (5)
-
Bernard Mwagiru
-
David Njuki
-
jamo njoroge
-
Odhiambo Washington
-
Okechukwu