When mounting a drive in Linux, the root access rights are set incorrectly, which necessitates users to perform a recursive disk change operation in order to set the rights needed. However, in Linux File Systems for Windows by Paragon Software it is possible to format a drive while setting custom access rights at the same time, which can also be done with Linux utilities.
The product Linux File Systems for Windows by Paragon Software uses the standard utilities e2fsprogs intended to work with extFS under Windows, and the same utilities are used in Linux. The default root rights are set as root:root, meaning that the root owner is the root-user and the root-group.
Solution:
Our product provides a Command-line interface (CLI) to formatting operations, as well as settings user rights. Thus, root rights can be set while formatting a drive under Windows with Linux File Systems for Windows by Paragon Software.
Please do the following to format the drive:
cd C:\Program Files (x86)\Paragon Software\LinuxFS for Windows\utils
extmounter /umount disk N volume M
mke2fs.exe -t ext[2,3,4] -E root_owner=username:usergroup /dev/sdXY
(for instance, mke2fs.exe -t ext[2,3,4] -E root_owner=1000:1000 /dev/sdXY)
where X is the letter for Drive N, and Y is the number of Partition M., i.e.:
disk 0 partition 1 → /dev/sda1
disk 1 partition 2 → /dev/sdb2
and so on.
Besides, the default user rights can also be changed for files and folders created while working with an extFS-volume under Windows. The default user rights are 65534 (noowner/nogroup). These can be changed through regedit or CLI:
ExtFS for Windows, HowTos: Windows
Tags: ExtFS for Windows, linux, root