View Full Version : [SOLVED] write permission to partition

May 13th, 2010, 07:25 PM
Hi, I have three OS installed in my computer

Debian 5.0
Ubuntu 10.04
Windows XP

To created a /data partition so that I can access the linux files from either Debian or Ubuntu. and there is ofcourse the windows partition. Now as a normal user "sid" I am not able to write any files to either /data partition or /windows partition. It says I don't have write permissions. I am only able to do it as root. Can anyone help me

May 13th, 2010, 07:49 PM
Is the partition mounted at /data? If so, open a console and run
sudo chown -R username:groupname /data. replacing username and groupname with your username (eg. I would use david:david instead). Now you have full read/write permissions to it for your user. :)

May 13th, 2010, 08:14 PM
ya, the partition is mounted as /data. How do I know my groupname? is there a command for that. I may use as u suggested that is
sudo chown sid:sid /data

but it is better to check the groupname, in case. Also how to get write permission for my windows partition which is vfat partition.

May 14th, 2010, 03:54 AM
The most easy way is to add the permission in "/etc/fstab" file which hold all mount information.

/dev/sda5 /data vfat defaults,umask=000

Where "/dev/sda5" is your partition and "/data" is your mount point for that specific partition.
"umask=000" will give the read,write,execute permission.

Ask if you need more details. See there is no need for you to find anything like groupnames.

May 16th, 2010, 07:28 PM
Midnighter solution worked. used

sudo chown -R sid:sid /data