Dear Speidy,

Thank you for the hint and the quick help. I compared the content of
/etc/pam.d/xrdp from version 0.7 to the current master version from
the git repo and it was different:

0.7:
#%PAM-1.0
auth       required    pam_unix.so shadow nullok
auth       required    pam_env.so readenv=1
account    required    pam_unix.so

master:
#%PAM-1.0
@include common-auth
@include common-account
@include common-session
@include common-password


I now changed the content in the master-version to the content of 0.7
and the error message changes: (I use Fedora 17). It seems to not be
able to start the X server and complains about an already running
xserver, but I do not understand why (also changing the display offset
does not help). Was my adjustment of the /etc/pam.d/xrdp-sesman wrong
or is it a new problem?

starting sesman in foregroud...
sesman config:
    ListenAddress:            127.0.0.1
    ListenPort:               3350
    EnableUserWindowManager:  1
    UserWindowManager:        startwm.sh
    DefaultWindowManager:     startwm.sh
    AuthFilePath:             disabled
Xvnc parameters:
    Parameter 00                   -bs
    Parameter 01                   -ac
    Parameter 02                   -nolisten
    Parameter 03                   tcp
    Parameter 04                   -localhost
    Parameter 05                   -dpi
    Parameter 06                   96
X11rdp parameters:
    Parameter 00                   -bs
    Parameter 01                   -ac
    Parameter 02                   -nolisten
    Parameter 03                   tcp
    Parameter 04                   -uds
security configuration:
    AllowRootLogin:       1
    MaxLoginRetry:        4
    AlwaysGroupCheck:     0
    No TSUsersGroup defined
    No TSAdminsGroup defined
session configuration:
    MaxSessions:                 10
    X11DisplayOffset:            10
    KillDisconnected:            0
    IdleTimeLimit:               0
    DisconnectedTimeLimit:       0
logging configuration:
    LogFile:       /var/log/xrdp-sesman.log
    LogLevel:      4
    EnableSyslog:  1
    SyslogLevel:   4
[20130711-11:56:50] [WARN ] [init:46] libscp initialized
[20130711-11:56:50] [CORE ] starting sesman with pid 2310
[20130711-11:56:50] [INFO ] listening...
[20130711-11:57:11] [INFO ] A connection received from: 127.0.0.1 port 33972
[20130711-11:57:11] [INFO ] scp thread on sck 8 started successfully
[20130711-11:57:11] [INFO ] ++ created session (access granted):
username fsl, ip 10.40.65.41:54024 - socket: 8
[20130711-11:57:11] [INFO ] starting X11rdp session...
[20130711-11:57:11] [INFO ] An established connection closed to
endpoint: NULL:NULL - socket: 9
[20130711-11:57:12] [INFO ] An established connection closed to
endpoint: NULL:NULL - socket: 9
[20130711-11:57:12] [INFO ] An established connection closed to
endpoint: NULL:NULL - socket: 9
[20130711-11:57:12] [INFO ] An established connection closed to
endpoint: NULL:NULL - socket: 9
[20130711-11:57:12] [INFO ] An established connection closed to
endpoint: NULL:NULL - socket: 9
[20130711-11:57:12] [INFO ] An established connection closed to
endpoint: NULL:NULL - socket: 9
[20130711-11:57:12] [INFO ] An established connection closed to
endpoint: NULL:NULL - socket: 9
[20130711-11:57:12] [INFO ] An established connection closed to
endpoint: NULL:NULL - socket: 9
[20130711-11:57:12] [INFO ] An established connection closed to
endpoint: NULL:NULL - socket: 9
[20130711-11:57:12] [INFO ] An established connection closed to
endpoint: NULL:NULL - socket: 7
[20130711-11:57:12] [INFO ] An established connection closed to
endpoint: 127.0.0.1:33972 - socket: 8
[20130711-11:57:12] [INFO ] An established connection closed to
endpoint: 127.0.0.1:33972 - socket: 8
pam_open_session failed: Cannot make/remove an entry for the specified session
[20130711-11:57:12] [INFO ] X11rdp start:X11rdp :13 -geometry
1280x1024 -depth 24 -bs -ac -nolisten tcp -uds
[20130711-11:57:12] [CORE ] error starting X server - user fsl - pid 2322
[20130711-11:57:12] [DEBUG] errno: 2, description: No such file or directory
[20130711-11:57:12] [DEBUG] execve parameter list size: 12
[20130711-11:57:12] [DEBUG]         argv[0] = X11rdp
[20130711-11:57:12] [DEBUG]         argv[1] = :13
[20130711-11:57:13] [DEBUG]         argv[2] = -geometry
[20130711-11:57:13] [DEBUG]         argv[3] = 1280x1024
[20130711-11:57:13] [DEBUG]         argv[4] = -depth
[20130711-11:57:13] [DEBUG]         argv[5] = 24
[20130711-11:57:13] [DEBUG]         argv[6] = -bs
[20130711-11:57:13] [DEBUG]         argv[7] = -ac
[20130711-11:57:13] [DEBUG]         argv[8] = -nolisten
[20130711-11:57:13] [DEBUG]         argv[9] = tcp
[20130711-11:57:13] [DEBUG]         argv[10] = -uds
[20130711-11:57:13] [DEBUG]         argv[11] = (null)
[20130711-11:57:22] [ERROR] X server for display 13 startup timeout
[20130711-11:57:22] [INFO ] starting xrdp-sessvc - xpid=2322 - wmpid=2321
[20130711-11:57:22] [ERROR] X server for display 13 startup timeout
xrdp-sessvc: waiting for X (pid 2322) and WM (pid 2321)
chansrv::main: using log file [/home/fsl/xrdp-chansrv.log]
[20130711-11:57:22] [CORE ] main: app started pid 2323(0x00000913)
[20130711-11:57:22] [ERROR] another Xserver might already be active on
display 13 - see log
[20130711-11:57:22] [DEBUG] aborting connection...
xrdp-sessvc: WM is dead (waitpid said 2321, errno is 0) exiting...
xrdp-sessvc: stopping channel server
chansrv:clip [3442075465]: clipboard_deinit:
xrdp-sessvc: stopping X server
xrdp-sessvc: clean exit
[20130711-11:57:22] [INFO ] ++ terminated session:  username fsl,
display :13.0, session_pid 2320, ip 10.40.65.41:54024 - socket: 8

2013/7/10 speidy <spe...@gmail.com>:
> depending on your distro, PAM configuration may be different.
> look in xrdp/instfiles/pam.d for xrdp-sesman.other for different PAM config.
>
>
>
>
> --
> View this message in context: 
> http://xrdp-devel.766250.n3.nabble.com/Xrdp-devel-pam-authenticate-failed-Permission-denied-tp4025193p4025194.html
> Sent from the XRDP Devel mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> xrdp-devel mailing list
> xrdp-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xrdp-devel

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
xrdp-devel mailing list
xrdp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xrdp-devel

Reply via email to