LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 11-23-2003, 11:49 PM   #1
eventide
LQ Newbie
 
Registered: Sep 2003
Posts: 10

Rep: Reputation: 0
CHOWN as root fails; owner 4294967295?


I'm running Slackware 9.0 with kernel version 2.4.22.

I recently burned some CDs in UDF format to avoid the 64 character filename truncation associated with ISO9960. After recompiling the kernel for UDF support, I now find that whenever I mount a UDF cdrom, the owner and group of the mounted filesystem is 4294967295 4294967295, and not root. This is troublesome as I am not able to access these files with any non-root user, although with root access I can copy the files at will. CHOWN fails to change the owner and CHGRP fails to change the group of both the mounted filesystem as well as any file I copy off the cd. ISO9960 CDs still work without trouble.

Here is a copy of /etc/fstab:

dev/hda2 swap swap defaults 0 0
/dev/hda3 / ext3 defaults 1 1
/dev/hda1 /fat-c vfat defaults 1 0
/dev/sr0 /mnt/cdrom udf,iso9660 noauto,owner,ro 0 0
/dev/hdd /mnt/cdrom2 udf,iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

Here's a copy of /etc/mtab with both an ISO9960 and a UDF cd mounted:


/dev/hda3 / ext3 rw 0 0
/dev/hda1 /fat-c vfat rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
proc /proc proc rw 0 0
/dev/sr0 /mnt/cdrom iso9660 ro,nosuid,nodev 0 0
/dev/hdd /mnt/cdrom2 udf ro,nosuid,nodev 0 0

and a copy of the output of an attempted CHOWN:

root@cauchy:/mnt# umount cdrom2
root@cauchy:/mnt# ls -l
total 13
dr-xr-xr-x 1 root root 826 Nov 30 2001 cdrom
drwxr-xr-x 2 root root 4096 Sep 3 01:22 cdrom2
drwxr-xr-x 2 root root 4096 Mar 15 2002 floppy
drwxr-xr-x 2 root root 4096 Mar 15 2002 hd
root@cauchy:/mnt# mount cdrom2
root@cauchy:/mnt# ls -l
total 11
dr-xr-xr-x 1 root root 826 Nov 30 2001 cdrom
dr--r--r-- 7 4294967295 4294967295 368 Nov 23 21:35 cdrom2
drwxr-xr-x 2 root root 4096 Mar 15 2002 floppy
drwxr-xr-x 2 root root 4096 Mar 15 2002 hd
root@cauchy:/mnt# chown root cdrom2
chown: changing ownership of `cdrom2': Read-only file system
root@cauchy:/mnt# ls -l
total 11
dr-xr-xr-x 1 root root 826 Nov 30 2001 cdrom
dr--r--r-- 7 4294967295 4294967295 368 Nov 23 21:35 cdrom2
drwxr-xr-x 2 root root 4096 Mar 15 2002 floppy
drwxr-xr-x 2 root root 4096 Mar 15 2002 hd
root@cauchy:/mnt# chown root cdrom2
chown: changing ownership of `cdrom2': Read-only file system
root@cauchy:/mnt# ls -l
total 11
dr-xr-xr-x 1 root root 826 Nov 30 2001 cdrom
dr--r--r-- 7 4294967295 4294967295 368 Nov 23 21:35 cdrom2
drwxr-xr-x 2 root root 4096 Mar 15 2002 floppy
drwxr-xr-x 2 root root 4096 Mar 15 2002 hd


Thank you for your time,
Eventide
 
Old 11-24-2003, 12:42 AM   #2
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
You can probably specify in fstab the following options: uid=root gid=<whichever group you want>. That should fix it up.
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
proftpd chown as root failed john8675309 Linux - Software 2 12-06-2005 04:53 PM
Oops! I did a chown -R root from the '/' level Wujen Linux - Newbie 4 04-06-2005 05:20 PM
Changing ownership 6.4 chown fails. jarin scott Linux From Scratch 6 02-16-2005 04:16 AM
how to i change file owner back to root ? glacier1985 Linux - Newbie 10 06-17-2004 09:20 PM
usb memory stick: chown/chgrp fails pcass Linux - Hardware 2 02-07-2004 10:42 AM


All times are GMT -5. The time now is 11:31 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 Google+: linuxquestions
Open Source Consulting | Domain Registration