- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Mail to root
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2002 06:51 PM
тАО03-27-2002 06:51 PM
Mail to root
sendmail -v mailadm < /etc/hosts
mailadm... Connecting to local...
/var/mail/mailadm.lock: Permission denied
mail: /var/mail/mailadm.lock not creatable after 10 tries
mailadm... Can't create output: Error 0
root... aliased to root
/dead.letter... cannot open: Permission denied
root... Connecting to local...
/var/mail/root.lock: Permission denied
mail: /var/mail/root.lock not creatable after 10 tries
root... Can't create output: Error 0
This also happens with other local users.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2002 07:01 PM
тАО03-27-2002 07:01 PM
Re: Mail to root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2002 07:01 PM
тАО03-27-2002 07:01 PM
Re: Mail to root
Try moving your .lock files somewhere else.
And check your permissions as follows going up to /var/mail/root
dr-xr-xr-x 21 bin bin 1024 Feb 10 2001 var
drwxrwxr-x 2 bin mail 1024 Mar 27 21:03 mail
-rw-rw---- 1 root mail 0 Mar 26 23:58 root
Hope that helps
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2002 07:02 PM
тАО03-27-2002 07:02 PM
Re: Mail to root
check the permissions on your /var/mail directory. The /var/mail sirectory should be writable by the system and should be readble by the world.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2002 07:05 PM
тАО03-27-2002 07:05 PM
Re: Mail to root
Also check the permission on your sendmail file,
chown root:mail /usr/sbin/sendmail
Restart sendmail,
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
now send an email and try.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2002 07:11 PM
тАО03-27-2002 07:11 PM
Re: Mail to root
One more thing that I found ..
MAIL: elm and mail programs unable to create lock files for users
Current Path Home
Score : 0
Document Type : EN
Date : 1998 Oct 22
Description : MAIL: elm and mail programs unable to create lock files for users
Document Id : A5387830
Search String : A5387830
You may provide feedback on this document
View the printer friendly version of this document
--------------------------------------------------------------------------------
Problem Description
I am using version 8.86 of Sendmail and I am
experiencing a problem that occurs on six of
my servers.
elm seems to work correctly for root, but fails
for users with the following message:
elm can't create lock file, needs permission in /var/mail
When executing the mail command /usr/bin/mail/.lock
cannot be created after 10 tries.
What is causing this problem?
Configuration Info
Operating System - HP-UX
Version - 10.20
Hardware System - HP 9000
Series - K460
Solution
This problem has been known to occur when root has
the $MAIL variable set to /var/mail/root, but users
have it set to /usr/bin/mail.
$MAIL should not be set to the bin path. We recommend
you locate which profile is setting the $MAIL variable
to the incorrect path.
Here is the link
http://us-support3.external.hp.com/cki/bin/doc.pl/sid=cd4f12ef01bd389981/screen=ckiSearchResults?mode=id&searchString=A5387830
Richard