Solved

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

Posted on 2004-04-12
4
1,964 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 500 total points
Comment Utility
[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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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.

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now