Solved

linux ACL question

Posted on 2011-03-09
7
325 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
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 

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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
linux SFTP 8 63
Latest thoughts on C# utilizing Mono on Linux vs .NET on Windows? 5 66
LogmeIn using Linux Ubuntu 16.04 6 64
Samba 4, Users Permission, 5 49
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

830 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