LoginManager fixed

Forum member robwoj44 has been testing running as user 'fido', and found that using the LoginManager to change back to 'root' failed:
http://murga-linux.com/puppy/viewtopic.php?t=86084&start=45

I have modified /usr/sbin/loginmanager, which now calls a new script /usr/sbin/user2root. It now works.

Separating out the code that bumps 'fido' up to 'root' enables the script user2root to be called from any other application, or direct from a terminal.

Woof commit:
http://bkhome.org/fossil/woof2.cgi/info/91e0bc9015

I played briefly with 'fido', noticed a few other things that need fixing, might have a look into it tonight.


Posted on 27 May 2013, 21:27


Comments:

Posted on 27 May 2013, 21:33 by BarryK
Avatars for fido and spot
Just had the thought, it would be good to have avatars for users 'spot' and 'fido'.

There are many non-English people who don't realise that spot and fido are dog names, hence the usernames in Puppy.

A picture of a spotty dog would clarify that 'spot' is a dog name.



Posted on 27 May 2013, 22:56 by BarryK
.XLOADED fixed
I think that it was L18L who reported the /etc/.XLOADED mechanism is broken when running non-root (ie fido).

I have moved it to /root, so scripts running non-root can create/delete it.

Woof commit:
http://bkhome.org/fossil/woof2.cgi/info/0d4b891349

Note, the effect of this bug was stopping at the console at bootup, X not starting, then requiring "xwin" to be typed in to run X.



Posted on 27 May 2013, 23:27 by L 18 L
passwords
Barry wrote:
I played briefly with 'fido', noticed a few other things that need fixing, might have a look into it tonight.

I have no solution for the problem
There is confusion if one changes password for root or fido.
They both are called "administrators's password" but can also be changed separately (passwd) so that they are not the same.

http://puppylinux.info/topic/fido-andor-multi-user-system

Or test with recent download:
# whoami
fido
# loginmanager
Password:
# # OK was root's password
#
# pmount
Sorry, try again.
Sorry, try again.
Sorry, try again.
sudo: 3 incorrect password attempts
# was root's password
>
> ^C
# pmount
/usr/sbin/pmount: line 299: 4549 Beendet yaf-splash -bg orange -fg black -close never -fontsize large -text "$(gettext 'Please wait, probing hardware...')"
# # was fido's password
#