| View previous topic :: View next topic |
| Author |
Message |
peat
Joined: 14 Jan 2008 Posts: 2
|
Posted: Mon Jan 14, 2008 10:24 am Post subject: Auto-Login |
|
|
| Is it possible to create an User-Account wich boots automatic into the desktop? |
|
| Back to top |
|
 |
Vanders The Knights of Syllable
Joined: 14 Sep 2007 Posts: 830
|
Posted: Mon Jan 14, 2008 10:29 am Post subject: |
|
|
| No, although it's not a bad idea for the future. The best you can do at the moment is to edit the /system/init.sh script to start the Desktop instead of Dlogin, but that is considered a hack and it may not work fully as a result. |
|
| Back to top |
|
 |
megabc
Joined: 18 May 2009 Posts: 1
|
Posted: Mon May 18, 2009 4:51 am Post subject: |
|
|
Hi!
Is it possible now? |
|
| Back to top |
|
 |
Vanders The Knights of Syllable
Joined: 14 Sep 2007 Posts: 830
|
Posted: Mon May 18, 2009 5:27 am Post subject: |
|
|
| No, but I shall move this thread to the "Bugs" section (as a feature request) and we'll see what we can do for the next release. |
|
| Back to top |
|
 |
Morph The Knights of Syllable
Joined: 18 Oct 2007 Posts: 296 Location: Australia
|
Posted: Mon May 18, 2009 1:24 pm Post subject: |
|
|
I might get a chance to implement this sometime soon. Here are some thoughts:
Where would you store the auto-login information and settings? Currently dlogin saves its settings (ie, the last selected user) in an attribute of the dlogin executable. But this has some disadvantages:
* if the user upgrades the dlogin binary or uses a custom login app, the attribute may be lost
* there is (currently) no security for attributes, so any user could change the auto-login settings
* attributes could be lost if backing up, etc to an old filesystem
* settings aren't stored in a centralised place eg /system/config
I'd suggest creating a config file in /system/config in which to store the settings. We could also store the last-selected user and keymap info there too. As long as the config file is writeable only by root, the security is fine. The Users & Groups pref already runs as suid root anyway (right?) so it will be able to write the config. The config file won't store any passwords, only the username to be automatically logged in will be stored.
How does this sound? |
|
| Back to top |
|
 |
Vanders The Knights of Syllable
Joined: 14 Sep 2007 Posts: 830
|
Posted: Mon May 18, 2009 1:45 pm Post subject: |
|
|
[quote="Morph"]The Users & Groups pref already runs as suid root anyway (right?) so it will be able to write the config.[/quote]
No. It can only be run as root for obvious reasons.
[quote]The config file won't store any passwords, only the username to be automatically logged in will be stored.[/quote]
That's fine: if dlogin is automatically logging someone in, it doesn't require a password. dlogin runs as root (everything in the init sequence does) so it can just setuid() itself with or without a password. |
|
| Back to top |
|
 |
Morph The Knights of Syllable
Joined: 18 Oct 2007 Posts: 296 Location: Australia
|
Posted: Mon May 18, 2009 2:14 pm Post subject: |
|
|
Ah yes, I was confused, the 'Login details' pref, which a regular user uses to change password, is suid root, and the Users & Groups can only be run as root. I suppose the autologin gui would go in the Users & Groups pref.
While I'm at it, maybe I'll clean the U&G prefs up a little, for instance hide the 'www', 'news' etc users unless a "Show system users" checkbox is on. |
|
| Back to top |
|
 |
Morph The Knights of Syllable
Joined: 18 Oct 2007 Posts: 296 Location: Australia
|
Posted: Wed May 27, 2009 10:44 am Post subject: |
|
|
| This has been implemented in CVS and will be in the next development build. You can configure autologin from the Users&Groups pref (as root). |
|
| Back to top |
|
 |
aritc02
Joined: 28 Feb 2008 Posts: 214
|
Posted: Wed May 27, 2009 1:04 pm Post subject: |
|
|
| I have just downloaded the code and compiled both and tested them on the 0.6.6 Dec 29th build. Works great. Nice work. I also like the idea of hiding all those system users and groups by default. Certainly makes things less confusing. |
|
| Back to top |
|
 |
Morph The Knights of Syllable
Joined: 18 Oct 2007 Posts: 296 Location: Australia
|
Posted: Wed May 27, 2009 1:18 pm Post subject: |
|
|
| Great, thanks for the report! |
|
| Back to top |
|
 |
peat
Joined: 14 Jan 2008 Posts: 2
|
Posted: Tue Jun 02, 2009 1:19 pm Post subject: |
|
|
Finally !
Boot into desktop in ~10 sec. !
Keep up the good work guys! 1+ |
|
| Back to top |
|
 |
|