For When You Can't Have The Real Thing
[ start | index | login ]
start > Linux > chown operation not permitted

chown operation not permitted

Created by dave. Last edited by dave, 14 years and 280 days ago. Viewed 10,572 times. #1
[edit] [rdf]
labels
attachments

Problem

chown attempt as root results in "Operation not permitted" error

# whoami 
root
# ls -l file
-r--r----- 1 user  group 1024 2009-05-05 11:12 file
# chown user2 file
chown: changing ownership of `file': Operation not permitted

Solution

Extended attribute 'i' is set:

# lsattr file
----i-------------- file
# chattr -i file
# chown user2 file
# ls -l file
-r--r----- 1 user2 group 1024 2009-05-05 11:12 file
no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt