?? vpassgen
字號:
#!/bin/bash# 12/5/00 by SCN@HOMERNET.NET# Quick and dirty script to rebuild a vpasswd file from a user directory# structure, minus their password. Also, it can be used as part of a three# script operation to move users over to another system and store their# homedirectories in the right places. Set your quota and backupdir.QUOTAFIELD='NOQUOTA'BACKUPDIR='/backup/mail'for userdir in $HOME/domains/*/*/*dobase=$(basename "${userdir}")dir=$(dirname "${userdir}")if [ -d "$userdir" -a $base != "Maildir" ]; then entry="${base}:password:1:0:${base}:${userdir}:${QUOTAFIELD}" echo $entry >> newpass cp -auf $userdir $BACKUPDIRfi done
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -