Browse Source

update ftpadd

master
VirtuBox 2 months ago
parent
commit
b0959402ba
Signed by: virtubox GPG Key ID: 22EB296C97BAD476
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mybashrc

+ 1
- 1
mybashrc View File

@ -498,7 +498,7 @@ _FTP_ADD() {
ftpaccountpass=$(_PWGEN)
$NEED_SUDO useradd -d "/var/www/$2/htdocs" -M -s /bin/false -G www-data "$1"
echo "$1:$ftpaccountpass" | $NEED_SUDO chpasswd -m
chmod -R g+rw "/var/www/$2/htdocs"
echo "Use : chmod -R g+rw /var/www/$2/htdocs"
echo -e "\n\n[/var/www/$2/htdocs]" | tee -a "$HOME/.ftpaccounts"
echo -e "user : $1" | tee -a "$HOME/.ftpaccounts"
echo "password : $ftpaccountpass" | tee -a "$HOME/.ftpaccounts"


Loading…
Cancel
Save