?
Solved

For linux command ls -l it shows the following

Posted on 2005-03-31
3
Medium Priority
?
470 Views
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)
0
Comment
Question by:cutie_smily
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 16

Expert Comment

by:manav_mathur
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)

Manav
0
 

Author Comment

by:cutie_smily
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)
thanks
0
 
LVL 16

Accepted Solution

by:
manav_mathur earned 150 total points
ID: 13672265
-rw-r--r--

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)

Manav
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
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.
Suggested Courses
Course of the Month12 days, 5 hours left to enroll

752 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