[LINUX] chmod 600 ← 600 isn't it?

Recent report

The deployment is complete for the time being. If you write a readme, arrange the submissions, and deal with errors, I wonder if the appearance as a spectacle will be completed. A tweet from an omnivorous person said that portfolios can be evaluated not only for server-side ability, but also for content ability and appearance (I broke it down). I haven't got the server-side description and ability yet, but I can do it well if I don't cut corners, so I'm going to make a work that does my best now.

Purpose of this time

Know the number following chmod.


It's the type of permissions on the file



chmod is an abbreviation of "change mode", and edit authority is set by the combination of the number of digits and numbers. This will help prevent unauthorized access from third parties.

Number of digits meaning
1st digit (hundreds digit) Scope of access rights of the owner
2nd digit (tens digit) Scope of access rights for the group
3rd digit (1st place) Scope of access rights for other users
Numbers meaning
4 Read permission
2 Write permission
1 Execution permission
0 No authority

Authority will increase by adding numbers. For example, for all privileges 4 + 2 + 1 + 0 to 7 If you only read and write, 4 + 2 will be 6. You can set the users who can edit in this way.

in conclusion

There are a lot of other Linux commands, so think of them as part of them.

If even a small amount is helpful, please use LGTM and give us guidance in the comments section!

Recommended Posts

chmod 600 ← 600 isn't it?
Isn't it okay to write test code?
Bakthat is good for backup, isn't it?