LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-06-2008, 06:19 AM   #1
jonken
LQ Newbie
 
Registered: Apr 2006
Posts: 6

Rep: Reputation: 0
Question Local users cannot send mail from command line or cronjobs


I have a server running Lenny and have a problem in that users are unable to send mail from scripts or the cl

joem@joeshome:~$ mail -s "test" someone@somewhere.net
Fatal: no entropy gathering module detected
Aborted

Adding a user to the sudoers with permission to x /usr/bin/mail and then running the above command using sudo works OK so it's obviously a permissions problem.

joem@joeshome:~$ ls -l /usr/bin/mail
-rwxr-xr-x 1 root root 125240 2006-12-04 11:31 /usr/bin/mail
joem@joeshome:~$ ls -l /dev/urandom
crw-rw-rw- 1 root root 1, 9 2008-01-01 14:32 /dev/urandom

This is really annoying as cron jobs running as users other than root throw an error.

Has anyone any more suggestions where I can look?

Regards, Joe
 
Old 01-07-2008, 04:26 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
What happens if a regular user does cat /dev/urandom? Do you see a bunch of binary looking characters scrolling across the screen or is it sitting there doing nothing? Permissions of urandom is ok, only needs read access at minimal. I've seen it as cr--r--r-- or crw-rw-rw like you have it.
 
Old 01-08-2008, 12:49 AM   #3
jonken
LQ Newbie
 
Registered: Apr 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by trickykid View Post
What happens if a regular user does cat /dev/urandom? Do you see a bunch of binary looking characters scrolling across the screen or is it sitting there doing nothing? Permissions of urandom is ok, only needs read access at minimal. I've seen it as cr--r--r-- or crw-rw-rw like you have it.
cat /dev/urandom works OK for regular users. There must be some other process somewhere with too restrictive permissions. I've spent hours googling for this but drawn a blank.

Regards, Joe
 
Old 01-10-2008, 03:29 PM   #4
jonken
LQ Newbie
 
Registered: Apr 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Solved (Sort of)

Having spent many, many hours on this I decided to take drastic action and installed bsd-mailx. This removed /usr/bin/mail but created a link to mailx and now all works as it should. Still don't know why this didn't work first off.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix: Do not allow local users to send mail Termina Linux - Server 1 03-22-2007 05:15 PM
How to send mail from command line buskmann Linux - Newbie 7 07-23-2006 10:18 PM
Send HTML mail via command line interface xlash Linux - General 2 11-02-2005 01:02 PM
can i send mail from command line? iflorea Linux - Software 6 11-02-2005 07:08 AM
Command Line Send Mail nutthick Linux - Newbie 10 01-24-2005 07:52 PM


All times are GMT -5. The time now is 10:49 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration