Solved

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

Posted on 2004-04-12
4
2,103 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 4

Accepted Solution

by:
Otetelisanu earned 500 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

Industry Leaders: 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…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

630 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