LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   failing to send mail from command line (https://www.linuxquestions.org/questions/linux-newbie-8/failing-to-send-mail-from-command-line-795775/)

asw 03-16-2010 08:20 AM

failing to send mail from command line
 
I am using Ubuntu 9.10 and when I tried to send mail from the command line I get: /usr/lib/sendmail: Permission denied. any takers on this.

wolfperkins 03-16-2010 08:23 AM

What is your command when you send the mail? Are you using mailx/mail?

SemiBeard 03-16-2010 05:24 PM

reply
 
Sounds like the mail queue directories might have the permissions set
in a restrictive way.

Quote:

Originally Posted by asw (Post 3900348)
I am using Ubuntu 9.10 and when I tried to send mail from the command line I get: /usr/lib/sendmail: Permission denied. any takers on this.


10speed705 03-16-2010 06:38 PM

I agree with semibeard. but please post the command

asw 03-17-2010 01:46 AM

$ mail abc@yahoo.com
Subject: Testing

Testing

Babai
.
EOT
/usr/lib/sendmail: Permission denied

----------------------

Quote:

Originally Posted by wolfperkins (Post 3900356)
What is your command when you send the mail? Are you using mailx/mail?


centosboy 03-17-2010 06:43 AM

Quote:

Originally Posted by asw (Post 3901368)
$ mail abc@yahoo.com
Subject: Testing

Testing

Babai
.
EOT
/usr/lib/sendmail: Permission denied

----------------------

sendmail executable or whatever it links to does not have execute permissions for you it looks like.

check you or the mail user have the permissions to run the sendmail command and if not correct this by adding execute perms in the right place. really , after seeing this error, you should long list the /usr/lib/sendmail file so we can see what is going on here.....

wolfperkins 03-17-2010 09:15 AM

Here is what the permission set looks like on my fedora 11

Code:

$ ll /usr/lib/sendmail
lrwxrwxrwx 1 root root 30 nov 19  2008 /usr/lib/sendmail -> /etc/alternatives/mta-sendmail
$ ll /etc/alternatives/mta-sendmail
lrwxrwxrwx 1 root root 26 fév 17  2009 /etc/alternatives/mta-sendmail -> /usr/lib/sendmail.sendmail
$ ll /usr/lib/sendmail.sendmail
lrwxrwxrwx 1 root root 25 fév 17  2009 /usr/lib/sendmail.sendmail -> ../sbin/sendmail.sendmail
$ ll /usr/sbin/sendmail.sendmail
-rwxr-sr-x 1 root smmsp 841560 déc 19  2008 /usr/sbin/sendmail.sendmail

What are yours like?


All times are GMT -5. The time now is 03:24 AM.