autologin broke after username and passwords changed

Please reproduce your error on a second machine before posting, and check the error by running without saved changes or extra modules (See FAQ No. 13, "How to report a bug"). For unstable Porteus versions (alpha, beta, rc) please use the relevant thread in our "Development" section.
brent3hasty
Ronin
Ronin
Posts: 3
Joined: 06 Oct 2012, 07:57
Location: United States

autologin broke after username and passwords changed

Post#1 by brent3hasty » 06 Oct 2012, 21:24

I have a fresh built usb stick with Porteus 32-bit, it booted to kde with autologin, I changed the password for root, then deleted the "guest" account using kuser, and created a new user "userxxx" and set the UID to 1000 (the same as guest was), then I went to kcontrol and set the system administration>login manager>convience from guest to userxxx as the user to autologin. However when I reboot from the usb stick it tries to launch kde but fails and falls back to command line. When I reboot from the usb stick and slect always fresh it autologsin and loads kde.

How do I get it to autologin my set userxxx?

brent3hasty
Ronin
Ronin
Posts: 3
Joined: 06 Oct 2012, 07:57
Location: United States

Re: autologin broke after username and passwords changed

Post#2 by brent3hasty » 06 Oct 2012, 21:25

ps, when it fails to launch kde and kicks me to the command line I can login as userxxx and issue startx and everything works, I want to eliminate the need to login from command line and manually startx, need autologin fix?

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: autologin broke after username and passwords changed

Post#3 by fanthom » 07 Oct 2012, 07:36

hi brent3hasty,

please edit /etc/rc.d/rc.M and replace 'guest' with name of your user.

@all
would it make sense to replace 'toroot' cheatcode with 'autologin=' so users could specify any user they want?
Please add [Solved] to your thread title if the solution was found.

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: autologin broke after username and passwords changed

Post#4 by brokenman » 07 Oct 2012, 19:12

would it make sense to replace 'toroot' cheatcode with 'autologin=' so users could specify any user they want?
I believe this is a better solution as shown in the above example where a user changes the user name. It could replace 'toroot' and makes it more flexible. I vote yes!
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: autologin broke after username and passwords changed

Post#5 by Hamza » 07 Oct 2012, 19:22

My vote is No. Because an unauthorized user can access to another account like in Windoze. Many accounts. If we can block 'on-the-fly boot command edit' with TAB button then I'll vote Yes!
NjVFQzY2Rg==

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: autologin broke after username and passwords changed

Post#6 by fanthom » 08 Oct 2012, 08:39

@Hamza
so far user could just use 'toroot' cheatcode to access other accounts so 'autologin=user_name' wont change much.
we can't afford disabling command line editing in standard editions.

will implement 'autologin=xx' in rc.M.
'autologin=root' will replace 'toroot' cheatcode
'autologin=' will replace 'noautologin'

this way we reduce number of cheats and extend Porteus functionality :)

@Ahau

please add 'autologin=' to your TODO list for documentation updates for porteus-2.0.

EDIT:\\
@Ahau
'autologin=' is a bit long to type. let's stick to 'login=' instead.
please also mention that it's going to work for GUI only as autologin to text mode is a bit more complicated (and requires external utility) as per:
http://forum.porteus.org/viewtopic.php?f=81&t=1560
Please add [Solved] to your thread title if the solution was found.

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: autologin broke after username and passwords changed

Post#7 by Hamza » 08 Oct 2012, 09:26

we can't afford disabling command line editing in standard editions.
I understand. We may add an option to disable it for "experimented users" ? A cheat in syslinux/isolinux cfg files ?
NjVFQzY2Rg==

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: autologin broke after username and passwords changed

Post#8 by fanthom » 08 Oct 2012, 11:01

We may add an option to disable it for "experimented users" ? A cheat in syslinux/isolinux cfg files
setting 'timeout' value to '0' in porteus.cfg is all what user need to do to disable commandline editing.
Please add [Solved] to your thread title if the solution was found.

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: autologin broke after username and passwords changed

Post#9 by Hamza » 08 Oct 2012, 13:30

I know. You have used this way to disable it in another project. But allowing switching between versions and allowing editing boot command are not the same from my point of view.
NjVFQzY2Rg==

User avatar
schultzter
White ninja
White ninja
Posts: 4
Joined: 09 May 2011, 03:25
Distribution: Slackware
Location: Montreal, QC
Contact:

Re: autologin broke after username and passwords changed

Post#10 by schultzter » 17 Nov 2012, 03:09

I'd like to add my vote to an autologin or login or whatever cheat code.

I took a look at rc.M and I'm not afraid of bash scripts, I've written my fair share, but I'd rather not mess with such an important, base file.

Also, I share my NAS via NFS - since all my hosts are Linux it makes sense. Even in Porteus I'd really like to keep the users in sync. So using guest in Porteus is not preferred.

Thanks,
--
Headed for the second star to the right and straight on 'til morning...

Eric Schultz (aka schultzter)
Read more at 2FatDads

Post Reply