Solved

chmod -R 775 luton

Posted on 2011-02-18
3
642 Views
Last Modified: 2012-06-21
what will this particular chmod command do?
0
Comment
Question by:aashee
3 Comments
 
LVL 11

Expert Comment

by:rowansmith
ID: 34931191
It will give the file called Luton

Read/Write/Execute Permissions for the owner of the file (First 7)
Read/Write/Execute Permissions for members of the group that owns the file (second 7)
and Read and Execute permissions for everyone else (last 5)
0
 
LVL 12

Expert Comment

by:upanwar
ID: 34931401
It will give the permission suggested by the rowansmith to a file. But if the Luton is a directory then It will give the same permissions to Luton as well as the files and subdirectories which Luton contains.

Read/Write/Execute Permissions for the owner of the file (First 7)
Read/Write/Execute Permissions for members of the group that owns the file (second 7)
and Read and Execute permissions for everyone else (last 5)

4=Read
2=Write
1=Execute
0
 
LVL 40

Accepted Solution

by:
omarfarid earned 500 total points
ID: 34932589
the chmod command changes file / directory permissions. The -R is normally used to set the permissions of sub directories and files within them.

The number 775 is octal presentation of permissions for owner (left most 7), group (middle 7) and others (right most 5)

an octal digit (3 bits) represents the read (left most bit), write (middle bit) and execute / run (right most bit) permissions.

If the bit is set to 1 then the permissions is granted. In your example 775 means:

owner read,write,execute group read,write,execute others read, execute
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Ubuntu Apache Webserver - File Permissions 5 74
Linux FTP Error 5 45
Unix Help with:  mailx -s 17 58
Fuzzy search functionality DB2 UDB 3 33
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question