<SOLVED> Mount NTFS partition with me (not root) as owner
Forum rules
Before you post please read this
Before you post please read this
<SOLVED> Mount NTFS partition with me (not root) as owner
I have a NTFS partition that I use to access files from both Linux and Windows. During installation of Mint, in the partition editor, I set this partition to have a mount point of /home/chellrose/sharepart. Now the partition mounts beautifully upon startup... but with root as owner. I want to make chellrose the owner of this partition. How do I go about doing that? I've read that chown and the like don't work for NTFS, and Nemo won't allow me to edit the owner even if I run it as root.
Thanks.
Thanks.
Last edited by chellrose on Tue Dec 18, 2018 8:42 am, edited 1 time in total.
Re: Mount NTFS partition with me (not root) as owner
Try:
Code: Select all
sudo chown -R $USER:$USER /home/chellrose/sharepart
Light travels faster than sound. That's why some people appear smart until you hear what they are saying.
You will seldom see a grey-beard wearing a tinfoil hat.
You will seldom see a grey-beard wearing a tinfoil hat.
Re: Mount NTFS partition with me (not root) as owner
Find your user id by running
then add your user id to the mount options.
Mint menu > Disks > select the partition > cogs icon > Edit Mount Options > add
You can add your group id as well for good measure even though not strictly necessary on a single-user system
Code: Select all
id
Mint menu > Disks > select the partition > cogs icon > Edit Mount Options > add
uid=1000
(using your id) to the one field that does not have a label for some reason - comma separated if something is already there. Re-mount or just re-boot for the change to take effect. You can add your group id as well for good measure even though not strictly necessary on a single-user system
,gid=1000
.-
- Level 5
- Posts: 802
- Joined: Fri Feb 02, 2018 9:56 pm
- Location: Somewhere in the USA
- Contact:
Re: Mount NTFS partition with me (not root) as owner
I found this in a search and don't know if it is safe or not. Can you comment on this?
Navigate to: and edit udisks2.conf
/etc/udisks2/udisks2.conf
Code: Select all
[udisks2]
# Comma separated list of modules to load.
# Use asterisk to load all the modules.
modules=*
# Valid options are 'ondemand' or 'onstartup'.
modules_load_preference=ondemand
SUBSYSTEM=="block", ENV{DEVTYPE}=="partition", ENV{ID_BUS}=="usb", ENV{ID_FS_TYPE}=="vfat" MODE="0777"
"Tune for maximum Smoke and then read the Instructions".
Re: Mount NTFS partition with me (not root) as owner
Is ownership of the mountpoint not sufficient?
Light travels faster than sound. That's why some people appear smart until you hear what they are saying.
You will seldom see a grey-beard wearing a tinfoil hat.
You will seldom see a grey-beard wearing a tinfoil hat.
-
- Level 8
- Posts: 2224
- Joined: Thu Mar 01, 2018 8:36 pm
- Location: San Diego, California, USA
Re: Mount NTFS partition with me (not root) as owner
Not with NTFS, no.
Mint 20.1 XFCE [kernel 5.4.0-64-generic]
Ryzen 7 2700X 3.7 GHz w/16GB RAM
GTX 1070 w/8GB RAM [460.32.03]

Ryzen 7 2700X 3.7 GHz w/16GB RAM
GTX 1070 w/8GB RAM [460.32.03]

Re: Mount NTFS partition with me (not root) as owner
You're not setting ownership of a mountpoint, but rather the filesystem
ntfs does not store file ownership or file mode bits so they are contrived globally at mount time with uid=value, gid=value and fmask=value, dmask=value


Re: Mount NTFS partition with me (not root) as owner
I find this strange because on this system there is a hd with an NTFS partition containing Win7pro to which
I have full access r/w.
No ownership mitigations, nothing special to make this happen.
I've always considered Linux to have full access to NTFS. What is different here?
I have full access r/w.
No ownership mitigations, nothing special to make this happen.
I've always considered Linux to have full access to NTFS. What is different here?
Light travels faster than sound. That's why some people appear smart until you hear what they are saying.
You will seldom see a grey-beard wearing a tinfoil hat.
You will seldom see a grey-beard wearing a tinfoil hat.
Re: Mount NTFS partition with me (not root) as owner
It could be because you're mounting it from the file manager which utilizes udisksall41 wrote: ↑Tue Dec 18, 2018 1:02 amI find this strange because on this system there is a hd with an NTFS partition containing Win7pro to which
I have full access r/w.
No ownership mitigations, nothing special to make this happen.
I've always considered Linux to have full access to NTFS. What is different here?


Re: Mount NTFS partition with me (not root) as owner
This didn't do anything. It seemed to be cranking away at something, but at the end of the process, owner was still root.all41 wrote: ↑Mon Dec 17, 2018 11:42 amCode: Select all
sudo chown -R $USER:$USER /home/chellrose/sharepart
This worked, thank you!gm10 wrote: ↑Mon Dec 17, 2018 11:52 am...
Mint menu > Disks > select the partition > cogs icon > Edit Mount Options > adduid=1000
(using your id) to the one field that does not have a label for some reason - comma separated if something is already there. Re-mount or just re-boot for the change to take effect.