- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- HP OO Sendmail with Attachment does not work
Operating System - Linux
1752383
Members
5860
Online
108788
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО02-03-2010 09:41 PM
тАО02-03-2010 09:41 PM
HP OO Sendmail with Attachment does not work.
I am trying to send an email through HP-OO with an attachment, but it always throws java.io.FileNotFoundException : /home/handson/TaskList.txt (Permission denied), though I gave 777 rights on this file, still the same error.
I am trying to send an email through HP-OO with an attachment, but it always throws java.io.FileNotFoundException : /home/handson/TaskList.txt (Permission denied), though I gave 777 rights on this file, still the same error.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2010 02:40 AM
тАО02-04-2010 02:40 AM
Solution
Please try to examine the problem. If your first solution to permission problems is "give 777 rights to everything", your systems will always fail a security audit.
Please run this command and examine the output:
ls -ld /home/handson/TaskList.txt /home/handson /home /
To allow the user running HP-OO to read /home/handson/TaskList.txt, the required minimum permissions are:
- directory access permission (x) on /
- directory access permission (x) on /home
- directory access permission (x) on /home/handson
- file read permission (r) on /home/handson/TaskList.txt
If any of those permissions are not granted to this user, the attempt to read TaskList.txt will fail.
If the user running HP-OO is the same as the user who owns /home/handson (by default, that would be the user named "handson"), you could use "user" permissions.
If it isn't the same user, but both users belong to the same group _and_ the group ownership of the directories/files are set to that group, you can use "group" permissions.
Otherwise, the "other" permissions should be used, with care.
My guess is: the directory /home/handson probably has overly strict permissions. That can be fixed with:
chmod a+x /home/handson
Please fix the permissions of the TaskList.txt file. Having files that are both writeable and executable by anyone is a security risk to your system.
MK
Please run this command and examine the output:
ls -ld /home/handson/TaskList.txt /home/handson /home /
To allow the user running HP-OO to read /home/handson/TaskList.txt, the required minimum permissions are:
- directory access permission (x) on /
- directory access permission (x) on /home
- directory access permission (x) on /home/handson
- file read permission (r) on /home/handson/TaskList.txt
If any of those permissions are not granted to this user, the attempt to read TaskList.txt will fail.
If the user running HP-OO is the same as the user who owns /home/handson (by default, that would be the user named "handson"), you could use "user" permissions.
If it isn't the same user, but both users belong to the same group _and_ the group ownership of the directories/files are set to that group, you can use "group" permissions.
Otherwise, the "other" permissions should be used, with care.
My guess is: the directory /home/handson probably has overly strict permissions. That can be fixed with:
chmod a+x /home/handson
Please fix the permissions of the TaskList.txt file. Having files that are both writeable and executable by anyone is a security risk to your system.
MK
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2010 02:44 AM
тАО02-04-2010 02:44 AM
Re: HP OO Sendmail with Attachment does not work
Thankyou very much.
Directory permissions was an issue.
Appreciate your help.
Directory permissions was an issue.
Appreciate your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2010 02:46 AM
тАО02-04-2010 02:46 AM
Re: HP OO Sendmail with Attachment does not work
The issue was that though the file had permission, the directory holding the file did not.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP