LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-19-2022, 08:31 PM   #1
4pr3nd1z
LQ Newbie
 
Registered: Jan 2022
Distribution: Debian
Posts: 23

Rep: Reputation: 0
Question Suggested directory permissions for web server


Hello friends, I would like to know according to your experiences the permissions that the directories should have for a linux web server.

My query is by way of review, I was seeing many suggestions after a search with Google.

I thank you in advance for your time.
 
Old 07-19-2022, 09:14 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,736

Rep: Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213
Directories should be 755
Files should be 644
 
Old 07-23-2022, 12:14 AM   #3
4pr3nd1z
LQ Newbie
 
Registered: Jan 2022
Distribution: Debian
Posts: 23

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by scasey View Post
Directories should be 755
Files should be 644
Thank you
 
Old 07-23-2022, 08:07 AM   #4
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,334
Blog Entries: 3

Rep: Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730
Although, if you want to have shared access to the directories so that several different accounts can edit then a more difficult approach is required at least for the EXT file systems.
 
Old 08-06-2022, 07:50 AM   #5
4pr3nd1z
LQ Newbie
 
Registered: Jan 2022
Distribution: Debian
Posts: 23

Original Poster
Rep: Reputation: 0
Thumbs up

Quote:
Originally Posted by Turbocapitalist View Post
Although, if you want to have shared access to the directories so that several different accounts can edit then a more difficult approach is required at least for the EXT file systems.
Thank you for the link suggestion. @Turbocapitalist
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Have any suggested embeddd system with WiFi and Web Camera and USB Audio tivenchou Linux - Embedded & Single-board computer 1 06-02-2011 02:36 PM
/var/run/utmp permissions differ from those suggested in man 5 utmp pwc101 Slackware 5 02-14-2011 10:46 PM
Suggested forum topic: Web? RHELL LQ Suggestions & Feedback 12 03-03-2006 03:26 AM
Linux web server ,distro & suggested hardware apogee Linux - Hardware 5 08-13-2005 11:29 PM
suggested print server software kitek Linux - Software 5 04-22-2005 09:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:55 PM.

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