LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 01-13-2007, 02:21 PM   #1
trashbird1240
Member
 
Registered: Sep 2006
Location: Durham, NC
Distribution: Slackware, Ubuntu (yes, both)
Posts: 463

Rep: Reputation: 31
Cannot chown or chgrp or chanything


Howdy Forum,

I cannot change groups or ownership as root, whether su-ing or logged in as root.

I get "changing ownership:...operation not permitted"

I saw another post that indicated this is not permitted on FAT filesystems, however this is on files in my /home and /, which are reiserfs.

What's the deal here? (if you're going to RTFM, please tell me which FM to R -- thanks)

Thanks,
Joel
 
Old 01-13-2007, 03:31 PM   #2
NomadX
Member
 
Registered: Jul 2005
Location: Portland, OR
Distribution: Debian Testing
Posts: 78

Rep: Reputation: 15
Off the top of my head...

A few things that might be the problem:

The file is immutable (man chattr)
The filesystem is mounted read only (man fstab) ... tried adding umask=0000 or 0333?
The filesystem has been corrupted (man fsck)
The file is locked by some process (fuser -k /this/is/your/file)
The kernel has something akin to SELinux or capabilities enabled (You'd likely know if this was the case)
The file is mounted with NFS and you are the wrong root... (I do this all the time, lol)

Are you sure this is ReiserFS? NTFS, (v)fat and other legacy FS don't support these kind of file attributes. If nothing here solves your issue let's see an output of ls -la for the file in question, the output of mount, and output of whoami..

Good Luck,
NomadX
 
Old 01-13-2007, 03:31 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,854

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
can you prove your claims? if you can show us a copy of your terminal commands, and also an ls -l of the relevant file, and a stat of it too. it's possible to make a file immutable (chattr +i filename) where no one, not even root can change a file without first unsetting that bit.
 
Old 01-14-2007, 09:30 AM   #4
trashbird1240
Member
 
Registered: Sep 2006
Location: Durham, NC
Distribution: Slackware, Ubuntu (yes, both)
Posts: 463

Original Poster
Rep: Reputation: 31
Mr Kewpie, I'll cover your requests on Monday when I'm back in the office.

As of now, I can say (a few details I left out):

I have three hda partitions, one swap, two reiserfs (/ and /home) and one vfat (/windows) -- which is *not* a windows bootable partition, I just meant it to hold data for programs under Wine. Given this configuration, unfortunately none of the scenarios you listed, NomadX, will apply. For example, no NFS, I know the files are not in use (they are statistica data files and scripts used by Stata, not system files). On the other hand, would this happen if I only had one file in the directory tree open (e.g., in XEmacs)?

Also, this is not just one file, this is whole directories. For example, I wanted to change the group of my statistical data directory from "users" to "biostat" anticipating giving other people ssh to my computer. I got "operation not permitted."



I thought this was weird because I didn't get this error when I had slackware installed at home. I could do anything I wanted as root -- even simulate destroying the world. That's what I call a super-user.

Thanks,
Joel
 
Old 01-15-2007, 11:01 AM   #5
trashbird1240
Member
 
Registered: Sep 2006
Location: Durham, NC
Distribution: Slackware, Ubuntu (yes, both)
Posts: 463

Original Poster
Rep: Reputation: 31
It's a miracle! It worked: I did the regular command as root and it went through this time.

Thanks for your interest
Joel
 
  


Reply

Tags
chown


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using chown, chgrp, chmod on a vfat partition? Rodolfo Medina Linux - General 7 08-17-2005 08:17 AM
chmod ,chown ,chgrp------------ pal Linux - Newbie 1 02-27-2005 02:49 PM
chown, chgrp Help Icarus1701 Linux - Newbie 1 10-25-2004 06:42 PM
Help: Directories magically chgrp and chown by themselves! Blazer79 Mandriva 2 09-07-2004 11:52 AM
problems with chown and chgrp apax Linux - Software 6 11-03-2003 03:44 PM


All times are GMT -5. The time now is 09:39 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration