Leap 15.0 drive ownership changed after install

Hi,
I just installed Leap 15.0 and everything went fine (great job, opensuse
team!).
One issue, however remain: I have two extra partitions, one a NTFS the
other a FAT, mounted as /windows/C and /windows/D respectively.
I do not care about the NTFS partition, but I do about /windows/D as it
is for exchange of files in this double boot machine.

The issue is that the /windows/D partition is not owned by me anymore,
but by root (and group root) which means that as a user, I can only read
from it.

I do not seem to be able to change ownership using the dolphin interface.
I can type the new user and group but then it says that there are not
enough permissions.
From a long time ago I had never problems writing and reading from the
user account without doing anything between installs, so not sure how
this situation has arisen.

Any suggestions on how to fix this?
Thanks.
-G-

Auto mounted??
show /etc/fstab

As always, ownership for NTFS is faked by linux, based on the mount command. You probably need to edit “/etc/fstab” to change this. In my case, I use “uid=1001” as one of the option parameters. This makes user 1001 the owner. Check “/etc/passwd” to match numeric uid with user login name. Or I think you can use the login name there, too.

On Sun, 27 May 2018 13:16:03 +0000, gogalthorp wrote:

> Auto mounted?? show /etc/fstab

Yes, automounted. The only thing difference in this install was that I
could not import the mount points, so I added them by hand. Maybe the old
mounting point procedure imported not only the points, but something else?
Here is the /etc/fstab
Thanks for your help.

UUID=f74b24e1-8d31-44f9-a944-62e74727793d / ext4
acl,user_xattr 0 1
UUID=469f4a42-df38-42c6-9fe9-655ee2f0aa7a /audio ext4
defaults 0 2
UUID=fca7535e-81a9-4d9e-afaf-b8dcc0c99348 swap swap
defaults 0 0
UUID=4652-1147 /windows/D vfat
defaults 0 0
UUID=0EDCE984DCE96705 /windows/C ntfs
defaults 0 0
UUID=4ba0cf4b-d94c-49cb-9050-88217b4b68b2 /home ext3
data=ordered,acl,user_xattr 0 2
UUID=961be646-b4d6-4742-bb94-86ff7fd11e5c /fast ext4
defaults 0 2
UUID=bb79096b-eebd-432b-b647-9e1df64cd73a /backup ext4
defaults 0 2

In the “fstab” entry for “/windows/D”, change that “defaults” to the options that were used in your 42.3 install.

I changed mine to “noauto,users,uid=1001,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8” which I copied from the 42.3 “fstab”. In this case, the “uid=” and “gid=” are probably the most important parts. The “noauto” is because I don’t want that automatically mounted.

Best thing would of course to look in a backup of /etc made before you upgraded. You will find there something along the lines of nrickert’s post.

On Sun, 27 May 2018 13:36:02 +0000, nrickert wrote:
> As always, ownership for NTFS is faked by linux, based on the mount
> command. You probably need to edit “/etc/fstab” to change this. In my
> case, I use “uid=1001” as one of the option parameters. This makes user
> 1001 the owner. Check “/etc/passwd” to match numeric uid with user
> login name. Or I think you can use the login name there, too.

Perfect! That was it! Many thanks for your help.

-G-