Solved

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

Posted on 2004-04-12
4
2,000 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SSH commands for Nas4free 21 423
Oracle Finace 3 77
Image not there 4 53
looking for unix program to search some keywords in side EAR WAR and JAR files 10 93
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…
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…
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…
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.

770 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