-----Original Message----- From: linuxers-bounces@mm.ilug-bom.org.in [mailto:linuxers-bounces@mm.ilug-bom.org.in]On Behalf Of Devdas Bhagat Sent: Friday, January 14, 2005 1:29 PM To: GNU/Linux Users Group, Mumbai, India Subject: Re: [ILUG-BOM] Disaster?
On 15/01/05 00:22 +0530, Sujeet Bhatt wrote:
Guys,
I accidentally issued the command:
chmod 01777 /
One of the consequences seeems to be that my /var/spool/mail directory is zero bytes - I am unable to send a test mail to myself. The ouput of mailq is:
[root@localhost mail]# mailq /etc/mail/sendmail.cf: line 91: fileclass: cannot open '/etc/mail/local-host-names': World writable directory /etc/mail/sendmail.cf: line 588: fileclass: cannot open '/etc/mail/trusted-users': World writable directory
What are the other consequences and how do I reverse this? chmod 755 / Consequences, you have a writable /
but that shouldnt cause /etc/mail/trusted-users to be world writable, if it wasnt world writable earlier. are you sure you did not do a
chmod -R 01777 /
if you did not do the -R then a simple chmod 755 should solve your problems.
and unset the sticky bit...