BUG: mx-installer 18.4.04 wrong group-ownership of user-account

Report Bugs, Issues and non- package Requests
Message
Author
User avatar
Adrian
Developer
Posts: 8267
Joined: Wed Jul 12, 2006 1:42 am

Re: BUG: mx-installer 18.4.04 wrong group-ownership of user-account

#11 Post by Adrian »

Is this something related to persistency by any chance? Did any of you use persistency at any point?

User avatar
anticapitalista
Developer
Posts: 4166
Joined: Sat Jul 15, 2006 10:40 am

Re: BUG: mx-installer 18.4.04 wrong group-ownership of user-account

#12 Post by anticapitalista »

On my box, it is an old install of antiX. I think something else must have changed the permissions xdg perhaps? There was a security upgrade of xdg-utils a few days ago.
anticapitalista
Reg. linux user #395339.

Philosophers have interpreted the world in many ways; the point is to change it.

antiX with runit - lean and mean.
https://antixlinux.com

User avatar
Adrian
Developer
Posts: 8267
Joined: Wed Jul 12, 2006 1:42 am

Re: BUG: mx-installer 18.4.04 wrong group-ownership of user-account

#13 Post by Adrian »

anticapitalista wrote: Sat May 26, 2018 1:54 pm On my box, it is an old install of antiX. I think something else must have changed the permissions xdg perhaps? There was a security upgrade of xdg-utils a few days ago.
That's a good point, it might happen after the install, however, I don't see that happening with fully updated MX16 and MX17 (I did see the xdg-utils update).

User avatar
dolphin_oracle
Developer
Posts: 20010
Joined: Sun Dec 16, 2007 1:17 pm

Re: BUG: mx-installer 18.4.04 wrong group-ownership of user-account

#14 Post by dolphin_oracle »

I just did a fresh install with the 32 bit iso.

all my directories were owned by $USER:$USER except for hte desktop folder. it was owned by $USER:users.

I see this in the installers.

Code: Select all

// fix the ownership, demo=newuser
    cmd = QString("chown -R demo.users %1").arg(dpath);
    if (shellcmd->run(cmd.toUtf8()) != 0) {
        setCursor(QCursor(Qt::ArrowCursor));
        QMessageBox::critical(0, QString::null,
                              tr("Sorry, failed to set ownership of user directory."));
        return false;
    }
should that be something like demo.users:demo.users
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
ChrisUK
Qualified MX Guide
Posts: 299
Joined: Tue Dec 12, 2017 1:04 pm

Re: BUG: mx-installer 18.4.04 wrong group-ownership of user-account

#15 Post by ChrisUK »

I don't think it's the xdg-utils update... I do regular backups with Timeshift (which preserves permissions etc) - a random snapshot taken on 9th of May still has the group ID of 100 for Pictures etc. That was over two weeks before the aforementioned update. See attached - notice the correct group id of the two folders created after the initial install (bin & Updater)

Oh - Distro version and date of install: MX-17.1_x64 Horizon December 10, 2017
You do not have the required permissions to view the files attached to this post.
Chris

MX 18 MX 19 - Manjaro

User avatar
Adrian
Developer
Posts: 8267
Joined: Wed Jul 12, 2006 1:42 am

Re: BUG: mx-installer 18.4.04 wrong group-ownership of user-account

#16 Post by Adrian »

dolphin_oracle wrote: Sat May 26, 2018 3:16 pm should that be something like demo.users:demo.users
No, demo.users is fine. But users id is indeed 100. Now the question is why I see that 1000 on my installed system?

User avatar
Adrian
Developer
Posts: 8267
Joined: Wed Jul 12, 2006 1:42 am

Re: BUG: mx-installer 18.4.04 wrong group-ownership of user-account

#17 Post by Adrian »

Should we change users to demo?
cmd = QString("chown -R demo.users %1").arg(dpath);
Also, see the explanation about . or : in chown: https://serverfault.com/questions/19429 ... p-in-chown

User avatar
dolphin_oracle
Developer
Posts: 20010
Joined: Sun Dec 16, 2007 1:17 pm

Re: BUG: mx-installer 18.4.04 wrong group-ownership of user-account

#18 Post by dolphin_oracle »

Adrian wrote: Sat May 26, 2018 3:34 pm Should we change users to demo?
cmd = QString("chown -R demo.users %1").arg(dpath);
Also, see the explanation about . or : in chown: https://serverfault.com/questions/19429 ... p-in-chown
Ah.

I think that may be it. This would be for any folders that exist prior to xdg-user-dirs doing its thing.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
Adrian
Developer
Posts: 8267
Joined: Wed Jul 12, 2006 1:42 am

Re: BUG: mx-installer 18.4.04 wrong group-ownership of user-account

#19 Post by Adrian »

OK, let's replace everywhere with:

Code: Select all

cmd = QString("chown -R demo:demo %1").arg(dpath);
fehlix, you were right, thanks for the bug report! What is confusing is that some folders are handled by xdg and some are modified by installer.

User avatar
dolphin_oracle
Developer
Posts: 20010
Joined: Sun Dec 16, 2007 1:17 pm

Re: BUG: mx-installer 18.4.04 wrong group-ownership of user-account

#20 Post by dolphin_oracle »

Ok I've been working with gazelle-installer today anyway. I'll send up the change in a bit.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

Post Reply

Return to “Bugs and Non-Package Requests Forum”