Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


For linux command ls -l it shows the following

Posted on 2005-03-31
Medium Priority
Last Modified: 2010-04-20

For linux command ls -l it shows the following
$>ls -l
-rw-r--r--  1 build users   1318 Mar 26 13:07 wineselected.jsp
Can anyone tell me what is -rw-r--r-- (what is this permission mean)
Question by:cutie_smily
  • 2
LVL 16

Expert Comment

ID: 13672015
USER has read and write permission but not execute(2nd,3rd 4th chars)
GROUP has only read permission (5th 6th 7th)
OTHERS have read permission (8th 9th 10th)


Author Comment

ID: 13672165
this file is created by someone a my office and now i was able to delete characters from file but could not write anything why is that ..and what do you mean (2nd,3rd 4th chars)
LVL 16

Accepted Solution

manav_mathur earned 150 total points
ID: 13672265

the first - is a special permission (usually 'd' for directories, 'b' for block special files etc...)
the next
rw- denote owner permission. i.e the owner has read/write but not execute permission (notice the last '-' indicating absence of execute)
next r--
indiate group permissions. This is for those whose primary group is the same as the primary grou of the owner.
As you can see, they have only read permission. no write, no execute.

next r-- indicate permissions for othr users who do not fall into the above category. They again have only read permissions.

Although if you can delete characters and save a file, you can certainly write to it (as far as permissions are concerened)


Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension . This reminded me of questions that come up here at EE along the lines of, "How can I tell the type of file from its cont…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month13 days, 19 hours left to enroll

581 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