Re: Couldn't get write lock on /var/spool/mail/roman! on RH 7.1
"Tod D. Ihde" <[email protected]>
| Newsgroups | gmane.mail.neomail.general |
|---|---|
| Message-ID | <[email protected]> |
[Oops! I accidentally replied off-list. My apologies, Roman - I did not intend to do that. Reposted to the list. -Tod.] Short answer: Lean how file and directory permissions work. Long answer: Make sure /var/spool/mail is owned by group "mail" (it probably is). The, do a "chmod g+rws /var/spool/mail" and, finally, "chmod g+rw /var/spool/mail/*" (without the quotes in both cases). What's wrong: You're running neomail sgid (sed-groupid), not suid (set-userid), and telling it to operate on files it doesn't have permission to operate on. What fixed it: We made sure that /var/spool/mail had group rwead and write permission, and also set the "sticky" (sgid) bit on the directory - unless a program deliberatly changes it's umask (man -a umask), any files created in /var/spool/mail will ALSO be group read/writeable. Finally, we made existing files group read/writeable in that directory. Now: Go learn how file & directory permissions work. You'll be glad you did. Tod. Roman Melihhov wrote: > NEOMAIL ERROR > > Couldn't get write lock on /var/spool/mail/roman! > > > Thats the error message. > > [root@www mail]# ls -al /var/spool/mail > total 11328 > -rw------- 1 roman mail 2984 May 4 14:18 roman > .... > > neomail.pl ownership and permissions set as described in AFTER INSTALL > > [root@www mail]# ls -al /home/blakout/cgi-bin/neomail.pl > -rwxr-sr-x 1 root mail 120429 May 3 21:49 neomail.pl > > > Where could I possibly look further or where have I possibly gone wrong? > > Ideas appreciated, > Roman. > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > NeoMail-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/neomail-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf