Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • Owner root gets "Operation not permitted" on chmod and setfacl

    Posted on

    I can't figure this riddle out. su as "root" - .htaccess is owned by "root". But can neither chmod not setfacl. File is read-only to me (can't even rename it). I can create an .htaccess2 file in that same directory and manipulate it freely.

    [root@mgs-11 BadgleyMischka]# ls -la --group-directories-first --lcontext .htaccess
    -rw-r--r--. 1 unconfined_u:object_r:httpd_sys_content_t:s0 root root 219 Mar  1  2013 .htaccess
    
    [root@mgs-11 BadgleyMischka]# getfacl .htaccess
    # file: .htaccess
    # owner: root
    # group: root
    user::rw-
    group::r--
    other::r--
    
    [root@mgs-11 BadgleyMischka]# chmod 777 .htaccess
    chmod: changing permissions of `.htaccess': Operation not permitted
    
    [root@mgs-11 BadgleyMischka]# setfacl  -m g:Site_Developers:rwx .htaccess
    setfacl: .htaccess: Operation not permitted
    

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat