What is the meaning of “chmod 666”?
up vote
42
down vote
favorite
I am using Linux. What is the meaning of chmod 666
?
linux chmod
add a comment |
up vote
42
down vote
favorite
I am using Linux. What is the meaning of chmod 666
?
linux chmod
25
aka, the Satan command.
– Moab
Jun 10 '11 at 21:29
6
If that bothers you (or if you can't be bothered to remember those numbers) you can also write it aschmod a=rw
.
– starblue
Jun 11 '11 at 6:48
add a comment |
up vote
42
down vote
favorite
up vote
42
down vote
favorite
I am using Linux. What is the meaning of chmod 666
?
linux chmod
I am using Linux. What is the meaning of chmod 666
?
linux chmod
linux chmod
edited Mar 5 '13 at 13:13
wonea
1,46711840
1,46711840
asked Jun 10 '11 at 19:47
Seno
27031021
27031021
25
aka, the Satan command.
– Moab
Jun 10 '11 at 21:29
6
If that bothers you (or if you can't be bothered to remember those numbers) you can also write it aschmod a=rw
.
– starblue
Jun 11 '11 at 6:48
add a comment |
25
aka, the Satan command.
– Moab
Jun 10 '11 at 21:29
6
If that bothers you (or if you can't be bothered to remember those numbers) you can also write it aschmod a=rw
.
– starblue
Jun 11 '11 at 6:48
25
25
aka, the Satan command.
– Moab
Jun 10 '11 at 21:29
aka, the Satan command.
– Moab
Jun 10 '11 at 21:29
6
6
If that bothers you (or if you can't be bothered to remember those numbers) you can also write it as
chmod a=rw
.– starblue
Jun 11 '11 at 6:48
If that bothers you (or if you can't be bothered to remember those numbers) you can also write it as
chmod a=rw
.– starblue
Jun 11 '11 at 6:48
add a comment |
6 Answers
6
active
oldest
votes
up vote
105
down vote
Chmod change attributes from a file/folder
- chmod 666 means that all users can read and write but cannot execute
- chmod 777 allows all actions for all users
chmod 744 allows only owner to do all actions; group and other users are allowed only to read
permission to: owner group other
/¯¯¯ /¯¯¯ /¯¯¯
octal: 6 6 6
binary: 1 1 0 1 1 0 1 1 0
what to permit: r w x r w x r w x
binary - 1: enabled, 0: disabled
what to permit - r: read, w: write, x: execute
permission to - owner: the user that create the file/folder
group: the users from group that owner is member
other: all other users
5
Only it's "octal", not "decimal". +1 anyway.
– Ben Voigt
Jun 11 '11 at 14:15
oh, sorry, octal! i'll fix this, thanks :)
– kokbira
Jun 11 '11 at 23:02
1
The third point mentioned in the first post is incorrect - chmod 711 allows only owner to do all actions, group and other are allowed only to read ![enter image description here][1] This is the table for rwx for octal rwx 000 001 010 011 100 101 110 111 Octal 001, or 1 denotes execute permission Octal 7, 111 denotes read write and execute permission hence 711 denotes, rwx for owner, and x for groups and others.
– user155250
Aug 29 '12 at 16:04
3
It only goes to 7 anyway, so there's no difference between octal and decimal in this case. :/
– Rob
Aug 29 '12 at 16:49
1
@KyleVassella,owner
is the owner of file or folder, generally the one that created it.group
is the group of users associated with that file or folder, generally the group that owner is in. So imagine that I am rootbira and my groop is rootusers and you are on that group too, and all other SU forum members are in other group. If I create a file and do a with chmod 750, I would read, write and execute it, you would only read and execute and SU users won't do anything - it is our secret ¬¬
– kokbira
Nov 22 '17 at 19:53
|
show 4 more comments
up vote
7
down vote
In really plain speak: it makes a file read- and write-able by the file owner, the file owner's group and every one else using the machine (all). Applied against a directory it lets everyone read (get file contents lists) of a directory and write (create, edit files in the directory) but not execute files from the directory.
For more detailed information how chmod
works check out this handy tutorial.
2
...Don't you mean lets everyone read/write files but not execute, and let's everyone read/write files in a directory, but not list all of the files?
– Earlz
Jun 10 '11 at 20:44
2
what @earlz says, plus write on a dir does not mean you can edit files there (write perms on a file does) but solely means you can create new entries (dirs, files, symlinks, etc.). Also, its nice of you to mention dirs for completeness, but 666 doesn't make sense for a dir; you'd never eliminate x for owner.
– Rich Homolka
Jun 10 '11 at 21:01
1
@Earlz: thanks for that. I always forget what 666 does for dirs because, well, I never set rw- for a user on a dir. :)
– Ian C.
Jun 10 '11 at 21:04
add a comment |
up vote
7
down vote
As mentioned in other answers, chmod means change mode. It affects the read, write and executable permissions for the owner, group and other categories of users. The numbers that follow the command (in this case 666), indicate how those permissions are modified for the file the command is run on (for 666, it means that owner, group and other have read and write permissions, but no executable permissions).
By changing the numbers to different values you effectively change the permissions for the file. The link I've referenced above has a little tool for figuring out what values you need to put in to get the permissions scheme you're after. It also goes over the switch options available for the command and some examples to help you understand better how it works.
1
That is a great site. It's going in my bookmarks. Thanks!
– Kirk
Jun 10 '11 at 21:12
add a comment |
up vote
5
down vote
The chmod command (abbreviated from change mode) is a Unix command that lets an operator tell the system how much (or little) access it should permit to a file. Command chmod 666
means that all users will have read and write permissions.
add a comment |
up vote
2
down vote
If your questions is more about the 666 part than the chmod part, I would refer you to The Linux Documentation Project where is a decent explanation of how file permissions work in Linux.
add a comment |
up vote
0
down vote
chmod
chmod
is change mode. It's application is changing permissions of files and it's for Unix.
Alternatively, There's utlity called attrib
which does the same and it's for Windows.
The 666
is an octal representation of 438
decimal.
Explanation
Syntax: [user][group][other]
Permission:
User:
(1) Can execute
(2) Can write
(4) Can read
Group:
(1) Can execute
(2) Can write
(4) Can read
Other:
(1) Can execute
(2) Can execute
(4) Can read
Join: [6][6][6]
/ |
User Group Other
Add permission numbers then place them on each box.
Mixing permission will add the permission properties together.
Example
# (Read, Write, Execute) permission to all groups
chmod 777 sample.dat
That said, This permission bit is for allowing
Read, Write
permission of file for all groups.
add a comment |
protected by Ramhound Dec 1 at 17:26
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
6 Answers
6
active
oldest
votes
6 Answers
6
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
105
down vote
Chmod change attributes from a file/folder
- chmod 666 means that all users can read and write but cannot execute
- chmod 777 allows all actions for all users
chmod 744 allows only owner to do all actions; group and other users are allowed only to read
permission to: owner group other
/¯¯¯ /¯¯¯ /¯¯¯
octal: 6 6 6
binary: 1 1 0 1 1 0 1 1 0
what to permit: r w x r w x r w x
binary - 1: enabled, 0: disabled
what to permit - r: read, w: write, x: execute
permission to - owner: the user that create the file/folder
group: the users from group that owner is member
other: all other users
5
Only it's "octal", not "decimal". +1 anyway.
– Ben Voigt
Jun 11 '11 at 14:15
oh, sorry, octal! i'll fix this, thanks :)
– kokbira
Jun 11 '11 at 23:02
1
The third point mentioned in the first post is incorrect - chmod 711 allows only owner to do all actions, group and other are allowed only to read ![enter image description here][1] This is the table for rwx for octal rwx 000 001 010 011 100 101 110 111 Octal 001, or 1 denotes execute permission Octal 7, 111 denotes read write and execute permission hence 711 denotes, rwx for owner, and x for groups and others.
– user155250
Aug 29 '12 at 16:04
3
It only goes to 7 anyway, so there's no difference between octal and decimal in this case. :/
– Rob
Aug 29 '12 at 16:49
1
@KyleVassella,owner
is the owner of file or folder, generally the one that created it.group
is the group of users associated with that file or folder, generally the group that owner is in. So imagine that I am rootbira and my groop is rootusers and you are on that group too, and all other SU forum members are in other group. If I create a file and do a with chmod 750, I would read, write and execute it, you would only read and execute and SU users won't do anything - it is our secret ¬¬
– kokbira
Nov 22 '17 at 19:53
|
show 4 more comments
up vote
105
down vote
Chmod change attributes from a file/folder
- chmod 666 means that all users can read and write but cannot execute
- chmod 777 allows all actions for all users
chmod 744 allows only owner to do all actions; group and other users are allowed only to read
permission to: owner group other
/¯¯¯ /¯¯¯ /¯¯¯
octal: 6 6 6
binary: 1 1 0 1 1 0 1 1 0
what to permit: r w x r w x r w x
binary - 1: enabled, 0: disabled
what to permit - r: read, w: write, x: execute
permission to - owner: the user that create the file/folder
group: the users from group that owner is member
other: all other users
5
Only it's "octal", not "decimal". +1 anyway.
– Ben Voigt
Jun 11 '11 at 14:15
oh, sorry, octal! i'll fix this, thanks :)
– kokbira
Jun 11 '11 at 23:02
1
The third point mentioned in the first post is incorrect - chmod 711 allows only owner to do all actions, group and other are allowed only to read ![enter image description here][1] This is the table for rwx for octal rwx 000 001 010 011 100 101 110 111 Octal 001, or 1 denotes execute permission Octal 7, 111 denotes read write and execute permission hence 711 denotes, rwx for owner, and x for groups and others.
– user155250
Aug 29 '12 at 16:04
3
It only goes to 7 anyway, so there's no difference between octal and decimal in this case. :/
– Rob
Aug 29 '12 at 16:49
1
@KyleVassella,owner
is the owner of file or folder, generally the one that created it.group
is the group of users associated with that file or folder, generally the group that owner is in. So imagine that I am rootbira and my groop is rootusers and you are on that group too, and all other SU forum members are in other group. If I create a file and do a with chmod 750, I would read, write and execute it, you would only read and execute and SU users won't do anything - it is our secret ¬¬
– kokbira
Nov 22 '17 at 19:53
|
show 4 more comments
up vote
105
down vote
up vote
105
down vote
Chmod change attributes from a file/folder
- chmod 666 means that all users can read and write but cannot execute
- chmod 777 allows all actions for all users
chmod 744 allows only owner to do all actions; group and other users are allowed only to read
permission to: owner group other
/¯¯¯ /¯¯¯ /¯¯¯
octal: 6 6 6
binary: 1 1 0 1 1 0 1 1 0
what to permit: r w x r w x r w x
binary - 1: enabled, 0: disabled
what to permit - r: read, w: write, x: execute
permission to - owner: the user that create the file/folder
group: the users from group that owner is member
other: all other users
Chmod change attributes from a file/folder
- chmod 666 means that all users can read and write but cannot execute
- chmod 777 allows all actions for all users
chmod 744 allows only owner to do all actions; group and other users are allowed only to read
permission to: owner group other
/¯¯¯ /¯¯¯ /¯¯¯
octal: 6 6 6
binary: 1 1 0 1 1 0 1 1 0
what to permit: r w x r w x r w x
binary - 1: enabled, 0: disabled
what to permit - r: read, w: write, x: execute
permission to - owner: the user that create the file/folder
group: the users from group that owner is member
other: all other users
edited Sep 9 '14 at 12:33
answered Jun 10 '11 at 20:46
kokbira
4,078113465
4,078113465
5
Only it's "octal", not "decimal". +1 anyway.
– Ben Voigt
Jun 11 '11 at 14:15
oh, sorry, octal! i'll fix this, thanks :)
– kokbira
Jun 11 '11 at 23:02
1
The third point mentioned in the first post is incorrect - chmod 711 allows only owner to do all actions, group and other are allowed only to read ![enter image description here][1] This is the table for rwx for octal rwx 000 001 010 011 100 101 110 111 Octal 001, or 1 denotes execute permission Octal 7, 111 denotes read write and execute permission hence 711 denotes, rwx for owner, and x for groups and others.
– user155250
Aug 29 '12 at 16:04
3
It only goes to 7 anyway, so there's no difference between octal and decimal in this case. :/
– Rob
Aug 29 '12 at 16:49
1
@KyleVassella,owner
is the owner of file or folder, generally the one that created it.group
is the group of users associated with that file or folder, generally the group that owner is in. So imagine that I am rootbira and my groop is rootusers and you are on that group too, and all other SU forum members are in other group. If I create a file and do a with chmod 750, I would read, write and execute it, you would only read and execute and SU users won't do anything - it is our secret ¬¬
– kokbira
Nov 22 '17 at 19:53
|
show 4 more comments
5
Only it's "octal", not "decimal". +1 anyway.
– Ben Voigt
Jun 11 '11 at 14:15
oh, sorry, octal! i'll fix this, thanks :)
– kokbira
Jun 11 '11 at 23:02
1
The third point mentioned in the first post is incorrect - chmod 711 allows only owner to do all actions, group and other are allowed only to read ![enter image description here][1] This is the table for rwx for octal rwx 000 001 010 011 100 101 110 111 Octal 001, or 1 denotes execute permission Octal 7, 111 denotes read write and execute permission hence 711 denotes, rwx for owner, and x for groups and others.
– user155250
Aug 29 '12 at 16:04
3
It only goes to 7 anyway, so there's no difference between octal and decimal in this case. :/
– Rob
Aug 29 '12 at 16:49
1
@KyleVassella,owner
is the owner of file or folder, generally the one that created it.group
is the group of users associated with that file or folder, generally the group that owner is in. So imagine that I am rootbira and my groop is rootusers and you are on that group too, and all other SU forum members are in other group. If I create a file and do a with chmod 750, I would read, write and execute it, you would only read and execute and SU users won't do anything - it is our secret ¬¬
– kokbira
Nov 22 '17 at 19:53
5
5
Only it's "octal", not "decimal". +1 anyway.
– Ben Voigt
Jun 11 '11 at 14:15
Only it's "octal", not "decimal". +1 anyway.
– Ben Voigt
Jun 11 '11 at 14:15
oh, sorry, octal! i'll fix this, thanks :)
– kokbira
Jun 11 '11 at 23:02
oh, sorry, octal! i'll fix this, thanks :)
– kokbira
Jun 11 '11 at 23:02
1
1
The third point mentioned in the first post is incorrect - chmod 711 allows only owner to do all actions, group and other are allowed only to read ![enter image description here][1] This is the table for rwx for octal rwx 000 001 010 011 100 101 110 111 Octal 001, or 1 denotes execute permission Octal 7, 111 denotes read write and execute permission hence 711 denotes, rwx for owner, and x for groups and others.
– user155250
Aug 29 '12 at 16:04
The third point mentioned in the first post is incorrect - chmod 711 allows only owner to do all actions, group and other are allowed only to read ![enter image description here][1] This is the table for rwx for octal rwx 000 001 010 011 100 101 110 111 Octal 001, or 1 denotes execute permission Octal 7, 111 denotes read write and execute permission hence 711 denotes, rwx for owner, and x for groups and others.
– user155250
Aug 29 '12 at 16:04
3
3
It only goes to 7 anyway, so there's no difference between octal and decimal in this case. :/
– Rob
Aug 29 '12 at 16:49
It only goes to 7 anyway, so there's no difference between octal and decimal in this case. :/
– Rob
Aug 29 '12 at 16:49
1
1
@KyleVassella,
owner
is the owner of file or folder, generally the one that created it. group
is the group of users associated with that file or folder, generally the group that owner is in. So imagine that I am rootbira and my groop is rootusers and you are on that group too, and all other SU forum members are in other group. If I create a file and do a with chmod 750, I would read, write and execute it, you would only read and execute and SU users won't do anything - it is our secret ¬¬– kokbira
Nov 22 '17 at 19:53
@KyleVassella,
owner
is the owner of file or folder, generally the one that created it. group
is the group of users associated with that file or folder, generally the group that owner is in. So imagine that I am rootbira and my groop is rootusers and you are on that group too, and all other SU forum members are in other group. If I create a file and do a with chmod 750, I would read, write and execute it, you would only read and execute and SU users won't do anything - it is our secret ¬¬– kokbira
Nov 22 '17 at 19:53
|
show 4 more comments
up vote
7
down vote
In really plain speak: it makes a file read- and write-able by the file owner, the file owner's group and every one else using the machine (all). Applied against a directory it lets everyone read (get file contents lists) of a directory and write (create, edit files in the directory) but not execute files from the directory.
For more detailed information how chmod
works check out this handy tutorial.
2
...Don't you mean lets everyone read/write files but not execute, and let's everyone read/write files in a directory, but not list all of the files?
– Earlz
Jun 10 '11 at 20:44
2
what @earlz says, plus write on a dir does not mean you can edit files there (write perms on a file does) but solely means you can create new entries (dirs, files, symlinks, etc.). Also, its nice of you to mention dirs for completeness, but 666 doesn't make sense for a dir; you'd never eliminate x for owner.
– Rich Homolka
Jun 10 '11 at 21:01
1
@Earlz: thanks for that. I always forget what 666 does for dirs because, well, I never set rw- for a user on a dir. :)
– Ian C.
Jun 10 '11 at 21:04
add a comment |
up vote
7
down vote
In really plain speak: it makes a file read- and write-able by the file owner, the file owner's group and every one else using the machine (all). Applied against a directory it lets everyone read (get file contents lists) of a directory and write (create, edit files in the directory) but not execute files from the directory.
For more detailed information how chmod
works check out this handy tutorial.
2
...Don't you mean lets everyone read/write files but not execute, and let's everyone read/write files in a directory, but not list all of the files?
– Earlz
Jun 10 '11 at 20:44
2
what @earlz says, plus write on a dir does not mean you can edit files there (write perms on a file does) but solely means you can create new entries (dirs, files, symlinks, etc.). Also, its nice of you to mention dirs for completeness, but 666 doesn't make sense for a dir; you'd never eliminate x for owner.
– Rich Homolka
Jun 10 '11 at 21:01
1
@Earlz: thanks for that. I always forget what 666 does for dirs because, well, I never set rw- for a user on a dir. :)
– Ian C.
Jun 10 '11 at 21:04
add a comment |
up vote
7
down vote
up vote
7
down vote
In really plain speak: it makes a file read- and write-able by the file owner, the file owner's group and every one else using the machine (all). Applied against a directory it lets everyone read (get file contents lists) of a directory and write (create, edit files in the directory) but not execute files from the directory.
For more detailed information how chmod
works check out this handy tutorial.
In really plain speak: it makes a file read- and write-able by the file owner, the file owner's group and every one else using the machine (all). Applied against a directory it lets everyone read (get file contents lists) of a directory and write (create, edit files in the directory) but not execute files from the directory.
For more detailed information how chmod
works check out this handy tutorial.
answered Jun 10 '11 at 19:52
Ian C.
4,85812327
4,85812327
2
...Don't you mean lets everyone read/write files but not execute, and let's everyone read/write files in a directory, but not list all of the files?
– Earlz
Jun 10 '11 at 20:44
2
what @earlz says, plus write on a dir does not mean you can edit files there (write perms on a file does) but solely means you can create new entries (dirs, files, symlinks, etc.). Also, its nice of you to mention dirs for completeness, but 666 doesn't make sense for a dir; you'd never eliminate x for owner.
– Rich Homolka
Jun 10 '11 at 21:01
1
@Earlz: thanks for that. I always forget what 666 does for dirs because, well, I never set rw- for a user on a dir. :)
– Ian C.
Jun 10 '11 at 21:04
add a comment |
2
...Don't you mean lets everyone read/write files but not execute, and let's everyone read/write files in a directory, but not list all of the files?
– Earlz
Jun 10 '11 at 20:44
2
what @earlz says, plus write on a dir does not mean you can edit files there (write perms on a file does) but solely means you can create new entries (dirs, files, symlinks, etc.). Also, its nice of you to mention dirs for completeness, but 666 doesn't make sense for a dir; you'd never eliminate x for owner.
– Rich Homolka
Jun 10 '11 at 21:01
1
@Earlz: thanks for that. I always forget what 666 does for dirs because, well, I never set rw- for a user on a dir. :)
– Ian C.
Jun 10 '11 at 21:04
2
2
...Don't you mean lets everyone read/write files but not execute, and let's everyone read/write files in a directory, but not list all of the files?
– Earlz
Jun 10 '11 at 20:44
...Don't you mean lets everyone read/write files but not execute, and let's everyone read/write files in a directory, but not list all of the files?
– Earlz
Jun 10 '11 at 20:44
2
2
what @earlz says, plus write on a dir does not mean you can edit files there (write perms on a file does) but solely means you can create new entries (dirs, files, symlinks, etc.). Also, its nice of you to mention dirs for completeness, but 666 doesn't make sense for a dir; you'd never eliminate x for owner.
– Rich Homolka
Jun 10 '11 at 21:01
what @earlz says, plus write on a dir does not mean you can edit files there (write perms on a file does) but solely means you can create new entries (dirs, files, symlinks, etc.). Also, its nice of you to mention dirs for completeness, but 666 doesn't make sense for a dir; you'd never eliminate x for owner.
– Rich Homolka
Jun 10 '11 at 21:01
1
1
@Earlz: thanks for that. I always forget what 666 does for dirs because, well, I never set rw- for a user on a dir. :)
– Ian C.
Jun 10 '11 at 21:04
@Earlz: thanks for that. I always forget what 666 does for dirs because, well, I never set rw- for a user on a dir. :)
– Ian C.
Jun 10 '11 at 21:04
add a comment |
up vote
7
down vote
As mentioned in other answers, chmod means change mode. It affects the read, write and executable permissions for the owner, group and other categories of users. The numbers that follow the command (in this case 666), indicate how those permissions are modified for the file the command is run on (for 666, it means that owner, group and other have read and write permissions, but no executable permissions).
By changing the numbers to different values you effectively change the permissions for the file. The link I've referenced above has a little tool for figuring out what values you need to put in to get the permissions scheme you're after. It also goes over the switch options available for the command and some examples to help you understand better how it works.
1
That is a great site. It's going in my bookmarks. Thanks!
– Kirk
Jun 10 '11 at 21:12
add a comment |
up vote
7
down vote
As mentioned in other answers, chmod means change mode. It affects the read, write and executable permissions for the owner, group and other categories of users. The numbers that follow the command (in this case 666), indicate how those permissions are modified for the file the command is run on (for 666, it means that owner, group and other have read and write permissions, but no executable permissions).
By changing the numbers to different values you effectively change the permissions for the file. The link I've referenced above has a little tool for figuring out what values you need to put in to get the permissions scheme you're after. It also goes over the switch options available for the command and some examples to help you understand better how it works.
1
That is a great site. It's going in my bookmarks. Thanks!
– Kirk
Jun 10 '11 at 21:12
add a comment |
up vote
7
down vote
up vote
7
down vote
As mentioned in other answers, chmod means change mode. It affects the read, write and executable permissions for the owner, group and other categories of users. The numbers that follow the command (in this case 666), indicate how those permissions are modified for the file the command is run on (for 666, it means that owner, group and other have read and write permissions, but no executable permissions).
By changing the numbers to different values you effectively change the permissions for the file. The link I've referenced above has a little tool for figuring out what values you need to put in to get the permissions scheme you're after. It also goes over the switch options available for the command and some examples to help you understand better how it works.
As mentioned in other answers, chmod means change mode. It affects the read, write and executable permissions for the owner, group and other categories of users. The numbers that follow the command (in this case 666), indicate how those permissions are modified for the file the command is run on (for 666, it means that owner, group and other have read and write permissions, but no executable permissions).
By changing the numbers to different values you effectively change the permissions for the file. The link I've referenced above has a little tool for figuring out what values you need to put in to get the permissions scheme you're after. It also goes over the switch options available for the command and some examples to help you understand better how it works.
answered Jun 10 '11 at 19:59
MaQleod
12.2k43154
12.2k43154
1
That is a great site. It's going in my bookmarks. Thanks!
– Kirk
Jun 10 '11 at 21:12
add a comment |
1
That is a great site. It's going in my bookmarks. Thanks!
– Kirk
Jun 10 '11 at 21:12
1
1
That is a great site. It's going in my bookmarks. Thanks!
– Kirk
Jun 10 '11 at 21:12
That is a great site. It's going in my bookmarks. Thanks!
– Kirk
Jun 10 '11 at 21:12
add a comment |
up vote
5
down vote
The chmod command (abbreviated from change mode) is a Unix command that lets an operator tell the system how much (or little) access it should permit to a file. Command chmod 666
means that all users will have read and write permissions.
add a comment |
up vote
5
down vote
The chmod command (abbreviated from change mode) is a Unix command that lets an operator tell the system how much (or little) access it should permit to a file. Command chmod 666
means that all users will have read and write permissions.
add a comment |
up vote
5
down vote
up vote
5
down vote
The chmod command (abbreviated from change mode) is a Unix command that lets an operator tell the system how much (or little) access it should permit to a file. Command chmod 666
means that all users will have read and write permissions.
The chmod command (abbreviated from change mode) is a Unix command that lets an operator tell the system how much (or little) access it should permit to a file. Command chmod 666
means that all users will have read and write permissions.
edited Jun 10 '11 at 19:57
Kirk
2,1191219
2,1191219
answered Jun 10 '11 at 19:50
Seno
27031021
27031021
add a comment |
add a comment |
up vote
2
down vote
If your questions is more about the 666 part than the chmod part, I would refer you to The Linux Documentation Project where is a decent explanation of how file permissions work in Linux.
add a comment |
up vote
2
down vote
If your questions is more about the 666 part than the chmod part, I would refer you to The Linux Documentation Project where is a decent explanation of how file permissions work in Linux.
add a comment |
up vote
2
down vote
up vote
2
down vote
If your questions is more about the 666 part than the chmod part, I would refer you to The Linux Documentation Project where is a decent explanation of how file permissions work in Linux.
If your questions is more about the 666 part than the chmod part, I would refer you to The Linux Documentation Project where is a decent explanation of how file permissions work in Linux.
answered Jun 10 '11 at 19:52
Kirk
2,1191219
2,1191219
add a comment |
add a comment |
up vote
0
down vote
chmod
chmod
is change mode. It's application is changing permissions of files and it's for Unix.
Alternatively, There's utlity called attrib
which does the same and it's for Windows.
The 666
is an octal representation of 438
decimal.
Explanation
Syntax: [user][group][other]
Permission:
User:
(1) Can execute
(2) Can write
(4) Can read
Group:
(1) Can execute
(2) Can write
(4) Can read
Other:
(1) Can execute
(2) Can execute
(4) Can read
Join: [6][6][6]
/ |
User Group Other
Add permission numbers then place them on each box.
Mixing permission will add the permission properties together.
Example
# (Read, Write, Execute) permission to all groups
chmod 777 sample.dat
That said, This permission bit is for allowing
Read, Write
permission of file for all groups.
add a comment |
up vote
0
down vote
chmod
chmod
is change mode. It's application is changing permissions of files and it's for Unix.
Alternatively, There's utlity called attrib
which does the same and it's for Windows.
The 666
is an octal representation of 438
decimal.
Explanation
Syntax: [user][group][other]
Permission:
User:
(1) Can execute
(2) Can write
(4) Can read
Group:
(1) Can execute
(2) Can write
(4) Can read
Other:
(1) Can execute
(2) Can execute
(4) Can read
Join: [6][6][6]
/ |
User Group Other
Add permission numbers then place them on each box.
Mixing permission will add the permission properties together.
Example
# (Read, Write, Execute) permission to all groups
chmod 777 sample.dat
That said, This permission bit is for allowing
Read, Write
permission of file for all groups.
add a comment |
up vote
0
down vote
up vote
0
down vote
chmod
chmod
is change mode. It's application is changing permissions of files and it's for Unix.
Alternatively, There's utlity called attrib
which does the same and it's for Windows.
The 666
is an octal representation of 438
decimal.
Explanation
Syntax: [user][group][other]
Permission:
User:
(1) Can execute
(2) Can write
(4) Can read
Group:
(1) Can execute
(2) Can write
(4) Can read
Other:
(1) Can execute
(2) Can execute
(4) Can read
Join: [6][6][6]
/ |
User Group Other
Add permission numbers then place them on each box.
Mixing permission will add the permission properties together.
Example
# (Read, Write, Execute) permission to all groups
chmod 777 sample.dat
That said, This permission bit is for allowing
Read, Write
permission of file for all groups.
chmod
chmod
is change mode. It's application is changing permissions of files and it's for Unix.
Alternatively, There's utlity called attrib
which does the same and it's for Windows.
The 666
is an octal representation of 438
decimal.
Explanation
Syntax: [user][group][other]
Permission:
User:
(1) Can execute
(2) Can write
(4) Can read
Group:
(1) Can execute
(2) Can write
(4) Can read
Other:
(1) Can execute
(2) Can execute
(4) Can read
Join: [6][6][6]
/ |
User Group Other
Add permission numbers then place them on each box.
Mixing permission will add the permission properties together.
Example
# (Read, Write, Execute) permission to all groups
chmod 777 sample.dat
That said, This permission bit is for allowing
Read, Write
permission of file for all groups.
edited Oct 21 at 11:34
answered Oct 21 at 10:58
sbproxpcol
11
11
add a comment |
add a comment |
protected by Ramhound Dec 1 at 17:26
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
25
aka, the Satan command.
– Moab
Jun 10 '11 at 21:29
6
If that bothers you (or if you can't be bothered to remember those numbers) you can also write it as
chmod a=rw
.– starblue
Jun 11 '11 at 6:48