You are not logged in.

#1 2011-04-09 07:16:35

allencch
Member
Registered: 2011-03-25
Posts: 118

[SOLVE] How to mount NTFS partition with current user ownership?

I would like to mount the NTFS partition automatically with the current user ownership, is this possible?
For example, if the current user is "hikaya", then the NTFS partition is mounted automatically when the user is login, the owner and group is under "hikaya". Besides that, the umask of the NTFS is defined with umask=003.
I have tried in fstab, but the user and group is defined with uid and gid.

Another questions is, when the USB storage is plugin, it is auto mounted, but I also wish to mount it with umask=003, how to configure this? Is it related to HAL configuration?

Last edited by allencch (2011-04-09 15:19:20)

Offline

#2 2011-04-09 11:42:01

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,094

Re: [SOLVE] How to mount NTFS partition with current user ownership?

man mount.ntfs-3g, see what uid/gid/fmask/dmask/umask does.

Edit: No, it has nothing to do with hal, in fact you shouldn't be using hal at all.

And for internal discs, mount them in fstab instead of using automounting.

Last edited by Mr.Elendig (2011-04-09 11:43:05)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2011-04-09 12:04:51

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [SOLVE] How to mount NTFS partition with current user ownership?

This might help.

$ mount /mnt/win-backup
Unprivileged user can not mount NTFS block devices using the external FUSE
library. Either mount the volume as root, or rebuild NTFS-3G with integrated
FUSE support and make it setuid root. Please see more information at
http://ntfs-3g.org/support.html#unprivileged

Offline

#4 2011-04-09 12:28:07

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,645
Website

Re: [SOLVE] How to mount NTFS partition with current user ownership?

/dev/sda2    /media/data    ntfs-3g    defaults,umask=002,fmask=113,gid=100,uid=1000    0    0

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2011-04-09 15:14:26

allencch
Member
Registered: 2011-03-25
Posts: 118

Re: [SOLVE] How to mount NTFS partition with current user ownership?

Thank you. I think I will stick the the fstab to solve the umask problem.

Offline

Board footer

Powered by FluxBB