chown: changing ownership of ... Operation not permitted

Gregory Piñero gregpinero at gmail.com
Sat Aug 19 20:14:39 UTC 2006


Here's another interesting fact or thing that doesn't work.  rm calls
this fie "weird"!

See:

chiefinnovator at MAIN1:~$ sudo rm -v /etc/matplotlibrc
rm: remove write-protected weird file `/etc/matplotlibrc'? y
rm: cannot remove `/etc/matplotlibrc': Operation not permitted


On 8/19/06, Gregory Piñero <gregpinero at gmail.com> wrote:
> Hi guys,
>
> I'm a little stuck here:
>
> Ultimately I want to run this:
> chiefinnovator at MAIN1:~$ python
> /home/chiefinnovator/stock_market_prediction/create_data_file.py
> Traceback (most recent call last):
>   File "/home/chiefinnovator/stock_market_prediction/create_data_file.py",
> line10, in ?
>     from matplotlib.finance import quotes_historical_yahoo
>   File "/usr/lib/python2.4/site-packages/matplotlib/__init__.py", line
> 733, in ?    rcParams = rc_params()
>   File "/usr/lib/python2.4/site-packages/matplotlib/__init__.py", line
> 689, in rc_params
>     for line in file(fname):
> IOError: [Errno 13] Permission denied: '/etc/matplotlibrc'
>
> but as you can see I get a permission denied error.
>
> So I figure I should run this:
> chiefinnovator at MAIN1:~$ sudo chown -hR chiefinnovator "/etc/matplotlibrc"
> chown: changing ownership of `/etc/matplotlibrc': Operation not permitted
>
> But a get this operation not permitted error.
>
> I also get the same error when running:
> sudo chown chiefinnovator "/etc/matplotlibrc"
>
> And additionally if I use nautilus as root it still won't let me
> change ownership or permissions on this (file?)
>
> Thanks,
>
> --
> Gregory Piñero
> Chief Innovation Officer
> Blended Technologies
> (www.blendedtechnologies.com)
>


-- 
Gregory Piñero
Chief Innovation Officer
Blended Technologies
(www.blendedtechnologies.com)




More information about the ubuntu-users mailing list