Bug 770568 - "setfacl -m" doesn't work in RHEL6.2
Summary: "setfacl -m" doesn't work in RHEL6.2
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: acl
Version: 6.2
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Kamil Dudka
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-27 14:14 UTC by hlv
Modified: 2013-07-31 23:09 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-11 12:29:35 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description hlv 2011-12-27 14:14:58 UTC
Description of problem:
"setfacl -m" command doesn't work in RHEL6.2

Version-Release number of selected component (if applicable):
RHEL6 update2

How reproducible:


Steps to Reproduce:
1. touch file ; mkdir dir
2. setfacl -m u:username:rwx file ; setfacl -m u:username:rwx dir
3. setfacl -m g:groupname:rwx file ; setfacl -m g:groupname:rwx dir
  
Actual results:

setfacl: Option -m: Invalid argument near character 3

Expected results:
set the acl to the file or the directory sucessfully

Additional info:

Comment 2 Kamil Dudka 2011-12-27 14:46:50 UTC
This works fine.  I am getting the expected results.

$ rpm -q acl libacl
acl-2.2.49-6.el6.x86_64
libacl-2.2.49-6.el6.x86_64

$ touch file ; mkdir dir
$ setfacl -m u:kdudka:rwx file ; setfacl -m u:kdudka:rwx dir
$ setfacl -m g:kdudka:rwx file ; setfacl -m g:kdudka:rwx dir
$ getfacl file dir
# file: file
# owner: kdudka
# group: kdudka
user::rw-
user:kdudka:rwx
group::rw-
group:kdudka:rwx
mask::rwx
other::r--

# file: dir
# owner: kdudka
# group: kdudka
user::rwx
user:kdudka:rwx
group::rwx
group:kdudka:rwx
mask::rwx
other::r-x

Comment 3 Kamil Dudka 2012-01-11 12:29:35 UTC
stefacl -m works as documented.  If not, please provide more details.


Note You need to log in before you can comment on or make changes to this bug.