Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ntfs-3g ignored options uid and gid #97

Open
SFR-lhsm opened this issue Jan 3, 2024 · 1 comment
Open

ntfs-3g ignored options uid and gid #97

SFR-lhsm opened this issue Jan 3, 2024 · 1 comment

Comments

@SFR-lhsm
Copy link

SFR-lhsm commented Jan 3, 2024

Hello,

I'm using ntfs-3g (2022.10.3) on a Red Hat 9 server (5.14.0-362.13.1.el9_3.x86_64).

When I use one of the following commands
mount -t ntfs-3g -o uid=2262 /dev/sde2 /mnt/shared_vmdk/datalan.vmdk
mount -t ntfs-3g -o gid=1101 /dev/sde2 /mnt/shared_vmdk/datalan.vmdk

It seems that uid=2262 or gid=1101 are ignored (user_id,group_id have the value 0)
mount | grep sde2
/dev/sde2 on /mnt/shared_vmdk/datalan.vmdk type fuseblk (rw,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)

It was working well on a ntfs-3g (2017.3.23) on a Red Hat 6 server (2.6.32-754.35.1.el6.x86_64).

Thanks in advance for your help.

More information on configuration :

- uname -s -r

Linux 5.14.0-362.13.1.el9_3.x86_64

- ntfs-3g -v

ntfs-3g 2022.10.3 integrated FUSE 28 - Third Generation NTFS Driver
Configuration type 7, XATTRS are on, POSIX ACLS are on

@jpandre
Copy link
Collaborator

jpandre commented Jan 3, 2024

/dev/sde2 on /mnt/shared_vmdk/datalan.vmdk type fuseblk (rw,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)

The user_id and group_id appear as zero because uid and gid options are processed at ntfs-3g level. You need to check how the owership of a file looks like, and if you do not define the user mapping, the ownership is not recorded to the device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants