LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   setfacl operation not permitted (https://www.linuxquestions.org/questions/linux-security-4/setfacl-operation-not-permitted-551895/)

oscarmv 05-07-2007 04:29 AM

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?

jschiwal 05-07-2007 06:19 AM

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.


All times are GMT -5. The time now is 08:44 PM.