Solved

linux ACL question

Posted on 2011-03-09
7
317 Views
Last Modified: 2012-05-11
I have created a file called lab2 and gave access to userID mark, but after su to mark, I  don't have permission to write contents on lab2 file. What am I missing here?

 getfacl lab2
# file: lab2
# owner: ghuru
# group: ghuru
user::rw-
user:mark:rw-
group::rw-
mask::rw-
other::r--
0
Comment
Question by:mokkan
  • 3
  • 3
7 Comments
 
LVL 31

Accepted Solution

by:
farzanj earned 375 total points
ID: 35089985
Show me

ls -l lab2
0
 

Author Comment

by:mokkan
ID: 35090034
[root@localhost ghuru]# ls  -l lab2
-rw-rw-r--+ 2 ghuru ghuru 0 Mar  9 19:03 lab2


Is this file system should mount with ACL option?
0
 
LVL 31

Assisted Solution

by:farzanj
farzanj earned 375 total points
ID: 35090042
Yes, in your fstab, is it mouted with acl in the options?

If not try doing this

mount -o remount,rw,acl -t ext3 /dev/... /mount/pt

Also for now, try doing chmod 777 lab2, just to make sure
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

Author Comment

by:mokkan
ID: 35090047
ah ok, thank you. Let me try.
0
 
LVL 1

Assisted Solution

by:cycotr0n
cycotr0n earned 125 total points
ID: 35109701
Just an FYI - Sometimes you don't need the acl option in fstab if it is specified in the filesystem's default mount options.  You can check with dumpe2fs:

# dumpe2fs /dev/sda1 | grep mount
dumpe2fs 1.39 (29-May-2006)
Last mounted on:          <not available>
Default mount options:    user_xattr acl
Last mount time:          Thu Feb  3 09:21:52 2011
Maximum mount count:      -1
0
 
LVL 31

Assisted Solution

by:farzanj
farzanj earned 375 total points
ID: 35109766
Thanks for the info.

So is your issue resolved?  Need any more help?
0
 

Author Closing Comment

by:mokkan
ID: 35241507
Thank you all of you. It worked now.,
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Suggested Solutions

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

707 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now