Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-18-2004, 05:42 AM   #1
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Rep: Reputation: 30

Tried man chmod but it doesn't show about the chmod 777?

Saw quite a numbers of different numbers behind chmod, what exactly are the differences?
Old 06-18-2004, 06:08 AM   #2
Registered: Jun 2002
Location: Belgium
Distribution: Sidux
Posts: 313

Rep: Reputation: 30
File permissions can be set for read, write and execute.
Each attribute has a value
that has to be set for the user, the group and others.

The first digit behind the chmod command refers to the user, the second to the group and the third to everyone else.
A simple math exercice can tell you what you wanna know

chmod 400 makes the file readable, not writeable and not executable for the user, nobody else can even read it.
chmod 644 gives read and write permissions for the user but no write permissions for the group or others
chmod 777 gives everyone read/write and execute permissions.
Old 06-18-2004, 06:11 AM   #3
Registered: Jan 2004
Posts: 53

Rep: Reputation: 15
chmod 777 gives read, write and execute status to the owner, group members and the rest of the world on a file. It's unlikely that you want this.

The numbers after chmod are octal numbers that relate to three binay bits. So binary 110 gives octal number 6 and means read, write but not execute permissions.

There are more explanations here:
Old 06-18-2004, 06:30 AM   #4
Registered: Jun 2004
Location: aussie in germany
Distribution: mandrake 10 powerpack
Posts: 104

Rep: Reputation: 15
this page has a pretty easy to understand explenation of things

about half way down the page, and then it goes on to talk about the numbers and what they mean


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use Chmod Centinul Linux - Newbie 8 06-30-2005 10:44 AM
What can we do if we type chmod ugo-x /bin/chmod ?????? bunny123 Linux - Software 3 02-01-2005 08:53 PM
CHMOD in shell : chmod 777 /usr/ <---is that right? cpanelskindepot Programming 5 07-16-2004 05:37 AM
Chmod gibbylinks Linux - Newbie 1 10-23-2003 11:17 AM
chmod u+s csDraco_ Slackware 6 04-22-2003 08:44 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:37 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration