Access rights to Windows partition

Last update on December 11, 2008 07:02 AM by netty5
Published by netty5

Access rights to Windows partition





Getting started


When creating a Windows partition, it may happen that only the "root" has the necessary privileges, to have read and write access to the partition.

Here is a small tip on how to assign rights to users:

Implementation


Create a group
Start by creating a group (eg Windows) which we associate certain users and to which a ID group 1001 will be given.

# groupadd -g 1001 Windows

Adding a user



We must now add use(s) to the group.

To add a user to a group, simply edit /etc/ group file, for example using a command editor as "vi":

# vi /etc/group



to add the name (s) at the end of the line separating the members names by a comma:

Windows:x:1001:user1,user2

Modifying the /etc/fstab file



Once the group created and added users must edit the fstab file.
(found in /etc/fstab).


# Vi/etc/fstab 


Assuming that your 1st partition Windows/system is mounted on / dev/hda1, and the 2nd Windows/data on /dev/hda5/

/dev/hda1 /mnt/windows/system ntfs user,noauto,gid=1001,umask=027,ro 0 0
/dev/hda5 /mnt/windows/data vfat user,noauto,gid=1001,umask=027,rw 0 0



The "gid" will allows the group "1001", the "umask" to "027" gives all the "rights".

Note also the rw on the second partition (FAT32),gives it the rights to write.

Another solution is to edit the file /etc/ fstab and replace the mounting options with a simple:

users,umask=0


E.g:
/dev/hda5 /mnt/windows/data vfat users,umask=0  0 0


All users will have read/write rights

The changes are effective at the next reading file "fstab".
Best answers for « Access rights to Windows partition » in :
[Windows 7] The hidden partition Show[Windows 7] The hidden partition Intro Purpose of this partition Intro Upon first installation, Windows 7 will automatically create a hidden primary partition. It's size varies to 100 or 200 MB depending on the total capacity...
How to resize a disk partition ShowHow to resize a disk partition For Windows Vista users Solution 1: Using Disk Management Solution 2: Using Command Prompt Software Download There are some simple ways to manage your disk partitions to either expand or reduce them....
[Vista] Take control over a file whose access is denied Show[Vista] Take control over a file whose access is denied Most Vista users have encounter the following type of message: "Access denied" when trying to edit some files or folder. To solve this problem: Right click the folder...
Download EASEUS Partition Master ShowEaseUs Partition manager Free, is software "par excellence". EaseUs Partition Manager easily and without error will resize your hard disk partition into any size you chose: Main characteristics of EaseUs Partition Free: Material support for...
Download BootMaster Rescue Disk for Windows ShowBootMaster Rescue Disk is a recovery utility especially designed for Windows partitions. It allows you to restore partitions which have been deleted from FAT and NTFS systems. You can also restore corrupt files. Thanks to advanced diagnosis...
File sharing in Windows XP ShowAdvantages File sharing involves making the content of one or more directories available through the network. All Windows systems have standard devices making it easy to share the content of a directory. However, file sharing may lead to security...
User management in Windows NT ShowThe notion of a user Windows NT is an operating system which manages sessions, meaning that when the system is started, it is necessary to log in with a user name and password. When Windows NT is installed, the administrator account is created by...