Sponsored Content
Homework and Emergencies Emergency UNIX and Linux Support Mail notifications for sudo shows syntax error Post 302903199 by hergp on Monday 26th of May 2014 04:18:11 AM
Old 05-26-2014
I think, you need an equal sign in the statements
Code:
Defaults    mailfrom = "root@media.xxxxxxxxxxx.com"
Defaults    mail_always
Defaults    mailsub = "*** Command run via sudo on %h ***"
Defaults    mail_badpass
Defaults    badpass_message = "Please Provide Correct Password"
Defaults    !lecture,tty_tickets,!fqdn,!syslog
Defaults    logfile=/var/log/sudo.log

... and mail_always and mail_badpass do not take arguments.
This User Gave Thanks to hergp For This Post:
 

9 More Discussions You Might Find Interesting

1. Solaris

Solaris E-Mail Notifications ?!

Hi , I need to have a monitoring system also I wanna have E-Mail Notification .or SMS notification to be on touch with my System : ) ... Regards Adel (1 Reply)
Discussion started by: ArabOracle.com
1 Replies

2. UNIX for Dummies Questions & Answers

multiplication shows syntax error

my shell script is simple arithmetic process.my addtion,substract and divide all can be worked only except multiplication.please help me.the shell is following: #!/usr/bin/sh echo "enter a number1:" read number1 echo "enter an operator:" read operator echo "enter a number2:" read number2... (4 Replies)
Discussion started by: sonicstage
4 Replies

3. Solaris

SFTP is successful but still shows timeout error

Hi, I am doing sftp from remote server1 to remote server2. This is done through a script. This script was working fine. But if i am tranfer files of 120 MB only some part of the file gets transferred (around 9 MB). Incase i put the same file manually it gets uploaded successfully. Can... (1 Reply)
Discussion started by: subiksha
1 Replies

4. Shell Programming and Scripting

file system status mail notifications

HI I want to get an e-mail @ my yahoo address when the file system used space gets more than 89% , & the message contents must be the outputs of df -g errpt netstat -i ??????? (3 Replies)
Discussion started by: majd_ece
3 Replies

5. Solaris

Unauthorized sudo access mail

We want to get a notification for all unauthorized sudo access via e-mail to our team DL .. whats the way to do it ? (1 Reply)
Discussion started by: fugitive
1 Replies

6. Shell Programming and Scripting

Sending an email with mail function shows up as an attachment 'noname'

I have a file named email.html with this as the contents: Content-type: text/html ACHI,ACCRETIVE HEALTH ,7.15,<br>CPRT,Copart Inc.,36.14,<br>GEOB.MX,GEO-B,1.660,<br>GCO,Genesco Inc. Comm,73.58,<br>GMAN,Gordmans Stores, ,<br>GES,Guess? Inc. Comm,26.45,<br>KBR,KBR Inc. Common... (1 Reply)
Discussion started by: phpchick
1 Replies

7. Solaris

SUDO error in Solaris: auth.error] fork

I cannot solve the following error bellow. Can someone help me on this please? Mar 31 07:08:45 serverx sudo: fork Mar 31 07:18:50 serverx sudo: fork Mar 31 07:28:45 serverx sudo: fork Mar 31 07:38:47 serverx sudo: fork Mar 31 07:48:45 serverx sudo: fork Mar 31 07:58:45 serverx... (1 Reply)
Discussion started by: pangarano
1 Replies

8. UNIX for Advanced & Expert Users

Sudo syntax

Anyone know of a way shorten a Cmnd_Alias when multiple similar commands are used? For example, I need to grant access to /usr/bin/systemctl start <service>, /usr/bin/systemctl stop <service>, /usr/bin/systemctl restart <service>, and /usr/bin/systemctl status <service>. I think there is a way to... (1 Reply)
Discussion started by: ducet8
1 Replies

9. Shell Programming and Scripting

Email Notifications on Cron Bash Error Only cp mv rsync

Wondering if anyone can point me to an example of how to setup a bash script that executes cp mv and rsync commands and only sends an email if there were errors with any of those commands and what the errors are. In addition it should email if the cron event to execute the script fails, or in... (1 Reply)
Discussion started by: consultant
1 Replies
DOCKER(1)                                                     General Commands Manual                                                    DOCKER(1)

NAME
docker - System tray for KDE3/GNOME2 docklet applications SYNOPSIS
docker [options] DESCRIPTION
This manual page documents briefly the docker command. This manual page was written for the Debian distribution because the original pro- gram does not have a manual page. docker is a docking application (WindowMaker dock app) which acts as a system tray for KDE3 and GNOME2. It can be used to replace the panel in either environment, allowing you to have a system tray without running the KDE/GNOME panel. Docker was written and designed to work with Openbox 2, but it should work fine in any window manager that supports WindowMaker dock apps. OPTIONS
-h-help Show summary of options. -display DISPLAY The X display to connect to. -border N The width of the border to put around the system tray icons. Defaults to 1. -vertical Line up the icons vertically. Defaults to horizontally. -wmaker WindowMaker mode. This makes docker a fixed size (64x64) to appear nicely in in WindowMaker. Note: In this mode, you have a fixed number of icons that docker can hold. -iconsize SIZE The size (width and height and height) to display icons as in the system tray. Defaults to 24. -color COLOR The background color to use for the tray. Defaults to whatever color the window manager specifies. AUTHOR
This manual page was written by Ari Pollak <ari@debian.org>, for the Debian GNU/Linux system (but may be used by others). November 2, 2002 DOCKER(1)
All times are GMT -4. The time now is 07:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy