Sponsored Content
Top Forums UNIX for Dummies Questions & Answers mailx command - Temporary mail file: permission denied Post 302580616 by deepav1985 on Friday 9th of December 2011 03:55:23 AM
Old 12-09-2011
mailx command - Temporary mail file: permission denied

Hi ,

I am facing a problem with respect to mailx command in unix . Earlier it was working fine and I am facing this issue only from last week .
I used mailx command and I am getting a error message as follows :

temporary mail file: Permission denied

If I run mailx command from datastage , it is working fine .
It would be great if somebody can throw some light as to why I am receiving such an error message please .

Thanks
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

bellmail: lockf(/usr/spool/mail/uucp): permission denied

I keep getting the following errors and I don't know where to look to resolve the problem. Any ideas? bellmail: lockf(/usr/spool/mail/uucp): permission denied bellmail: lockf(/usr/spool/mail/root): permission denied bellmail: lockf(/usr/spool/mail/daemon): no such file or directory.... AIX... (1 Reply)
Discussion started by: Docboyeee
1 Replies

2. UNIX for Dummies Questions & Answers

Why ' Permission denied' when executing a command?

Hi All, When I execute a command on Unix and it says 'Permission denied'. What could be the reason and how can it be resolved? Many thanks, David (2 Replies)
Discussion started by: david_wang
2 Replies

3. Shell Programming and Scripting

sending mail through mailx command

Hi I need help to send mail through mailx command . Currenlt my program is like #!/bin/ksh -x echo " " >> path.lst MAIL_LIST='someone1@gamil.com someone2@gamil.com someone3@gamil.com' cat path.lst | mailx -s "path loaction" $MAIL_LIST echo "End" exit 0 Its work fine . But i... (3 Replies)
Discussion started by: mani_isha
3 Replies

4. UNIX for Dummies Questions & Answers

Permission Denied creating file under nfs mount

I have two servers, 82 and 70. My exports file on 82 reads / ...70(rw) on 70 I have a mountpoint called mnt_for_82 I execute on 70 mount -t nfs -o rw ...82:/ mnt_for_82 I go to server 70 and indeed can read and travers the mounted subdirectories. However, I try... (0 Replies)
Discussion started by: blaine.miller
0 Replies

5. Shell Programming and Scripting

How to rename a file even when it shows permission Denied in Unix

While executing a script, I am not being able to able to create a file as the file with the same name already exists. That existing file is not getting overwritten as I am not the owner of the file. So, Neither am I able to rename the file nor delete the existing file, so as to get my file created.... (2 Replies)
Discussion started by: Haimanti
2 Replies

6. Shell Programming and Scripting

Not able to send the mail using mail and mailx command

Hi All, I am trying to send a mail from linux server but could'nt able to send the mail. I tried the below syntax's so far but no luck. mail -s “Hello world” abc@xyz.com < /usr/g/txt.log cat "txt.log" | mailx -s "Hello world" abc@xyz.com mailx -s “Hello world” abc@xyz.com <... (2 Replies)
Discussion started by: scriptscript
2 Replies

7. UNIX for Dummies Questions & Answers

Mailx - temporary mail message file: No such file or directory

How would I go about resolving this error temporary mail message file: No such file or directory Can anybody tell me where the default location is for the temporary mail message file is for mailx? It appears that it doesn't exist. Thanks (1 Reply)
Discussion started by: joen
1 Replies

8. Shell Programming and Scripting

Unable to attach a .txt file or .log file to mail and mailx command

Hi, I am trying to attach a .log file or .txt file to mail command to send an email once my ksh script executed. I am unable to use mutt command as it has been not installed and i am not supposed to install it. I have tried many ways by googling which has not helped me to succeed. Here is my... (5 Replies)
Discussion started by: Samah
5 Replies

9. Shell Programming and Scripting

Executing bash file with sudo for the second time, leads to permission denied, for some commands

I have a script that checks if the script has been ran with sudo. If the script is not ran as sudo, the current script is being executed with exec sudo bash. You are asked for a password, you type in the password, success. Everything is perfect - the commands inside the script are ran as sudo.... (1 Reply)
Discussion started by: boqsc
1 Replies
aliases(5)							File Formats Manual							aliases(5)

NAME
aliases - aliases file for sendmail SYNOPSIS
DESCRIPTION
The command (which is the same as see sendmail(1M)) builds the sendmail alias database from a text file. The default text file is Local addresses (local user names) are looked up in the alias database and expanded as necessary, unless the user name is preceded by a backslash When the aliases file contains multiple entries for a given alias, only the last entry is used. Except when the processing option (the send to me option) is set in the command or in the configuration file, the sender is not included in any alias expansions. For example, if sends a message to and the expansion of includes the message is not delivered to Each line of the alias text file must be of the form: Mailing lists can be continued onto multiple lines. Each continuation line must begin with white space. Lines beginning with # are com- ments. A mailing-list is a comma-separated list of one or more of the following: user-name Local user names occurring in alias expansions will themselves be looked up in the alias database unless they are preceded by backslash remote-address The remote address syntax understood by is configured in the configuration file, and typically includes the RFC-822-style and the UUCP-style filename This must be an absolute path name. appends a message to the file only if the directory in which it resides is readable and searchable by all, and only if the file already exists, is not executable, and is writable by all. pipes the message as standard input to the specified command. If command-line contains blanks, it must be enclosed in quotation marks (). For example, reads filename for a list of recipient addresses and forwards the message to each. For example, an alias such as: would read for the list of addresses making up the group. If a file named exists in a user's home directory and is owned by the user, redirects mail for that user to the list of addresses in the file. An address in a or file can be anything that can appear as a mailing-list in the alias text file. can run programs or write to files using file. This is controlled by the file. If the owner of the file lacks a valid shell as listed in file, the execution of such programs will be disallowed. The user can still execute such programs by placing the special string in the file. The alias database is examined before a recipient's file is examined. After aliasing has been done, local and valid recipients who have a file in their home directory will have messages forwarded to the list of users defined in that file. Aliasing occurs only on local names. Loops can not occur, since no message will be sent to any person more than once. Aliases defined in will NOT be expanded in headers from (see mailx(1)), but WILL be visible over networks and in headers from (see mail(1)). is only the raw data file. The actual aliasing information is placed into a binary format in the file using (see newaliases(1M)). A command should be executed each time the file is changed in order for the change to take effect. Note that the NIS alias maps are gener- ated by using which leaves and in the directory. AUTHOR
was developed by the University of California, Berkeley, and originally appeared in 4.0BSD. FILES
User's mail forwarding file raw data file for alias names database of alias names SEE ALSO
mail(1), mailx(1), makemap(1M), newaliases(1M), sendmail(1M). aliases(5)
All times are GMT -4. The time now is 11:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy