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, 3 years and 332 days ago. Viewed 2,210 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

Virtual Dave Megaplex:

Internet Explorer 6 Users >>Click Here

(read this note about local search)

Logged in Users: (0)
… and 2 Guests.


Editing: snipsnap-help, Image Macro

Installed 2 years and 128 days ago
Powered By >>SnipSnap Version 1.0b1-uttoxeter

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