Re: shell script and chown

From: Trent Curry (tcurrey_at_no.no.i.said.no)
Date: 11/04/03


Date: Tue, 4 Nov 2003 08:03:24 -0800

Doug Freyburger wrote:
> Trent Curry wrote:
>> Bill Marcum wrote:
>>> Tony wrote:
>>
>>>> my fix.sh script look like this:
>>>> #!/bin/sh
>>>> chown -R $1.$1 $6
>>>> chown -R $1.$1 $6
>>>> I ran fix.sh but nothing happens
>>
>>> You can't chown files on a FAT filesystem.
>>
>> Who said anything about using a FAT fs?
>
> The script with chown's failed. A FAT filesystem is one of
> many possible explanations for that failure. And it's an
> explanation that is independent of ownership issues.
>
>> This is a linux ng after all.
>
> CUA is a generic Unix newsgroup not limited to Linux.

Yes see my little corection post posted right after the one you replied to.

>> I haven't seen the op nor anyone else claim to be
>> attempting to chown on such a fs.
>
> Since there was no mention of the underlying filesystem type,
> it remained a possibility. If the OP had not checked what
> FS type it is something else to check.
>
> In fact you can't change ownership on an HSFS/CDFS/etc FS
> either. Just in case the data was on a CDROM image ...

True. Though I remember one hearing about a product a few years ago that
would emulate owner/group/chmod in a windows enviroment (might of been ntfs
only, not sure if it was for FAT also.)

-- 
Trent Curry


Relevant Pages

  • Re: Recovering a vfat partition
    ... you need to restore the boot sector. ... FATs differ, ... And now when I try to mount the image, ... Can't find a valid FAT filesystem on dev loop1. ...
    (comp.os.linux.hardware)
  • Re: Recovering a vfat partition
    ... you need to restore the boot sector. ... FATs differ, ... And now when I try to mount the image, ... Can't find a valid FAT filesystem on dev loop1. ...
    (comp.os.linux.hardware)
  • Re: Recovering a vfat partition
    ... less damage to a FAT filesystem than mkreiserfs, ... you need to restore the boot sector. ... FATs differ, ... Can't find a valid FAT filesystem on dev loop1. ...
    (comp.os.linux.hardware)
  • Re: new WD passport filesystem?
    ... Formatted HPFS /NTFS? ... FAT: utf8 is not a recommended IO charset for FAT filesystems, ... Can't find a valid FAT filesystem on dev sdb1. ...
    (comp.os.linux.hardware)