[illumos] [OpenIndiana Distribution - Bug #2884] (Closed) rm: <file> not removed: Permission denied

illumos project devnull at illumos.org
Tue Jan 28 14:12:05 UTC 2014


Issue #2884 has been updated by Ken Mays.

Status changed from New to Closed


----------------------------------------
Bug #2884: rm: <file> not removed: Permission denied
https://www.illumos.org/issues/2884

Author: Richard PALO
Status: Closed
Priority: Normal
Assignee: OI illumos
Category: OS/Net (Kernel and Userland)
Target version: 
Difficulty: Medium
Tags: rm


Not sure if this could be related to https://www.illumos.org/issues/2644  but I'm finding a file that, to me, is undeleteable.  

Because the file could not be opened RW any more, a copie was created locally and I wanted to delete the file in order to replace with the newly, updated copie.

Can't delete.
changed to be the owner, no deal.

<pre>
/export/dossiers$ ls -laphv t.ods
-rwxrwxrwx   1 richard  staff       524K juin 15 15:18 t.ods
     0:owner@:read_data/write_data/append_data/read_xattr/write_xattr/execute
         /read_attributes/write_attributes/read_acl/write_acl/write_owner
         /synchronize:allow
     1:group@:read_data/write_data/append_data/read_xattr/execute
         /read_attributes/read_acl/synchronize:allow
     2:everyone@:read_data/write_data/append_data/read_xattr/execute
         /read_attributes/read_acl/synchronize:allow
/export/dossiers$
/export/dossiers$ ls -laphdv ../dossiers
drwxrwxrwx+  5 root     root           6 juin 15 15:22 ../dossiers/
     0:everyone@:list_directory/read_data/add_file/write_data
         /add_subdirectory/append_data/read_xattr/write_xattr/execute
         /delete_child/read_attributes/write_attributes/delete/read_acl
         /write_acl/write_owner/synchronize:file_inherit/dir_inherit:allow
/export/dossiers$ 
/export/dossiers$ touch s.test
/export/dossiers$ ls -laphv s.test 
-rwxrwxrwx+  1 richard  staff          0 juin 15 15:51 s.test
     0:everyone@:read_data/write_data/append_data/read_xattr/write_xattr
         /execute/delete_child/read_attributes/write_attributes/delete
         /read_acl/write_acl/write_owner/synchronize:inherited:allow
richard at smicro:/export/dossiers$ rm s.test 
</pre>

initially this file was in a subdirectory a couple of levels more deep.  I could 'mv t.ods ..'
to the top of the zfs fileset rpool/export/dossiers.
but if I try mv to, for example, my home directory:
<pre>
/export/dossiers$ mv t.ods ~/
mv: cannot unlink t.ods: Permission denied
</pre>

this dataset has readonly=false, aclmode & aclinherit=passthrough

how to delete this file, and what might be the cause?  

even tried to change to the same as the touched file but no dice:
<pre>
/export/dossiers$ /usr/bin/chmod A=owner@:read_data/write_data/append_data/read_xattr/write_xattr/execute/delete_child/read_attributes/write_attributes/delete/read_acl/write_acl/write_owner/synchronize:inherited:allow t.ods
/export/dossiers$ ls -v t.ods
-rwx------+  1 richard  staff     536387 juin 15 15:18 t.ods
     0:owner@:read_data/write_data/append_data/read_xattr/write_xattr/execute
         /delete_child/read_attributes/write_attributes/delete/read_acl
         /write_acl/write_owner/synchronize:inherited:allow
/export/dossiers$ rm t.ods
rm: t.ods not removed: Permission denied
</pre>


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://www.illumos.org/my/account



More information about the illumos-team mailing list