[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
RE: Help with chmod
- From: "biscut" <biscut ntlworld com>
- To: <redhat-install-list redhat com>
- Subject: RE: Help with chmod
- Date: Fri, 2 Mar 2001 16:42:14 -0000
> This still sounds like you are mounting a FAT (DOS/Win9x) filesystem,
> rather than an ext2 (Linux) filesystem. I'll just get all the
> questions I have out now rather than continuing to pull teeth.
Okay, thanks very much :-)
>
> 1. You must have at some point created a filesystem on /dev/hdc1
> (a.k.a. "formatting") before you could mount it. How did you
> do this for /dev/hdc1? mke2fs?
I just fdisk'd the drive using the fdisk /dev/hdc1 command then followed the
instructions for how many sectors I wanted and also set the partition type
to Linux after that, when I rebooted the machine I mounted the drive uisng
mount /dev/hdc1 /mnt/ftp and then copied a load of files over onto hte
drive, so I didn't "format" the drive per say, is that the bit I should of
done ??
> 2. Did this partition previously exist for DOS/Windows use in
> its current location?
Before I fdisk'd the drive then yes, it was an "old" drive used in a purely
Win98 environment but in another PC but the file system was set to Win32 or
whatever the option is in fdisk.
> 3. Is there an entry for /mnt/ftp in /etc/fstab?
No there isnt as it is a purely manual mount and not automated at boot etc.
> 4. When you say "it didn't make any difference [mounting as vfat]",
> what do you mean? Did it not mount, did it mount and not persereve
> permissions, or something else entirely?
It mounted fine and I could copy files onto the drive, I just cant change
the permissions on any files/folders once they are on the drive itself. I.e
I mounted the drive just with mount /dev/hdc1 /mnt/ftp and the changed to
the ftp folder and copied some files onto it. Tried to change the
permissions on the files and got the same error, unmounted the drive, tried
to mount it again using mount -t vfat /dev/hdc1 /mnt/ftp, changed to the ftp
folder and tried the same process with the same error occuring., with both
scenario's then when trying to copy over the files then I got the same error
as I mentioned before.
> 5. Who are you when you chmod? (check the output of 'id')
Definitely root, I even tried to "su smbuser" and copy files or do chmod etc
and got errors about permission denied etc so I changed back to root
> 6. Could you post the output of "fdisk -l"?
Okay, here you go...
[root charlie biscut]# /sbin/fdisk /dev/hdc1 -l
Disk /dev/hdc1: 255 heads, 63 sectors, 1027 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hdc1p1 * 1 1025 8233281 83 Linux
Thankyou for your help
Regards
biscut
>
>
> biscut wrote:
> >
> > Not too sure, i fdisk'd the drive as you said and set the
> partition type to
> > be Linux, I think it was 83 or something like that, I manually mount the
> > drive with "mount /dev/hdc1 /mnt/ftp" and then copied some
> files onto the
> > drive, the files copied over fine, but I got messages saying
> that "operation
> > not permitted" when it came to preserving file permissions, I have also
> > tried to mount the drive by using "mount -t vfat /dev/hdc1
> /mnt/ftp" just in
> > case that made any difference but it didnt :-( so I currently
> have the drive
> > mounted using the former of the two commands.
> >
> > Regards
> > biscut
> >
> > > -----Original Message-----
> > > From: redhat-install-list-admin redhat com
> > > [mailto:redhat-install-list-admin redhat com]On Behalf Of Kevin Colby
> > > Sent: 01 March 2001 21:17
> > > To: redhat-install-list redhat com
> > > Subject: Re: Help with chmod
> > >
> > >
> > >
> > > You wouldn't be trying this on an MS filesystem, would you?
> > > (Extended permissions are not supported by any FAT variant.)
> > >
> > > - Kevin Colby
> > > kevinc grainsystems com
> > >
> > >
> > > biscut wrote:
> > > >
> > > > I seem to be having a problem with chmod, whenever I try to set
> > > chmod 777
> > > > <file-name> then the file permissions never seem to change, i.e
> > > they stay as
> > > >
> > > > -rwxr-xr-x readme.txt
> > > >
> > > > if I try to chmod on a directory then I keep getting operation
> > > not permitted
> > > > errors even though I am root, I get operation not permitted
> > > errors if I try
> > > > to use chown as well, has anyone got any idea's why this could
> > > be happening
> > > > please ?? I have looked at man chmod but that doesnt seem
> to give me any
> > > > clues as to why this is happening.
> > > >
> > > > thanks for any help
> > > >
> > > > Regards
> > > > biscut
> > > >
> > > > _______________________________________________
> > > > Redhat-install-list mailing list
> > > > Redhat-install-list redhat com
> > > > https://listman.redhat.com/mailman/listinfo/redhat-install-list
> > >
> > >
> > >
> > > _______________________________________________
> > > Redhat-install-list mailing list
> > > Redhat-install-list redhat com
> > > https://listman.redhat.com/mailman/listinfo/redhat-install-list
> >
> > _______________________________________________
> > Redhat-install-list mailing list
> > Redhat-install-list redhat com
> > https://listman.redhat.com/mailman/listinfo/redhat-install-list
>
>
>
> _______________________________________________
> Redhat-install-list mailing list
> Redhat-install-list redhat com
> https://listman.redhat.com/mailman/listinfo/redhat-install-list
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]