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?
Thanks in advance,
Sujeet
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 /
Devdas Bhagat
-----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...
Devdas Bhagat wrote:
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 /
Devdas Bhagat
Thanks, chmod 755 did it. When I did the chmod 01777 /, I was trying to respond o the following error message in Thunderbird: Unable to create lock file /var/spool/mail/sujeet.lock. For movemail to work, it is necessary to create lock files in the mail spool directory. On many systems, this is best accomplished by making the mail spool directory be mode 01777. The attempt was to get my /var/spool/mail/sujeet into Thunderbird via Movemail. Hasn't succeeded yet, although I can see the same quite clearly via kmail. Any suggestions? -- When in doubt, tell the truth. -- Mark Twain * TagZilla 0.057 * [1]http://tagzilla.mozdev.org
References
Sujeet Bhatt wrote:
Thanks, chmod 755 did it. When I did the chmod 01777 /, I was trying to respond o the following error message in Thunderbird: Unable to create lock file /var/spool/mail/sujeet.lock. For movemail to work, it is necessary to create lock files in the mail spool directory. On many systems, this is best accomplished by making the mail spool directory be mode 01777. The attempt was to get my /var/spool/mail/sujeet into Thunderbird via Movemail. Hasn't succeeded yet, although I can see the same quite clearly via kmail. Any suggestions?
This works for me:
[/home/soumen] $ ls -l /var/spool/mail/soumen -rw-rw---- 1 soumen mail 0 Jan 15 16:28 /var/spool/mail/soumen [/home/soumen] $ ls -ld /var/spool/mail drwxrwxrwx 2 root mail 4096 Jan 15 16:29 /var/spool/mail
Any improvements in your thunderbird problem?
-- Soumen Dass [Registered Linux User # 272639 - Linux nova 2.4.22-1.2115.nptl i686]