LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cannot assign write permissions to sda1 (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-assign-write-permissions-to-sda1-579827/)

flygirl 08-25-2007 07:09 PM

cannot assign write permissions to sda1
 
i want to assign all permissions to my windows partition (titled sda1 in ubuntu) but when i attempt to in the terminal (even as root) it says that it does not exist the command i am using is chmod a=rx sda1 i have also tried several folders and files in the partition, help please!!!

gilead 08-25-2007 07:18 PM

Windows partitions don't support Linux permissions so the chmod command won't work the way you expect it to. You need to mount the partition with the required permissions. Have a look at the man page for the mount command - in it are options such as umask, uid and gid that will allow you to set the access type for the permission.

Please search for mounting fat32 or mounting ntfs partitions - there are quite a few posts here that deal with this.

jay73 08-25-2007 11:14 PM

unmount the windows partition and put this in your /etc/fstab:

/dev/sda1 /home/your username/windows ntfs-3g rw,exec,uid=1000,gid=1000,umask=0000 1 2

Remember to make a windows folder in your home directory first.

Reboot or use mount -a.

You may still find that you aren't getting the expected permissions, if so:
chown -R username:username /home/username/windows


All times are GMT -5. The time now is 11:22 PM.