Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

KERBEROS_V4 rejected as an authentication type

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

When backing up ftp with shell script, I encountered KERBEROS_V4 rejected as an authentication type

The reason for this is that the ftp command is used directly in the shell script, and the default is / usr/kerberos/bin/ftp, which is related to the PATH environment variable

This problem won't happen if you use / usr/bin/ftp!

#! / bin/shexport ORACLE_BASE=/u01/app/oracleexport ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1export PATH=$PATH:$ORACLE_HOME/bin:.export ORACLE_SID=TESTexport NLS_LANG='SIMPLIFIED CHINESE_CHINA.AL32UTF8'#export NLS_LANG=AMERICAN_AMERICA.AL32UTF8timedate=$ (date +% Y%m%d%H%M%S) bakdbname=123bakdbpasswd=123dumpdbname=123bakdbhome=/u01/backexpdp $bakdbname/$bakdbpasswd directory=backDir dumpfile=$dumpdbname'_'$timedate.dmp logfile=$dumpdbname'_'$timedate.logcd / u01zip-r backup/$dumpdbname'_'$timedate.zip backup/$dumpdbname '_' $timedate.dmp backup/$dumpdbname'_'$timedate.logfind $bakdbhome/123*.log-mtime + 3-exec rm-rf {}\ Find $bakdbhome/123*.zip-mtime + 10-exec rm-rf {}\; find $bakdbhome/123*.dmp-mtime + 3-exec rm-rf {}\; cd $bakdbhome/usr/bin/ftp-v-n 192.168.10.3 > > ${dumpdbname} _ {timedate} .log

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report