LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 06-02-2023, 04:22 AM   #1
kartiksadhukhan
LQ Newbie
 
Registered: Jun 2023
Posts: 2

Rep: Reputation: 0
Question Linux file and folder permissions.


Hi,

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.

Any help would be highly appreciated.

Regards,
Kartik Sadhukhan
 
Old 06-02-2023, 04:38 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,692

Rep: Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275
Hi, and welcome here, at LQ!

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.
 
Old 06-02-2023, 05:35 AM   #3
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,258
Blog Entries: 3

Rep: Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713
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.
 
Old 06-02-2023, 06:13 AM   #4
kartiksadhukhan
LQ Newbie
 
Registered: Jun 2023
Posts: 2

Original Poster
Rep: Reputation: 0
Hi all,

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.



Regards,
Kartik Sadhukhan
 
Old 06-02-2023, 08:25 AM   #5
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,573

Rep: Reputation: 2534Reputation: 2534Reputation: 2534Reputation: 2534Reputation: 2534Reputation: 2534Reputation: 2534Reputation: 2534Reputation: 2534Reputation: 2534Reputation: 2534
Quote:
Originally Posted by kartiksadhukhan View Post
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.


Last edited by boughtonp; 06-02-2023 at 08:27 AM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hou to mount a folder with the current owner:group and folder permissions? bmxakias Linux - Newbie 20 11-28-2017 12:22 PM
Copy a Folder to Another Folder and Retain its Permissions voshika Linux - Newbie 2 04-26-2016 08:24 AM
Changing folder permissions and its sub folder and files? stratotak Linux - Newbie 6 12-29-2011 05:11 AM
A script within a folder to delete the folder, script, and the folder's contents Cyberman Programming 15 10-17-2007 07:32 AM
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 05:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 07:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration