LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   RH 8.0 don't let me change attrib by chmod command (https://www.linuxquestions.org/questions/linux-general-1/rh-8-0-dont-let-me-change-attrib-by-chmod-command-33892/)

explorer1979 10-27-2002 04:05 AM

RH 8.0 don't let me change attrib by chmod command
 
Hi all,

I am using RH 8.0, when I install it, I added a mount point to my FAT32 partition, can the mount point called "win_b"

I can read this partiton, but can't write by login as general user, only root can write to "win_b"

Then I login as root and then type the command

#chmod 777 /win_b

It show me than

chmod: changing permissions of `/mnt/win_b' (requested: 0777, actual: 0755): Operation not permitted

What is wrong on my RH 8.0??

markus1982 10-27-2002 05:18 AM

You can't use chmod on a VFAT partition - so nothing is wrong with your RedHat! If you want others to be able to access the mounted partition check the manpage of mount:
Quote:

Mount options for fat
(Note: fat is not a separate filesystem, but a common part
of the msdos, umsdos and vfat filesystems.)

blocksize=512 / blocksize=1024 / blocksize=2048
Set blocksize (default 512).

uid=value and gid=value
Set the owner and group of all files. (Default: the
uid and gid of the current process.)

umask=value
Set the umask (the bitmask of the permissions that
are not present). The default is the umask of the
current process. The value is given in octal.

michaelk 10-27-2002 11:29 AM

Add your VFAT partition to the /etc/fstab file. This will allow any user to write and it will mount on boot

/dev/hdxy /mnt/win_b vfat user,auto,umask=000 0 0

Change hdxy to your actual partition


All times are GMT -5. The time now is 08:15 PM.