LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

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

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


Hello!

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

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

Code:
# 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:
Code:
/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
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
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
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 1,434

Rep: Reputation: 599Reputation: 599Reputation: 599Reputation: 599Reputation: 599Reputation: 599
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.
Code:
# 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
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,269

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
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
OR
2. add to xattrs eg
Code:
tune2fs /dev/sda5 -o acl
 
  


Reply

Tags
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 03:05 PM.

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