View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-26-2013, 02:49 AM   #1
Registered: Dec 2006
Location: Russia,52
Posts: 107

Rep: Reputation: 6
Question When ACL is actual without fstab


On my linux I created additional logical volume "data", add corresponding line to fstab like

/dev/mapper/VGdata-LVdata /data                ext4    defaults        1 2
But after it I can't set ACL attributes to it using setfacl:

# setfacl -m d:u::rwx /data/
setfacl: /data/: Operation not supported
I know that it's requered to add acl parameter to mount options.

But in my fstab I have additional mount points:
/dev/mapper/VGhome-LVhome /home                   ext4    defaults        1 2
/dev/mapper/VGopt-LVopt /opt                    ext4    defaults        1 2
/dev/mapper/VGvar-LVvar /var                    ext4    defaults        1 2
and it works without any acl parameter! Why?

Also I installed linux to additional PC and created /data during installation, and it cat use setfacl without acl parameter in fstab! Why additional mount points requeres acl in fstab?
Old 03-26-2013, 04:56 AM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 657Reputation: 657Reputation: 657Reputation: 657Reputation: 657Reputation: 657
They all should require the acl mount option. Add it. The only explanation I can think of is that you tried a setfacl command that was equivalent to a chmod command because only the three permissions u, g, o were affected. I don't believe any distro uses a mount command that includes acl as a default option.

Last edited by jschiwal; 03-26-2013 at 04:57 AM.
Old 03-26-2013, 10:27 AM   #3
Senior Member
Registered: Aug 2009
Distribution: CentOS
Posts: 2,092

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
The super block also has a field for default mount options, which can be set when the filesystem is built or by tune2fs. If "acl" is set there, it will be applied unless specifically overridden at mount time.
# tune2fs -l /dev/sda6 | grep options
Default mount options:    user_xattr acl
# tune2fs -l /dev/sda5 | grep options
Default mount options:    (none)
1 members found this post helpful.
Old 03-27-2013, 11:43 PM   #4
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,623

Rep: Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149
You don't mention your distro, but there is a note in the RHEL5 docs saying that during Installation, disks (partitions) defined at that time will ALSO have acl turned on; see tune2fs as above.
Manually added/created partitions must have acls enabled manually, either

1. amend fstab
2. add to xattrs eg
tune2fs /dev/sda5 -o acl


acl, fstab

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring ACL on CentOS - mount/fstab Fed Red Hat 5 08-07-2012 05:31 AM
problem with samba and ACL ,ACL does not work as I want golden_boy615 Linux - Server 1 12-18-2011 09:18 AM
Why does the ACL of a file created under a directory differ from the default ACL sctebnt Linux - Security 5 12-02-2011 08:13 AM
iptables acl versus cisco acl id_viorel Linux - Security 1 04-09-2008 05:00 AM

All times are GMT -5. The time now is 11:18 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration