You probably do not want to open FTP as it’s insecure, and open up SFTP, for example, you want your dreamweaver users’ SFTP option. But, the problem here is that, SFTP uses SSH, which will give entire Linux / directory. You want to disable SSH shell access, but, enable SFTP to their home directory only.
First, you need latest version of OpenSSH (5.2 at this moment) for ChrootDirectory option to work.
If you try # yum install openssh, and it may give option of 4.2 only, then, you have to install OpenSSH 5.2 manually.
See this post on how to install OpenSSH 5.2 yourself.
Now that you have at least OpenSSH 5.2, let’s modify /etc/ssh/sshd_config
…
# comment this line below
#Subsystem sftp /usr/libexec/openssh/sftp-server
# add these lines
Subsystem sftp internal-sftp
Match Group sftp
ChrootDirectory /home/%u
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp
save it, and execute: (username is the user name of the account that you want to give sftp access)
# groupadd sftp
# useradd username
# passwd username
(set the password of user)
# usermod -d / username
# usermod -g sftp username
(user must have a group of 'sftp')
# chown root.root /home/username
Voila! Try to connect your server via SFTP, and it works indeed.