Syllable Forum Index Syllable
Syllable Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Auto-Login

 
Post new topic   Reply to topic    Syllable Forum Index -> Bugs - Fixed
View previous topic :: View next topic  
Author Message
peat



Joined: 14 Jan 2008
Posts: 2

PostPosted: Mon Jan 14, 2008 10:24 am    Post subject: Auto-Login Reply with quote

Is it possible to create an User-Account wich boots automatic into the desktop?
Back to top
View user's profile Send private message
Vanders
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 849

PostPosted: Mon Jan 14, 2008 10:29 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
megabc



Joined: 18 May 2009
Posts: 1

PostPosted: Mon May 18, 2009 4:51 am    Post subject: Reply with quote

Hi!

Is it possible now?
Back to top
View user's profile Send private message
Vanders
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 849

PostPosted: Mon May 18, 2009 5:27 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Morph
The Knights of Syllable


Joined: 18 Oct 2007
Posts: 316
Location: Australia

PostPosted: Mon May 18, 2009 1:24 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Vanders
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 849

PostPosted: Mon May 18, 2009 1:45 pm    Post subject: Reply with quote

[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
View user's profile Send private message Send e-mail
Morph
The Knights of Syllable


Joined: 18 Oct 2007
Posts: 316
Location: Australia

PostPosted: Mon May 18, 2009 2:14 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Morph
The Knights of Syllable


Joined: 18 Oct 2007
Posts: 316
Location: Australia

PostPosted: Wed May 27, 2009 10:44 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
aritc02



Joined: 28 Feb 2008
Posts: 214

PostPosted: Wed May 27, 2009 1:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
Morph
The Knights of Syllable


Joined: 18 Oct 2007
Posts: 316
Location: Australia

PostPosted: Wed May 27, 2009 1:18 pm    Post subject: Reply with quote

Great, thanks for the report!
Back to top
View user's profile Send private message Visit poster's website
peat



Joined: 14 Jan 2008
Posts: 2

PostPosted: Tue Jun 02, 2009 1:19 pm    Post subject: Reply with quote

Finally ! Laughing
Boot into desktop in ~10 sec. ! Shocked
Keep up the good work guys! 1+
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Syllable Forum Index -> Bugs - Fixed All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group