PDA

View Full Version : Need to change file permissions



ricemark20
18th April 2006, 01:08 PM
I know the command for this is chown, but I want to change ownership to my user name for my Windows partition. I used chown -R in su terminal, but for every file I get a message that the operation cannot be performed.

How do I force it to change?

brandor
18th April 2006, 01:16 PM
You need to be root to chown anything that you don't already own.

ricemark20
18th April 2006, 01:20 PM
I tried it in root, using the su command is the same as going into root

brandor
18th April 2006, 01:55 PM
What does the fstab entry for this partition look like? You might have to edit that.

ricemark20
18th April 2006, 06:28 PM
Windows entry for fstab:

/dev/hda1 /home/rice/WinXP rw 0 0

Spoon!
18th April 2006, 07:30 PM
first of all, you left out the filesystem type in your entry

to set the ownership of the stuff on the partition, you set the uid and gid options like this (supposing that it is vfat and that your uid and gid are 500):

/dev/hda1 /home/rice/WinXP vfat uid=500,gid=500 0 0

ricemark20
19th April 2006, 12:33 PM
Thanks, that worked after rebooting.