Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a simple way to setup an ftp? I am trying to not go crazy and eat up my ram. A friend doesnt know linux at all and he is doing the art on my site. I'd like to have him access /var/www/sitename/.

What permissions do i need to set and how do i create a user for him. I heard i can use sshd process to do it but i have no clue how.

share|improve this question
up vote 2 down vote accepted

Assuming your friend uses Windows, have them use WinSCP to access your server via SSH. Accessing user accounts via an unencrypted protocol is a security risk.

If you do not know how to connect to the server, perhaps you should contact the administrator of the server or support department of the ISP providing it. Putty is a good Windows client and most UNIX based operating systems include SSH clients by default.

useradd username to add an account. Read the manpage.

passwd username to set his password. Read the manpage.

groupadd groupname to create a group. Read the manpage.

vigr to add your username and their username to the group. Read the manpage.

chgrp -R groupname /var/www/sitename to change group ownership on the web tree.

You can use the find commands below here instead of the next chmod commands

chmod g+s /var/www/sitename and any other directory within that tree to make default ownership be groupname on permission, which will allow you both to work there.

Then, make group writeable:

chmod -R g+w /var/www/sitename

This is the quick way to set the permissions as I describe above:

find /var/www/sitename -type d -exec chmod 2775 {} \;
find /var/www/sitename -type f -exec chmod 664 {} \;

Following that, you will both be able to SSH to the server and modify files within that directory.

share|improve this answer
Unfortunately i cant use WinSCP as it locks up due to a prompt after connecting to the server – acidzombie24 Jul 9 '10 at 22:46
I can connect just fine. I havent tried upload anything myself but i know he'll need to. I am using putty. – acidzombie24 Jul 9 '10 at 23:03
After i figured out how to connect directly i was able to use winscp and your solution worked perfect. – acidzombie24 Jul 10 '10 at 3:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.