cdb_clearpass.sh
来自「相当优秀的 UNIX 进程管理工具」· Shell 代码 · 共 23 行
SH
23 行
#!/bin/bash## This script is for sites prior to 5.0 which use# the cdb module and want to now support clear# text passwords. Run the script and it will# add a trailing ":" colon to each line in vpasswd.# Next time they set thier password the clear text# password will be stored.#DOMAINSDIR="/home/vpopmail/domains"VPOPMAILBIN="/home/vpopmail/bin"for i in `ls $DOMAINSDIR` ; do VPASSWD="$DOMAINSDIR/$i/vpasswd" if [ -f "$VPASSWD" ] ; then echo "converting $i ..." for v in `cat $VPASSWD | awk -F: '{ print $1 }'` ; do $VPOPMAILBIN/vmoduser -C "" $v@$i done fidone
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?