S
S
skvot2012-08-24 14:27:02
linux
skvot, 2012-08-24 14:27:02

Setting linux user rights?

Hello and sorry in advance for the noob question!
For the first time, I have to deal with the configuration of the production server. OS: CentOS.
Several sites are running on the server. Nginx is configured as a frontend to Apache. Nginx runs under the nginx user, apache under apache:apache.
I set permissions for all sites to 755 for directories and 644 for files, the owner of the files is apache, the group is webdev.
Installed proftpd. Powered by nouser:nogroup.
Added users to the system to work with sites. I set the site directory as my home directory. Added users to the webdev group. And it turns out that they cannot edit files =(
So far, I have temporarily set the rights to all files to 775 and the ftp user mask 002, but, as I understand it, this is not good.
Please help the noob to deal with the rights, thanks in advance for the help.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
ash_kgd, 2012-08-24
@ash_kgd

chmod ugo+rwx directory1 add permissions to directory1 directory ugo(User Group Other)+rwx(Read Write eXecute) — full rights for everyone. The same can be done in this way chmod 777 directory1

N
Nazar Mokrinsky, 2012-08-24
@nazarpc

You described what you have, and what, in fact, you need?
If you need to edit files by users from the webdev group, then the rights should be 77x, mask 002, the second digit is responsible for the rights of the group.
But I would run Apache from apache:webdev, so that Apache itself can edit files newly created by users via ftp.

A
Alexey Akulovich, 2012-08-24
@AterCattus

Maybe it makes sense to add users to several groups via
usermod -a -G GROUPNAME LOGIN

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question