Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

linux ACL question

Posted on 2011-03-09
7
Medium Priority
?
332 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
[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
  • 3
  • 3
7 Comments
 
LVL 31

Accepted Solution

by:
farzanj earned 1500 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 1500 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
DFW AZURE MEETUP TONIGHT FRI 6PM

We will be discussing what Azure Stack is, how does it fit into the suit of offerings that Azure has currently, and where can it fit into your organizations technology stack. We will also be discussing limitations of the platform while covering various applicable scenarios.

 

Author Comment

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

Assisted Solution

by:cycotr0n
cycotr0n earned 500 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 1500 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

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). …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

688 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