I have a file that I can''t delete, change permissions or owner. ls -v does not show any acl''s on the file not even those for normal unix rw etc. permissions from ls -l show -rwx------ chmod gived an error of not owner for the owner !! and for root just says can''t change or not owner depending on the mode i am trying to set. ZFS properties fotr the file systems are all the defaults How do I change it ??
On Feb 10, 2012, at 9:12 AM, Simon Casady wrote:> I have a file that I can''t delete, change permissions or owner. ls -v > does not show any acl''s on the file not even those for normal unix rw > etc. > permissions from ls -l show -rwx------ > chmod gived an error of not owner for the owner !! > and for root just says can''t change or not owner depending on the mode > i am trying to set. > ZFS properties fotr the file systems are all the defaults > > How do I change it ??What OS are you running? For Solaris-derived OSes, make sure you''re not running gnu ls. -- richard -- DTrace Conference, April 3, 2012, http://wiki.smartos.org/display/DOC/dtrace.conf ZFS Performance and Training Richard.Elling at RichardElling.com +1-760-896-4422 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20120210/baf1de0f/attachment.html>
capcasady at gmail.com said:> I have a file that I can''t delete, change permissions or owner. ls -v does > not show any acl''s on the file not even those for normal unix rw etc. > permissions from ls -l show -rwx------ chmod gived an error of not owner for > the owner !! and for root just says can''t change or not owner depending on > the mode i am trying to set.In addition to Richard''s suggestion, a couple things come to mind: (1) Ability to delete a file (or rename it) depends on the permissions of the directory which contains it, not on the file itself. (2) If you''re doing the delete/chown on an NFS client, ownerships could be different than expected if UID mapping is broken (NFSv4 with a mismatched domain), or if remote root is being mapped to "nobody" on the NFS server. Similar issues could happen for a CIFS client. Regards, Marion