一、建立新使用者:
1、建立使用者並放入www組
useradd -d /alidata/***/aaa -g www -s /sbin/nologin test(使用者名稱)
passwd test -------更改使用者的密碼
進行許可權設定:
chown -r www:www /***/***/
chown www:www /***/***/
chmod -r 775 /alidata/***/
限定家目錄:
chroot_local_user=yes
chroot_list_file=/etc/vsftpd.chroot_list
allow_writeable_chroot=yes
vsftpd.chroot_list中加入test /***/***/ 後面為限定目錄
刪除使用者userdel ***(注意千萬不要加-r引數 否則會將目錄一起刪除)
在linux中新增ftp使用者
在linux中新增ftp用,並設定相應的許可權,操作步驟如下 1 環境 ftp為vsftp。被限制使用者名為test。被限制路徑為 home test。2 建使用者 在root使用者下 useradd d home test test 增加使用者test,並制定test使用者的主目錄為 home t...
在linux中新增ftp使用者,並設定相應的許可權
在linux中新增ftp使用者,並設定相應的許可權,操作步驟如下 1 環境 ftp為vsftp。被限制使用者名為test。被限制路徑為 home test 2 建使用者 在root使用者下 useradd d home test test 增加使用者test,並制定test使用者的主目錄為 home...
在linux中新增ftp使用者,並設定相應的許可權
在linux中新增ftp使用者,並設定相應的許可權,操作步驟如下 1 環境 ftp為vsftp。被限制使用者名為test。被限制路徑為 home test 2 建使用者 在root使用者下 useradd d home test test 增加使用者test,並制定test使用者的主目錄為 home...