开发者

How do I create a guest ftp user with SSH?

I just got a virtual dedicated server at GoDaddy. I g开发者_如何转开发ot the Simple Control Panel. There doesn't seem to be a way to create a guest ftp user through this control panel and I was told it must be created through SSH. I have a program called Putty which can log into the server via SSH. I'm familiar with logging in but does anyone know what the commands are to be used to create a guest ftp user and give them Read and Write access to a particular folder?

Please help.

I found the following steps when i was googling. But the PUTTY is throwing an error when i used USERADD command.

To create FTP user through SSH you would need to follow below mentioned steps:

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜