Create new account for website editing only
Hi,
I am using a VPS that is running redhat. So far I only have the root user and my own user that have all permissions. I am working with a web site developer and I want to create a new user account that can modify only a couple directories within the /var/www/html directory. I don't want them to have access to the database or other directories that have live websites where they could mess something up by accident. What is the best way of doing this? thanks! |
If the username is usera, then you can give usera ownership and write access to only those directory under /var/www/html
chown usera:usera /var/www/html/usera chmod 755 /var/www/html/usera As a root user you would always have full access to these directories. |
for ftp , you can jail or chroot a user to a particular directory.
you need to create a group with a certain permission and use chown |
Ok I ran these following commands:
chown usera:usera /var/www/html/usera chmod 755 /var/www/html/usera however, I already have files in that directory. I am assuming they also need to have permissions corrected? Can they all be changed to usera also? |
Quote:
Code:
# chown usera:usera -R /path Code:
$ man chown |
As mentioned earlier, you need to give permission/ownership recursively (-R) to all the files & directories under that directory.
|
All times are GMT -5. The time now is 06:47 AM. |