我刚在GoDaddy有一个虚拟专用服务器。我有简单的控制面板。似乎没有办法通过此控制面板创建来宾ftp用户,我被告知必须通过SSH创建。我有一个名为Putty的程序,可以通过SSH登录服务器。我熟悉登录,但有没有人知道这些命令用于创建一个来宾ftp用户并给予他们对特定文件夹的读写权限?
请帮忙。
当我在Google上搜索时,我发现了以下步骤。但是当我使用USERADD命令时,PUTTY会抛出一个错误。
通过SSH创建FTP用户 需要按照下面提到的 步骤进行:
1. Login as root through SSH. 2. Next add the user account you want using the 'useradd' command useradd <username> 3. Now create a special group for that user. groupadd <groupname> 4. Now to add the user to the group gpasswd -a <username> <groupname> These commands are non-standard but available on most popular distributions. If not, then you can try editing /etc/group using your favorite text editor. 5. Change the group ownership of the special directory to that group. chgrp -R groupname /path/to/your/web/directory 6. Enable write permissions chmod -R g+rw /path/to/your/web/directory