LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - News > Syndicated Linux News
User Name
Password
Syndicated Linux News This forum is for the discussion of Syndicated Linux News stories.

Notices


Reply
  Search this Thread
Old 12-03-2012, 08:50 AM   #1
LXer
LXer NewsBot
 
Registered: Dec 2005
Posts: 128,283

Rep: Reputation: 118Reputation: 118
LXer: Understanding File Permissions: What Does “Chmod 777? Means?


Published at LXer:

If you are a Linux user, or a webmaster managing your own website (which is probably hosted on a Linux server), you will surely come across a situation when you try to upload a file or modify a document and receive the error “You do not have the permissions to upload file to the folder“. And after some googling, the solution is often as easy as setting the file permission to “775? or “777?. So what exactly does “777? mean? And why must it be ’7?, and not ’8? or ’9??

Read More...
 
Old 12-03-2012, 08:40 PM   #2
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by LXer View Post
Published at LXer:

If you are a Linux user, or a webmaster managing your own website (which is probably hosted on a Linux server), you will surely come across a situation when you try to upload a file or modify a document and receive the error “You do not have the permissions to upload file to the folder“. And after some googling, the solution is often as easy as setting the file permission to “775? or “777?. So what exactly does “777? mean? And why must it be ’7?, and not ’8? or ’9??

Read More...
Why '7' ? ... because the numbers are base-8 or octal and thus have values 0-7.
Numeric permissions are in fact a four-digit octal number.

The command man chmod reveals the following:
Code:
       A numeric mode is from one to four octal digits (0-7), derived by adding up  the
       bits  with  values 4, 2, and 1.  Omitted digits are assumed to be leading zeros.
       The first digit selects the set user ID (4) and set group ID (2) and  restricted
       deletion or sticky (1) attributes.  The second digit selects permissions for the
       user who owns the file: read (4), write (2), and execute (1); the third  selects
       permissions  for  other users in the file's group, with the same values; and the
       fourth for other users not in the file's group, with the same values.
For some time, most of use avoid the numerics and rely on the symbolics (r)ead, (w)rite,
e(x)ecute. This is also explained in the man page.

I hope this helps,
~~~ *<;-}( )// Dan
 
Old 12-04-2012, 02:58 AM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Here's a good guide to file permissions:
http://www.zzee.com/solutions/linux-permissions.shtml
 
Old 12-04-2012, 05:47 AM   #4
bala.linuxtech
Member
 
Registered: Nov 2012
Location: Bangalore
Distribution: RHEL and Centos
Posts: 86

Rep: Reputation: Disabled
Cool

Quote:
Originally Posted by H_TeXMeX_H View Post
Here's a good guide to file permissions:
http://www.zzee.com/solutions/linux-permissions.shtml
yes.,

000 -- 0

001 -- 1

010 -- 2

011 -- 3

100 -- 4

101 -- 5

110 -- 6

111 -- 7
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
regarding : file not accessible even with chmod 777 linux2010 Linux - Newbie 6 02-02-2010 05:35 PM
apache2 + chmod 777 pipe permissions = ? mpapet Linux - Security 3 06-27-2006 07:40 PM
LXer: Understanding Linux File Permissions LXer Syndicated Linux News 0 04-05-2006 07:21 PM
trouble with permissions on mounted fs -- chmod 777 => rwxr-xr-x FirebirdV0273 Linux - General 5 03-21-2006 08:19 AM
Trouble understanding chmod & group permissions gen-ik Linux - Newbie 3 07-19-2004 01:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - News > Syndicated Linux News

All times are GMT -5. The time now is 10:28 AM.

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