DSL Ideas and Suggestions :: chown in persistent home



I don't think you're following me, though. The issue is not who it's being chowned to, regardless of whether it's numeric or not.  The problem I'm having is that chown is being done at all. Once a persistent home is created, the chown should not ever be done after that, for that particular home directory.  So there is something else that needs to be fixed.  Whether it be in dsl-config or if there is something I need to change on my end I don't yet know, but as far as I can tell this has been happening only since DSL 4.something (maybe just 4.2).

I'll study dsl-config more closely and compare to older versions and see if I can find something.

I've gone through dsl-config several times, and it tells me I'm crazy.  The chown command shouldn't be running. The persistent home gets mounted properly, so the chown should never come into play.

I give up.
I'm just going to mount my persistent home from bootlocal like I used to until I find out what's going on. Considering I share a /home partition with another distro, doing it that way is more convenient anyway...I can set it up to mount hda4 to /home instead of binding hda4/home/dsl to /home/dsl

When additional user support was added, additional scripts run at boot time in the rc level including /etc/init.d.desktop.lua and /etc/init.d/adduser_final.sh. Likely it is there that I need to check if a persistent home is used and then bail out.
That information definitely helps =O)

There is a chown in desktop.lua, but it applies only to /opt/.mydsl_menu/

adduser_final.sh is the culprit. It chowns the home directory indiscriminately.

Sorry about the misplaced thread, by the way. It was originally a suggestion thread until I realized that I had misread dsl-config.

Quote

To me this looks like chown occurs only if the home directory does not already exist, but for some reason it seems to happen every time I boot.  I had a suspicion this was happening, but never actually looked into it until this morning.  Everything in my home directory is dsl.staff, even though I know positively that yesterday it wasn't.


Just to confirm that I noticed a similar thing one or two months ago. On an old computer on which I used to boot a HD frugal DSL with a persistent home, I used to see everytime a few chown error message at start up before I could even login. Even though I was wondering what was going on, I didn't have a close look at the problem then.

Next Page...
original here.