Giving a user CHMOD rights to the /var/www/html directory?
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Giving a user CHMOD rights to the /var/www/html directory?
Hey guys....
First of all, thanks to GAVollink for helping me with my previous problem/issue.
Here's where I am at right now....
Using GAVollink's advice I set up a user in a group called web and gave him rights to the /var/www/html directory. I also soft linked him so that when the "user" logs into FTP he can see the web site files in his home directory.....
Ok, good and well....all that works!
Now, I want to be able to give this user the rights to CHMOD files within the web site directory (/var/www/html...or now.... /home/user/html/html)
How do I do this?
Thanks in advance for any and all help! You guys who contribute make this site ROCK!!!!
Usually by default, if they are the owner of a file or dir, they can chmod the files within it. Just make sure they have rw permissions on the files either with owner or group permissions.
Originally posted by trickykid Usually by default, if they are the owner of a file or dir, they can chmod the files within it. Just make sure they have rw permissions on the files either with owner or group permissions.
Ok, but how do I make sure they have rw permissions? If they dont have them...how do I assign them to the user?
ls -al will give all the rwx permissions along with the owner and group ownership of the file or directory. Make sure they are either part of the group with rw permissions or the owner with rw permissions. If they can write, they usually have access to change the permissions of the files.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.