how to change read /wirte permissoin of a drive

hey guys am using opensuse 12.1 kde …i want to ask you that how can i change read and write permission of one my drive which has ntfs file system currently its under root i.e. only root member can read and write data to that partition
i even have to give root password to open that partition …
please help me that how i can change permission of that partition so that i may able to read and write data to that partition as normal user thanks…:slight_smile:

On 2012-11-30 13:36, yasirassassin wrote:
>
> hey guys am using opensuse 12.1 kde …i want to ask you that how can i
> change read and write permission of one my drive which has ntfs file
> system currently its under root i.e. only root member can read and write
> data to that partition
> i even have to give root password to open that partition …
> please help me that how i can change permission of that partition so
> that i may able to read and write data to that partition as normal user
> thanks…:slight_smile:

How To
Ask Questions The Smart Way


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

hey dear why did u gave me this link??

On 2012-11-30 14:36, yasirassassin wrote:
> hey dear why did u gave me this link??

Because it is next to impossible to understand what you say.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

You just have to change your fstab file.

As root edit the fstab file in /etc/fstab and update the line for your ntfs partition.

Example:

*# open fstab in kwrite*
**sudo kwrite /etc/fstab**
*# example 1 fstab entry allowing ALL users to automount at boot and give r/w access*
**/dev/disk/by-id/partitionid     /mnt/ntfs     ntfs-3g     rw,user,users,noatime,auto,umask=000     0 0**
*# example 2 fstab entry allowing ALL users to manually mount instead (no automount at boot) and give r/w access*
**/dev/disk/by-id/partitionid     /mnt/ntfs     ntfs-3g     rw,user,users,noatime,noauto,umask=000     0 0**

You will need to replace /dev/disk/by-id/parititionid with whatever disk/partition you are trying to mount and also replace /mnt/nfts with the path you want to mount it to.
The user option changes the ownership of the mount point to the user that mounted it, the users option allows everyone in the group users to own the files as well.

The umask option should allow all users/groups r/w access via 000, the default is 022 which can be restrictive.

You can also change the value of umask and include the user ID (uid), group ID (gid), file permissions (fmask), or directory permissions (dmask).
Using umask, with uid and gid is usually used to mount the partition with permissions for a single user.
Use umask with fmask and dmask to change permissions for all users and include specific permissions for files and directories separately.

Further Reading:
https://en.opensuse.org/NTFS
https://en.opensuse.org/SDB:Access_your_Windows_files
FedoraNEWS.ORG
fstab - Wikipedia, the free encyclopedia <- it’s actually useful