sign in
|
add example
|
see also:
chown
,
execve
,
fchmodat
,
open
,
stat
,
path_resolution
chmod
change permissions of a file
[
package
|
man 1
, 2
|
usage
|
info
|
wiki
|
homepage
]
examples
configs
questions
links
[
new example
]
copy
227
111
chmod 777 myfile.txt
Set read write and execute permissions on myfile.txt
chmod
details
|
copy
87
21
chmod +r,-x,ug+w myfile.txt
Add read permission on all, remove execute on all, and set user/group to read write for file myfile.txt
chmod
details
|
copy
71
21
chmod 0664 myfile.txt
Change the permissions to user(6):read write, group(6):read write, other(4): read on myfile.txt
chmod
details
|
copy
70
15
chmod o=r myfile.txt
Set the permissions for others to read only on myfile.txt
chmod
details
|
copy
37
6
chmod og=rw myfile.txt
Change the group and others permissions to read write on myfile.txt
chmod
details
|
copy
59
11
chmod ug+rw myfile.txt
Adds the permission read write to user/group on myfile.txt
chmod
details
|
copy
62
18
chmod 4755 myfile.txt
Set user id = 4, user to read write execute, and group/other to read execute
chmod
details
|
copy
47
10
chmod ug=rx myfile.txt
Set user and group permissions to read execute on myfile.txt.
chmod
details
|
copy
40
7
chmod a+rwx myfile.txt
Adds read write and execute premissions to all users/groups/others on myfile.txt
chmod
details
|
copy
47
9
chmod g= myfile.txt
Set group permissions to nothing on myfile.txt
chmod
details
|
copy
31
5
chmod a-rwx myfile.txt
Removes all permissions on myfile.txt
chmod
details
|
copy
11
0
chmod -R 700 ~/.ssh
Make the .ssh directory only accessible to $USER
chmod
2 years, 4 months ago
john
0 |
details
|
copy
2
0
chmod +x script.sh
Make Script.sh executable
chmod
2 years, 4 months ago
john
0 |
details
|
[
new config
]
[
ask question
]
chmod(1) FreeBSD Manual
GNU coreutils
GNU "Setting Permissions" manual
Solaris 9 chmod man page
Mac OS X chmod man page access control lists
CHMOD-Win 3.0
What CHMOD? File Permissions Calculator
Beginners tutorial with on-line "live" example
chmod examples