For linux command ls -l it shows the following



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)
cutie_smilyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

manav_mathurCommented:
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
cutie_smilyAuthor Commented:
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
manav_mathurCommented:
-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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.