Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

mailx works for root only, other users can't.

Posted on 2004-04-12
4
Medium Priority
?
2,169 Views
Last Modified: 2013-12-27
When i'm logged in as root, mail works perfectly, but with any other user it doesn't. Here is output of the command: mailx -v -s test kalmen@hotmail.com < /dev/null  
bash-2.03$ /etc/mail/sendmail.cf: line 0: cannot open: Permission denied  
I'm running sendmail 8.12.11 ... I've tried so many things. its driving me insane.

0
Comment
Question by:kalmen
  • 3
4 Comments
 
LVL 4

Accepted Solution

by:
Otetelisanu earned 1500 total points
ID: 10810666
[root@pluto2:/] ll /etc/mail/sendmail.cf
-r--r--r--   1 bin      bin        28407 Mar  1  2000 /etc/mail/sendmail.cf
[root@pluto2:/]

look the permission for  /etc/mail/sendmail.cf

it is a permission promblem



0
 
LVL 1

Author Comment

by:kalmen
ID: 10810916
Thanks alot for that. I stopped getting the error message. And when I run the command:
mailx -v -s test kalmen@hotmail.com < /dev/null
it waits for a while, and then it sends the message, but at least i get it.
But when I use:

bash-2.03$ mailx kalmen@hotmail.com
Subject: Helo. This is a test
Testing 123
.

it just hangs... nothing happens and no mail is sent, i just have to kill it.
Do you have any suggestions?
0
 
LVL 1

Author Comment

by:kalmen
ID: 10811295
I gave up on sendmail. I'm using mailrelay through another host. Now Root works fine, but any other user will give me:
Can't create transcript file ./xfi3D7mPa03041: Permission denied
Cannot create ./dfi3D7mPa03041: Permission denied
queueup: cannot create queue temp file ./tfi3D7mPa03041, uid=100: Permission denied

Any advise? I know its a permissions problem, but i just can't find it.
0
 
LVL 1

Author Comment

by:kalmen
ID: 10811373
I'm so sorry for the hiccup. I realized that the sendmail program lost its suid flag, so chmod u+s /path/to/sendmail has fixed this problem.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month13 days, 12 hours left to enroll

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question