Linux File Permissions

Posted on 2012-09-12
Medium Priority
Last Modified: 2012-09-17
I have a user that is a part of a group called "bcm" and user "brendan" is inside of that group. It is also that users primary group.

I have a list of files that list group bcm as owner, and have write access, yet when I open these files, they're read only. What am I doing wrong?

ls -al output from the folder with the files:
-rwxrwxr-x. 1 jshocki bcm    7023 Jul 26 07:15 temp2.log
-rwxrwxr-x. 1 jshocki bcm   29268 Jul 23 12:02 temp3.log
-rwxrwxr-x. 1 jshocki bcm      21 Jul 26 02:35 temp.log
Question by:brendan-amex
LVL 68

Accepted Solution

woolmilkporc earned 668 total points
ID: 38392762
The dot at the end of the permissions indicates that the files have an extended security context, as in SELinux.

Use "getfattr" to display and "setfattr" to set/remove these attributes.


General info is here:

LVL 14

Assisted Solution

ThomasMcA2 earned 668 total points
ID: 38392764

Open in new window

to confirm which ID you are logged in with. Then type

Open in new window

to list which groups the current ID belongs to. Is bcm in that list?

Author Comment

ID: 38392883
Yes, whoami returns brendan and groups shows bcm and nfsnobody groups.
LVL 68

Expert Comment

ID: 38393027
Didn't you notice my comment above?

Please note that you must issue getfattr/setfattr with root privileges, acquired e. g. by means of "sudo".
LVL 27

Assisted Solution

skullnobrains earned 664 total points
ID: 38401539
most likely, your file has an immutable flag or something of the sort.

it may also be opened and locked for writing.

and obviously woodmilkporc's suggestion to check for acls should be answered as well.

depending on how you determine that the file is "read only" this may or may not be the case. most graphic editors will state that the file is read-only regardless of the case.

please give the required information, and possibly try "echo stuff >> temp.log" and let us know the result

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

Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month14 days, 13 hours left to enroll

840 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