-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Add details about chmod +a vs setfacl #6518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
pasdeloup
wants to merge
5
commits into
symfony:2.3
from
Sedona-Solutions:improve_setting_permissions
Closed
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
a3bfe31
add details about chmod +a vs setfacl
pasdeloup 5beac25
use note directive
pasdeloup 5f090fb
fix typo
pasdeloup b29b9dc
break paragraph after 72 characters
pasdeloup 3fa5e8a
remove notice about old ubuntu versions + rewrap paragraph
pasdeloup File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
add details about chmod +a vs setfacl
- Loading branch information
commit a3bfe31f036e1be656ad9865655ef0fa32b37282
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -229,10 +229,9 @@ If there are any issues, correct them now before moving on. | |
its user to be the same as your CLI user (e.g. for Apache, update the ``User`` | ||
and ``Group`` values). | ||
|
||
**2. Using ACL on a system that supports chmod +a** | ||
**2. Using ACL on a system that supports chmod +a (MacOS X)** | ||
|
||
Many systems allow you to use the ``chmod +a`` command. Try this first, | ||
and if you get an error - try the next method. This uses a command to | ||
MacOS X allows you to use the ``chmod +a`` command. This uses a command to | ||
try to determine your web server user and set it as ``HTTPDUSER``: | ||
|
||
.. code-block:: bash | ||
|
@@ -244,12 +243,11 @@ If there are any issues, correct them now before moving on. | |
$ sudo chmod +a "$HTTPDUSER allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs | ||
$ sudo chmod +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs | ||
|
||
**3. Using ACL on a system that supports setfacl (most Linux/BSD)** | ||
|
||
**3. Using ACL on a system that does not support chmod +a** | ||
|
||
Some systems don't support ``chmod +a``, but do support another utility | ||
Most Linux and BSD distributions don't support ``chmod +a``, but do support another utility | ||
called ``setfacl``. You may need to `enable ACL support`_ on your partition | ||
and install setfacl before using it (as is the case with Ubuntu). This | ||
and install setfacl before using it (as is the case with old versions of Ubuntu). This | ||
uses a command to try to determine your web server user and set it as | ||
``HTTPDUSER``: | ||
|
||
|
@@ -261,6 +259,8 @@ If there are any issues, correct them now before moving on. | |
|
||
If this doesn't work, try adding ``-n`` option. | ||
|
||
Note: setfacl isn't available on NFS mount points. However, setting cache and logs over NFS is strongly not recommanded for performance. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should use a proper note with the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok added |
||
|
||
**4. 458A Without using ACL** | ||
|
||
If none of the previous methods work for you, change the umask so that the | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which versions of Ubuntu are affected by this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just know I didn't have to do it using 14.04 (released in April 2014) and 16.04 (current) so the message is out of date for current versions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should then simply remove this note. People using even older versions will very likely have other issues too.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I didn't want to be too radical so I first kept it, but you're right.
Done.