Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142428 - x11-misc/entrance --with-xsession login block
Summary: x11-misc/entrance --with-xsession login block
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-01 07:30 UTC by Raphael Marichez (Falco) (RETIRED)
Modified: 2006-08-05 08:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raphael Marichez (Falco) (RETIRED) gentoo-dev 2006-08-01 07:30:42 UTC
Hi,

i have just installed a gentoo on a new laptop (IBM, Pentium M) with X, entrance and enlightenment (0.16, ~arched). Everything is new and nearly in default conf.

entrance refuses to allow a login : it blocks a few second after i have entered my login/password and then it comes back to the dialog box prompting for login/passwd.
It's because the reference to pam_console.so in /etc/pam.d/entrance :

session                optional        pam_console.so

if /lib/security/pam_console.so doesn't exist (which is the default case unless you mention USE="pam_console" to pam), entrance_login dies with :


Aug  1 16:10:17 sleipnir entrance_login[1166]: PAM unable to dlopen(/lib/security/pam_console.so)
Aug  1 16:10:17 sleipnir entrance_login[1166]: PAM [dlerror: /lib/security/pam_console.so: cannot open shared object file: No such file or directory]
Aug  1 16:10:17 sleipnir entrance_login[1166]: PAM adding faulty module: /lib/security/pam_console.so
Aug  1 16:10:17 sleipnir entranced: The session has ended normally.
Comment 1 Raphael Marichez (Falco) (RETIRED) gentoo-dev 2006-08-01 07:47:56 UTC
No, that's something else. I commented the pam_console line; i reemerged pam with USE="pam_console"; i reemerged entrance; i still can't login with entrance and i don't know why. :(


Aug  1 16:43:26 sleipnir entranced: Starting X server.
Aug  1 16:43:26 sleipnir entranced: Starting Entrance.
Aug  1 16:43:26 sleipnir entrance: Debug: ipc_title = /var/lib/entrance_ipc_3337
Aug  1 16:43:26 sleipnir entrance: entrance_ipc_init: Success
Aug  1 16:43:46 sleipnir entrance: PAM: Success.
Aug  1 16:43:47 sleipnir entrance: entranced: Requesting auth for uid 1000 (/home/falco)
Aug  1 16:43:47 sleipnir entrance: Executing You should reconfigure --with-xsession
Aug  1 16:43:47 sleipnir entrance: Starting session for user "falco".
Aug  1 16:43:57 sleipnir entranced: The session has ended normally.
Aug  1 16:43:58 sleipnir entrance: Debug: ipc_title = /var/lib/entrance_ipc_3337
Aug  1 16:43:58 sleipnir entrance: entrance_ipc_init: Success



So I use "startx" in a console :/
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-08-01 12:20:11 UTC
optional just means it does not _require_ it. And it is correct, nothing should _require_ pam_console.
Comment 3 Raphael Marichez (Falco) (RETIRED) gentoo-dev 2006-08-04 01:57:42 UTC
Hi vapier, i have some news. Not related with PAM so i remove PAM from Cc.

In the default conf, there is no --with-xsession argument passed to ./configure, and entrance_session_start_user_session() in entrance_session.c fails to lauch 
   execl("/bin/sh", "/bin/sh", "-l", "-c", buf, NULL);
in the child process (fork==0).

Indeed, "buf" contains:

You should reconfigure --with-xsession

Aug  4 01:07:56 sleipnir entrance: Executing You should reconfigure --with-xsession



I personnaly solved my problem by adding :
    MY_ECONF="$MY_ECONF --with-xsession=/usr/bin/e16"
in src_compile() in the ebuild, but i guess that's not the correct behaviour for other users who may want to chose an x-session.


It should be corrected IMHO since it affects a new installation in the default conf.

cheers,
Comment 4 SpanKY gentoo-dev 2006-08-04 22:09:58 UTC
my guess is you dont have xdm installed

you can either install xdm or change your entrance configuration file in /etc
Comment 5 Raphael Marichez (Falco) (RETIRED) gentoo-dev 2006-08-05 08:07:34 UTC
(In reply to comment #4)
> my guess is you dont have xdm installed

indeed

> you can either install xdm

This should be mentionned while emerging entrance then :/

> or change your entrance configuration file in /etc

i'll try it, thanks !