CentOSThis forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.
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.
This is my first time posting on this forum. I need some guidance on how to set up a directory so that a user can do any files changes and can access everything inside the directory except download and upload files and directories.
The permissions on directories and files do not influence the network communication (upload and download) at all.
Would be nice to give us more details about your environment, system, OS, use case and actually what do you want to achieve.
Yes, more details are needed as to distro, including version, and which software is in question. However, just a wild guess, you might be able to restrict a program slightly using AppArmor. It has very good, fine-grained control over file system access per program while it's networking, however, is only either on or off.
Thank you for your prompt response and for the warm welcome. An AWS Lightsail-hosted Magento website is running on a Bitnami LAMP server. The OS information is attached. I have a developer to whom I want to give access to Magento's root directory, which is /opt/bitnami/apache/htdocs in my case. We want to allow the developer full access to the code so that he or she can make changes to the code, but we do not want them to download or upload anything onto the server.
We want to allow the developer full access to the code so that he or she can make changes to the code, but we do not want them to download or upload anything onto the server.
Either you've explained badly, or you don't understand what you're asking.
Instead of trying to give them restricted access, a better avenue is probably to put a copy of the code under source control (e.g. Git), and give the developer commit access to that repository, but not access to the code on the server.
Then, have someone you trust review the changes they make, and (once verified) update the webroot from the repository as required.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.