LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-07-2007, 04:29 AM   #1
oscarmv
LQ Newbie
 
Registered: Apr 2006
Posts: 5

Rep: Reputation: 0
setfacl operation not permitted


I tried to use setfacl:

Code:
setfacl -m u:oscarmv:wr testfile
but I got

Code:
setfacl: testfile: Operation not supported
I'm doing a test on a floppy drive for this. I tried

Code:
mount -o noauto,owner,acl /dev/fd0
but I got

Code:
mount: wrong fs type, bad option, bad superblock on /dev/fd0,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
Before that I tried changing my fstab adding the acl option to my / partition but I got something along the lines of "acl bad option" and had problems booting (I had to use an old boot disk I had saved for situations like this).

I also tried adding the acl option to my floppy line in /etc/fstab, it looked something like this:

Code:
/dev/fd0         /mnt/floppy      auto       noauto,owner,acl  0   0
I got the same error as I did with
Code:
mount -o noauto,owner,acl /dev/fd0
I think it might have something with my kernel. I'm using slackware, kernel version 2.4.33.3

I don't know how to check it for acl support or even how to re-compile or patch the kernel to make acl usable.

Any suggestions?
 
Old 05-07-2007, 06:19 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The filesystem may need to to support ACL. If you are trying to use it with an msdos floppy, that won't work.

You could grep your kernel's .config file for ACL to see if it has support.

I have a couple ext3 partitions that use the acl,user_xattr attributes. For xattr, I think that an option may need to be added when creating the filesystem
Code:
from dumpe2fs:
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super large_file
On my 2.6 kernel system, these items are in the kernel config
Code:
CONFIG_EXT2_FS_POSIX_ACL=y
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_EXT3_FS_NFS4ACL=y
CONFIG_REISERFS_FS_POSIX_ACL=y
CONFIG_JFS_POSIX_ACL=y
CONFIG_FS_POSIX_ACL=y
CONFIG_FS_NFS4ACL=y
CONFIG_XFS_POSIX_ACL=y
CONFIG_TMPFS_POSIX_ACL=y
CONFIG_JFFS2_FS_POSIX_ACL=y
CONFIG_NFS_V3_ACL=y
CONFIG_NFSD_V2_ACL=y
CONFIG_NFSD_V3_ACL=y
CONFIG_NFS_ACL_SUPPORT=m
CONFIG_GENERIC_ACL=y
That may give you an idea which filesystems you can use as well.
 
  


Reply

Tags
acl, fstab, option, setfacl


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
setfacl: test: Operation not supported raxxal Mandriva 6 10-25-2012 05:09 AM
Operation not permitted jakkals Linux - General 3 09-26-2005 07:30 PM
su - operation not permitted jrtayloriv Linux - Newbie 2 06-09-2005 09:27 PM
operation not permitted jamaso Slackware 2 05-08-2004 05:55 AM
Operation not permitted FrozenShadow23 Linux - Newbie 6 10-05-2003 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:11 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration