Unix/Linux Go Back    

UNIX for Dummies Questions & Answers This forum is closed for new posts. Please post beginner questions to learn unix and learn linux in this forum UNIX for Beginners Questions & Answers

Nail command error

UNIX for Dummies Questions & Answers

Thread Tools Search this Thread Display Modes
Old Unix and Linux 06-26-2013
Junaid Subhani Junaid Subhani is offline
Registered User
Join Date: Aug 2012
Last Activity: 3 October 2016, 10:14 PM EDT
Posts: 181
Thanks: 50
Thanked 2 Times in 2 Posts
Wrench Nail command error

Hello all.

I am currently using Red Hat Enterprise Linux Server release 5.8 (Tikanga).

I have multiple users on this system and intend to use nail command to send out emails.
When I enter the command:

nail <some-email-address>

its accepts the command and sends out an email.

But when I log into the system using orasoa user and try using the nail command, this is what I get;

ORASOA @titan3:/home/orasoa>nail <some-email-address>
temporary mail message file: Permission denied

The .bash_profile of orasoa user is:

ORASOA @titan3:/home/orasoa>cat .bash_profile 
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc

# User specific environment and startup programs

ORACLE_BASE=/appl/orasoa; export ORACLE_BASE
ORACLE_HOME=/appl/orasoa/product/10.1.3; export ORACLE_HOME
PATH=$PATH:$HOME/bin:/usr/sbin:/usr/local/bin:$PATH; export PATH

export PS1='ORASOA '@`hostname`':$PWD>'
alias home='cd $ORACLE_HOME'
alias bin='cd $ORACLE_HOME/bin'
alias port='cd $ORACLE_HOME/install'
alias opmn='cd $ORACLE_HOME/opmn/bin'
alias conf='cd /appl/orasoa/tabs7'
alias apache='cd /appl/orasoa/product/10.1.3/Apache/Apache/conf'
alias csapp='cd /appl/orasoa/product/10.1.3/j2ee/tcs/applications/tcs/CS6.11.4.4/WEB-INF/classes/config'
#alias csapp7='cd /appl/orasoa/product/10.1.3/j2ee/tcs7/applications/tcs7/CS*/WEB-INF/classes/config'
alias ws='cd /appl/orasoa/product/10.1.3/j2ee/tcs_ws/applications/tcs_ws/TABSWebService/WEB-INF/lib'
alias mapping='cd /appl/orasoa/product/10.1.3/j2ee/tcs/applications/tcs/CS6.11.4.4/WEB-INF/classes/ws/its/messagehandling'
alias mapping7='cd /appl/orasoa/product/10.1.3/j2ee/tcs7/applications/tcs7/CS*/WEB-INF/classes/ws/its/messagehandling'
alias logs='cd /logs/tabs7'

#if [ $USER = "orasoa" ]; then
#  if [ $SHELL = "/bin/ksh" ]; then
#    ulimit -p 16384
#    ulimit -n 65536
#  else
#    ulimit -u 16384 -n 65536
#  fi

TMP=/tmp; export TMP
/usr/bin/script -a /var/tmp/session_log/$LOGNAME.$$;

Why cant I send out Emails using nail command from this specific user? What seems to be the problem here?
Sponsored Links
Old Unix and Linux 06-26-2013
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
Join Date: May 2005
Last Activity: 22 October 2016, 1:57 AM EDT
Location: In the leftmost byte of /dev/kmem
Posts: 5,190
Thanks: 90
Thanked 1,352 Times in 1,011 Posts
Originally Posted by Junaid Subhani View Post

temporary mail message file: Permission denied

Why cant I send out Emails using nail command from this specific user? What seems to be the problem here?
Look at the error message above: it looks like this "nail" command prepares the mail in a temporary file before sending and the user "orasoa" is not allowed to write/create files where this is to happen.

Consult the documentation of the "nail" command about where it wants/needs to write these temporary files and give respective access rights to the user. Alternatively there might be a way to configure where "nail" writes these files. Configure it to use a path the user is allowed to write, then.

I hope this helps.

Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
HTML + Nail Command Junaid Subhani Shell Programming and Scripting 3 04-11-2013 09:02 AM
nail set header rvaitkus Shell Programming and Scripting 0 11-02-2009 08:39 AM
How to send multiple attachment through "nail" command Amey Joshi UNIX for Dummies Questions & Answers 1 03-30-2009 05:09 AM

All times are GMT -4. The time now is 03:40 PM.