Solved

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

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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…
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

751 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