how to give 'guest' rwx permission to a file/directory
Hi
I just mounted my windows partition(FAT32) onto Linux :), but how do I make my 'guest' account have the rwx rights to the windows directory/partition as root? Thank you! |
Let's say the windows partition is mounted at /mnt/windows. To give all users who are members of the users group the rwx permissions, as root issue the command:
chmod -R g +rwx /mnt/windows If you want only one user to have such access (other than root), create a new group, and add the guest name to that group. Then change the group ownership of /mnt/windows to the new group. Use the command: chgrp -R <newgroup name> /mnt/windows The -R makes the change recursive throughout /mnt/windows. |
Hi
it says: [root@Red_Hat_LInux mnt]# chmod -R g +rwx /mnt/windows/ chmod: invalid mode string: `g' and when I try [root@Red_Hat_LInux mnt]# chmod -R -g +rwx /mnt/windows/ it shows a list of window files: . . . chmod: changing permissions of `/mnt/windows//windows/system32/config/default' (requested: 0200, actual: 0644): Operation not permitted chmod: changing permissions of `/mnt/windows//windows/system32/drivers' (requested: 0200, actual: 0755): Operation not permitted chmod: changing permissions of `/mnt/windows//windows/system32/drivers/etc' (requested: 0200, actual: 0755): Operation not permitted chmod: changing permissions of `/mnt/windows//windows/system32/drivers/etc/hosts' (requested: 0200, actual: 0644): Operation not permitted chmod: changing permissions of `/mnt/windows//windows/system32/drivers/etc/lmhosts.sam' (requested: 0200, actual: 0644): Operation not permitted chmod: changing permissions of `/mnt/windows//windows/system32/drivers/etc/networks' (requested: 0200, actual: 0644): Operation not permitted chmod: changing permissions of `/mnt/windows//windows/system32/drivers/etc/protocol' (requested: 0200, actual: 0644): Operation not permitted chmod: changing permissions of `/mnt/windows//windows/system32/drivers/etc/services' (requested: 0200, actual: 0644): Operation not permitted chmod: changing permissions of `/mnt/windows//windows/system32/drivers/disdn' (requested: 0200, actual: 0755): Operation not permitted chmod: changing permissions of `/mnt/windows//windows/system32/drivers/wmilib.sys' (requested: 0200, actual: 0644): . . . etc.? |
ok got it, it should be:
[root@Red_Hat_LInux]# chmod -R g+rwx /mnt/windows/ but it still gives me a list of files with operation not permitted: . . . . chmod: changing permissions of `./windows//windows/system32/oobe/html/mouse/mouse.htm' (requested: 0775, actual: 0755): Operation not permitted chmod: changing permissions of `./windows//windows/system32/oobe/html/mouse/mouse_a.htm' (requested: 0775, actual: 0755): Operation not permitted chmod: changing permissions of `./windows//windows/system32/oobe/html/mouse/mouse_b.htm' (requested: 0775, actual: 0755): Operation not permitted chmod: changing permissions of `./windows//windows/system32/oobe/html/mouse/mouse_c.htm' (requested: 0775, actual: 0755): Operation not permitted chmod: changing permissions of `./windows//windows/system32/oobe/html/mouse/mouse_d.htm' (requested: 0775, actual: 0755): Operation not permitted chmod: changing permissions of `./windows//windows/system32/oobe/html/mouse/mouse_e.htm' (requested: 0775, actual: 0755): Operation not permitted chmod: changing permissions of `./windows//windows/system32/oobe/html/mouse/mouse_f.htm' (requested: 0775, actual: 0755): Operation not permitted chmod: changing permissions of `./windows//windows/system32/oobe/html/mouse/mouse_g.htm' (requested: 0775, actual: 0755): Operation not permitted chmod: changing permissions of `./windows//windows/system32/oobe/html/mouse/mouse_h.htm' (requested: 0775, actual: 0755): Operation not permitted chmod: changing permissions of `./windows//windows/system32/oobe/html/mouse/mouse_i.htm' (requested: 0775, actual: 0755): Operation not permitted chmod: changing permissions of `./windows//windows/system32/oobe/html/mouse/mouse_j.htm' (requested: 0775, actual: 0755): Operation not permitted chmod: changing permissions of `./windows//windows/system32/oobe/html/mouse/mouse_k.htm' (requested: 0775, actual: 0755): Operation not permitted . . . :confused: |
All times are GMT -5. The time now is 04:44 AM. |