Differences between version 6 and predecessor to the previous major change of FilePermissions.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 6 | Last edited on Monday, November 20, 2006 9:59:26 pm | by IanMcDonald | Revert |
Older page: | version 3 | Last edited on Thursday, March 30, 2006 7:06:38 pm | by CraigBox | Revert |
@@ -18,8 +18,28 @@
UNIX file permissions are made up of three groups: the __u__ser who owns the file, the __g__roup that the file belongs to, and __o__ther people. These letters are important as you can use them to instruct chmod(1) change the permission of the file.
For each part, you have __r__ead, __w__rite, and e__x__ecute access. These are displayed as 'rwx'.
+
+There are also sticky bit (shown with a t when listing directories) and setuid bit shown with a s.
+
+The sticky bit allows the use of share directories basically where only the owner of the directory or the owner of the file can delete the file within a directory (as opposed to the normal situation where if you can write files in a directory you can delete any file in that directory)
+
+The setuid bit allows you to run the program as the file owner or group owner rather than the executor. For example the file can run as root instead of a normal user and therefore do priviledged things. However this is something you have to be very careful with as it can leave gaping security holes.
+
+The most common commandline program to alter permissions is [chmod(1)]
Link to http://www.linuxfocus.org/English/January1999/article77.html.
-And rrrrrrrrr is
the best
.
+And remember
the less permissions you give the better
.
+
+!!Recursively Change Permissions of Just Files Or Just Folders
+
+*find <path> -type d -exec chmod 755 {} \;
+
+This will recursively search your directory tree and chmod all directories only.
+
+Chmod all files only (and ignore the directories):
+
+*find <path> -type f -exec chmod 611 {} \;
+----
+CategoryBeginners