DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 29th May 2010
werwer werwer is offline
Port Guard
 
Join Date: May 2010
Posts: 10
Thanked 0 Times in 0 Posts
Default openbsd postfix pine problem

hello, i have installed postfix on openbsd, running great.
i installed pine but when i run it it says:

Code:
 [Folder vulnerable - directory /var/mail must have 1777 protection]
But it's working. If i chmod 1777 /var/mail it will be a security risk.
I can see on a public shell server running openbsd the file is chmoded 0755 but i don't get the error.
??
Reply With Quote
  #2   (View Single Post)  
Old 29th May 2010
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,710
Thanked 214 Times in 189 Posts
Default

http://lmgtfy.com/?q=pine+%2Fvar%2Fmail
Reply With Quote
  #3   (View Single Post)  
Old 29th May 2010
werwer werwer is offline
Port Guard
 
Join Date: May 2010
Posts: 10
Thanked 0 Times in 0 Posts
Default

awesome answer jggimi. I haven't really searched on google.
anyway if i chmod 1777 i will have security issues.
Reply With Quote
  #4   (View Single Post)  
Old 29th May 2010
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,074
Thanked 198 Times in 156 Posts
Default

the point is that you click the links and read the content.

Quote:

This is an FAQ, but it's hidden in the UW IMAP toolkit FAQ:
http://www.washington.edu/imap/IMAP-...ndex.html#7.10

> I assume it is related to locking. How do I change the permissions?

As root, do:
chmod 1777 /var/mail

Or, alternatively, install the provided mlock program as the FAQ
discusses.
Quote:
Whomever told you that you can ignore it does not know what he is talking
about.

That message is annoying and persistant for a reason. It means what it
says: your INBOX folder is vulnerable to being trashed. All that needs to
happen is for a message to be delivered to your INBOX at the same time
that Pine is updating it.

This is because Pine is unable to create the .lock file necessary to
prevent this corruption, because /var/mail is protected 775. Pine does
not run with privileges, so it can not override this protection.
quote:

> Any advice on how to get rid of this (or fix what's causing it)?


Become root, then "chmod 1777 /var/mail".

Alternatively, install the mlock program on /etc/mlock setgid mail.
... etc, etc ...
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #5   (View Single Post)  
Old 29th May 2010
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,710
Thanked 214 Times in 189 Posts
Default

Another obvious solution is to pick a mail client other than pine.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
openvpn on openbsd problem.... michaelk OpenBSD Security 8 9th February 2011 04:49 AM
Mailscanner + Postfix problem after update giagni FreeBSD Ports and Packages 1 12th May 2009 12:37 PM
Problem with Postfix and Sasl auth unixbsd OpenBSD General 1 27th April 2009 03:26 AM
Help configuring pine cssgalactic FreeBSD General 4 29th June 2008 11:50 PM
Working Configuration for Openbsd 4.0 - Postfix - SASL - TLS roundkat Guides 0 4th May 2008 05:38 PM


All times are GMT. The time now is 12:41 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick