vsFTP configuration and the htm directory

I need to give a group of users permission to write to the /var/www/html/ directory of a Redhat Core 2 installation.  I have an active apache 2.xx server running, with this as the primary directory.

Did I mention I need to do this all through an ssh connection?

Step by step would be an excellent help.
Who is Participating?
blklineConnect With a Mentor Commented:
If I were doing this I'd do it like this:

1)   groupadd htmlauthors
2)   for each of your users:
            usermod -g htmlauthors myuser
3)   chgrp htmlauthors /var/www/html
4)   chmod g+rwx /var/www/html

The only con to this method is that if the group permissions will get funky if those users actually sign on to that server to do their own work.  Then you need to worry about group permissions on the other things that they create.  If you are only allowing them on to work with this directory then you should be good to go.  You man need to change the umask parameter in your vsftp.conf file so that each file is created r/w within the group -- test it and see.

Another alternative with vsftp (I think, I don't use it) is to have the users assume another identity after authenticating.  You could take advantage of that to allow access to the directory, after giving the appropriate permissions to the directory.
Before you can get explicit instructions you need to add a few more details.  The most important details is how are the users going to do the updates?  Are they local to the machine?  Are they Linux/Unix users?  Are they Windows users?     Will they be doing this through a Windows share?  FTP?  SFTP?

Answer these and we can give you a better answer.
preserver3Author Commented:
I was going to update this question a bit today, I hope this is enough info.

My users are a mix of Mac, Windows, and Linux users

my current /etc/vsftpd/vsftpd.conf file looks like this

It seems to work on one of my machines, and not the other.

I have 6 user accounts, I've created in the ordinary way(ie normal linux users).  I would like to group each and give each a different configuration of commands.  One of the user accounts, I'd like to give only read access.

Any suggestions?
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

preserver3Author Commented:
As another note... I need to know what I need to add to my configuration to allow at least one user to use dreamweaver to connect to the site directly.

preserver3Author Commented:
I tried your example, but my users can't create files or directories in the html directory... is there something wrong with my configuration file?  Thanks for your help so far.

preserver3Author Commented:
false alarm...  It just didn't give them access to the directories further down the tree.

preserver3Author Commented:
I've got a problem....  

Files created under the group users are being assigned to the individual users and not to apache.  Additionally, I'm guessing because I changed my umask to 077 and not 0775 that that's why I can't delete files I've uploaded in previous sessions.

Any other insights you can provide?

Oh, and for the benefit of the PAQ, add SYST to the end of the cmds_allowed=... line... It's suprising how many errors you'll get from ftp clients without that entry.

All Courses

From novice to tech pro — start learning today.