Home | Site Map | Cisco How ToNet How To | Wireless |Search | Forums | Services | Donations | Careers | About Us | Contact Us|

What does Chmod do

Network Sharing , TCP/IP, Internet, Wireless, Exchange, IIS, ISA and Print

What does Chmod do

Postby guest » Mon Feb 07, 2011 1:11 pm

The chmod command (abbreviated from change mode) is a Unix and Linux command that lets a programmer tell the system how much (or little) access it should permit to a file. It changes the file system modes of files and directories. The modes include permissions and special modes.

chmod a+r file read is added for all
chmod a-x file execute permission is removed for all
chmod a+rw file change the permissions of the file file to read and write for all.
chmod +rwx file On some UNIX platforms such as BSD, this will restore the permission of the file file to default: -rwxr-xr-x.
chmod u=rw,go= file read and write is set for the owner, all permissions are cleared for the group and others
chmod -R u+w,go-w docs change the permissions of the directory docs and all its contents to add write access for the user, and deny write access for everybody else.
chmod file removes all privileges for all
chmod 777 file change the permissions of the file file to read, write, and execute for all.
chmod 664 file sets read and write and no execution access for the owner and group, and read, no write, no execute for all others.
chmod 0755 file equivalent to u=rwx (4+2+1),go=rx (4+1 & 4+1). The 0 specifies no special modes.
chmod 4755 file the 4 specifies set user ID and the rest is equivalent to u=rwx (4+2+1),go=rx (4+1 & 4+1).
chmod -R u+rwX,g-rwx,o-rwx directory set a directory tree to rwx for owner directories, rw for owner files, --- for group and others.
chmod -R a-x+X directory remove the execute permission on all files in a directory tree, while allowing for directory browsing.
Tablet and Smartphone Setup Guide

Troubleshooting Vista Wireless
Posts: 10191
Joined: Mon Nov 27, 2006 1:10 pm

Return to Networking

Your Ad Here

Who is online

Users browsing this forum: No registered users and 8 guests