LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   problem changing file permissions on fat32 partition (https://www.linuxquestions.org/questions/linux-software-2/problem-changing-file-permissions-on-fat32-partition-136031/)

coolamit78 01-18-2004 11:25 AM

problem changing file permissions on fat32 partition
 
Hi..

When I try to change file permissions on my mounted fat32 partition, I get an error "Operation not permitted"...

I am not sure if suffixing a '-w' in the options makes the vfat partition writable, but this is what i put in my /etc/fstab

/dev/hda1 /mnt/c: vfat rw,-w 0 0

Otherwise, I am able to create new files on my fat32 drive by manually mounting the windows partition-

mount -t vfat /dev/hda1 /mnt/c: -w

Let me know if the entry in /etc/fstab is incorrect..and if it is, whats the proper way to do that?

Second question is, that why am i not able to change file permissions? changing the umask also does not have any impact on newly created files......can anyone provide a solution?

Regards,

amit

david_ross 01-18-2004 11:27 AM

vfat filesystems have no support for these types of permissions. You need to decide what premssions you want all the files to have when you mount the partition.

coolamit78 01-18-2004 11:33 AM

Thanx david_ross..

what about this line in my /etc/fstab....is it correct?

/dev/hda1 /mnt/c: vfat rw,-w 0 0

So, can i enable uniform permission for the fat32 partition by using something like:

mount -t vfat /dev/hda1 /mnt/c: umask=777,-w


Regards,

amit

david_ross 01-18-2004 01:01 PM

I have no idea what permissions you are trying to achieve - try:
Code:

/dev/hda1        /mnt/c    vfat    defaults,umask=0000    0 0
This will let all users read, write and execute on that partition.

coolamit78 01-18-2004 01:44 PM

Thx david_ross....I got it now....


All times are GMT -5. The time now is 03:45 AM.