[Ilugc] Re: pendrive handling

  • From: kapil@xxxxxxxxxxx (Kapil Hari Paranjape)
  • Date: Sat Jul 19 19:02:58 2008

Hello,

On Sat, 19 Jul 2008, indianathan n wrote:

I experienced that the file copied in RHEL4 machine can't
edited in ubuntu.then i changed the file permission in ubuntu. after some
time, when i access the file in RHEL4, the file owner displayed as 999 (
using ls -l). The same thing happen when i use the ubuntu live CD in RHEL4
machine. I aready posted the above occurence in the list.Hence i told that
never change the file permissions.

The issue is that files copied on a system A by user a are marked
with the user-id of user a rather than the user name.

If the files are then seen on system B where the user a has a
different user-id then that user cannot easily access the files.

One solution is to use a file sysem like FAT/VFAT that does not care
about user id[*]. However, long file names can occasionally cause
problems if this is not mounted correctly. There are other issues like
fragmentation as well.

When you want to copy files with permissions and other attributes use
an archive like tar.gz or tar.bz2 or a loop device.

Another solution using ext2/3 etc. is to mark all files/directories on
the portable medium as world readable/writable. Perhaps that is what
you meant.

Regards,

Kapil.

[*] I feel some reluctance in suggesting this old FS but it is the
only one which was _designed_ with floppies in mind! So it works well
with portable media.
--

Other related posts: