CHMOD Permissions and Settings


Recommended Posts

CHMOD is an older computer term that means "Change Mode" It lets the computer know or your server what other users can do to with a certain file. Many different applications and scripts use CHMOD and as a computer user you should get familiar with them.

In order for your CGI program to run, it must be executable by the server. Therefore, you must set the permissions so the server can read or execute your files, which usually means making your CGI programs world executable. The way you set your file permissions is by using the CHMOD commands.

The CHMOD's permission mask is a three-digit number. Each digit of the number defines the permission for a different user of the file. The first digit defines the permission for the owner, the second digit defines the permissions for the group and the third digit defines the permissions for everyone else (referred to by CuteFTP as public). Each digit works the same for each group of users: the owner, group, and public. What you set for one digit has no effect on the other two digits.

? Owner = the files users (you)

? Group = the files group

? Others = othPermissions Definitionsns:

? r = read access

? w = write access

? x = execNumerical Definitionsinitions:

? r = 4

? w = 2

? x = 1

You will come to recognize, if you do not already, Chmod as a word used for changing Permissions from within Telnet or your FTP client.

Some scripts will tell you to chmod 775 (for example). When using the numeric system, the code for permissions is as follows: 4 + 2 + 1 (rwx) = 7

The first number applies to Owner, the second number applies to Group, and the third number applies to Others. Therefore the first 7 of the chmod 775 tells Unix to change the Owner's permissions to rxw (because r=4 + w=2 + x=1 adds up to 7, this giving the Owner Read, Write, and Execute Permission. The second 7 applies to the group, this giving the Group Read, Write, and Execute Permission, and the last number 5, refers to Others (4 + 1= 5), giving Others only Read and Execute Permission. The permissions for chmod 775 look like this: rwx rwx -rx.

Permissions are always broken up into three groups of letters, however if there is a dash, this dash simply means that Permission wasn't given for that particular function, for example in the chmod 775, Permission to Write was not given to Others.

? --- (or 0) = no permission

? r-- (or 4) = read-only permission

? rw- (or 6) = read/write permission

? r-x (or 5) = read/execute permission

? rwx (or 7) = read/write/execute permission

Remember: the first 3 letters always apply to Owner, the second 3 apply to Group, and the third 3 apply to Others.

[400] r-------- [files, this will not let you accidentaly erase a file]

[444] r--r--r-- [files, this will allow the owner, users, and public to view only]

[600] rw------- [files, no one else can read or see files]

[644] rw-r--r-- [starting to get it?]

[664] rw-rw-r-- [files]

[666] rw-rw-rw- [files, this could very well cause chaos in satanic proportions...]

[700] rwx------ [programs / directories]

[750] rwxrx--- [programs / directories]

[755] rwxr-xr-x [programs / directories]

[777] rwxrwxrwx [using this will not be your lucky number...] \

Here are some files with access set on my web server. Notice the attributes are set in numbers.

directory2.gif

Here is the same directory through an FTP, notice this time they are showing you with letters to represent the attributes.

FTP.gif

Well, thats it for now, this is my 1st guide and I hope you found it insight;)ll and helpfull as well. ;)

Edited by markjensen
Link to comment
https://www.neowin.net/forum/topic/264720-chmod-permissions-and-settings/
Share on other sites

Do you guys actually understand it or are you just saying nice guide to be nice to me?:pp

585212179[/snapback]

*Says in druken manner* Yeah m8, two potatoes and some rubber ducks. I'M ON IT(Y))

[444] r--r--r-- [files, this will allow the owner, users, andplulic> to view only]

Seems to me it is about a day or so.  Try editing one of your older posts, and see.

585222932[/snapback]

I am from a few months back. It's only posts after the first one that can't be edited, as far as I know, but members can edit posts for an unlimited time when they are the original poster.

I am from a few months back. It's only posts after the first one that can't be edited, as far as I know, but members can edit posts for an unlimited time when they are the original poster.

585222943[/snapback]

:blink: I cant :wacko: edit my post :huh: after a certain time :pinch: even tho I'm the original :whistle: poster

Yes, guides like these are useful. :)

If you're going to administer FTP's or e.g. Linux boxes, reading up on the actually quite simple but flexible permission system is a must. And this guide helps in overcoming the "774, rwrwx... wtf??" step. :) Actually, I like this permission system more than the one in NTFS since it feels so complex (talking about the "advanced" settings on the security tab in file properties) when you can basically accomplish anything you wish from the simple system in *nix, looking historically.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I'm not aware of this issue, but to help the other guys.  What version of Android are you using? Did you try a different browser? To see if Edge is the issue here.
    • I agree when are you going to read this (really poor BTW) article? Here is a better article so you actually know what is going on and answers questions you had in other comments --> https://arstechnica.com/gadgets/2026/05/speed-boosting-low-latency-profile-is-one-of-the-improvements-coming-to-windows-11/ It is unclear if one will be able to disable the new profile at this point but I am not seeing any reason why one would.
    • I disagree; they come off very "bitchy" and "whiny". Make a great product and combine that with a great price (free) and people will come over to your side. Or build it and they will come as they say. Constantly trying to get attention by complaining all the time, will turn people off to your product.
    • It use to be a nightmare, with LibreOffice supporting a newer draft ODF standard by default, and Microsoft Office supporting the older non-draft standard. Now that they both support the same version of ODF, they should be interoperable.
    • Brave Browser 1.91.171 by Razvan Serea Brave Browser is a lightning-fast, secure web browser that stands out from the competition with its focus on privacy, security, and speed. With features like HTTPS Everywhere and built-in tracker blocking, Brave keeps your online activities safe from prying eyes. Brave is one of the safest browsers on the market today. It blocks third-party data storage. It protects from browser fingerprinting. And it does all this by default. Speed - Brave is built on Chromium, the same technology that powers Google Chrome, and is optimized for speed, providing a fast and responsive browsing experience. Brave Browser also features Brave Rewards, a system that rewards users with Basic Attention Tokens (BAT) for viewing opt-in ads. This innovative system provides an alternative revenue model for content creators and a way to support the Brave community. SlimBrave Neo takes all the good things about Brave and makes them even better by keeping everything clean, light, and privacy-focused. It removes the extra clutter, turns off features you might not need, and cuts down on anything that could slow you down or collect unnecessary data. Because it relies on simple settings and policies instead of modifying the browser itself, you still get full Brave compatibility—just in a smoother, lighter, and more privacy-friendly package. Brave Browser 1.91.171 changelog: General Fixed Cardano not being disabled on upgrade to Brave Origin. Upgraded Chromium to 149.0.7827.103. Origin Removed “Survey Panelist” setting from brave://settings/privacy. Fixed P3A and usage ping under brave://settings/privacy being displayed on first launch on Linux. Upgraded Chromium to 149.0.7827.103. Download: Brave Browser 64-bit | 1.2 MB (Freeware) Download: Brave Browser 32-bit View: Brave Homepage | Offline Installers | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • One Month Later
      Jamswaz earned a badge
      One Month Later
    • Week One Done
      Jamswaz earned a badge
      Week One Done
    • Rookie
      Marzoid went up a rank
      Rookie
    • Community Regular
      coch went up a rank
      Community Regular
    • One Year In
      slackerzz earned a badge
      One Year In
  • Popular Contributors

    1. 1
      +primortal
      517
    2. 2
      PsYcHoKiLLa
      189
    3. 3
      +Edouard
      156
    4. 4
      Steven P.
      84
    5. 5
      ATLien_0
      75
  • Tell a friend

    Love Neowin? Tell a friend!