[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Fwd: logging with pam to busybox
From:       אלכסיי סיליוק <alex.silyuk () gmail ! com>
Date:       2019-01-20 17:48:31
Message-ID: CADwLjF+_ETrCDxFn7GLUr5BJJ9VvSH3o06sgXeBvWpE+=tstCg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/related)]

[Attachment #4 (multipart/alternative)]


Hello, i am using busybox to run on my embedded device.
i am using tacacs server to authenticate to device instead of using local
database and i faced some problem.
i am removing username "su" from /etc/passwd .after that i am entering in
login prompt username "su" and password, pam mofule trying to authenticate
to tacacs server and returning FAIL, and it's ok.
After that i am using correct username and password for existing user at
tacacs server, after entering, i see in tacacs server that user
authenticated successfully but login prompt simply staing in clean screen,
as shown at attached image


[image: Screenshot_3.png]

after this, i am clicking CTRL+C and enter, trying again with same username
and password and login succeed

[image: Screenshot_4.png]

today, after enabling in config file  option

CONFIG_LOGIN_SESSION_AS_CHILD=y

and reloading device, it seems that problem described above, solved, but
now all logs of SYSLOG goes to screen instead of  /var/log/message , as you
can see in next screenshot

[image: Screenshot_5.png]



I am using RSYSLOG for syslog messages

will glad for any help,


Best regards, Alexey

[Attachment #7 (text/html)]

<div dir="ltr"><br><div class="gmail_quote"><div dir="ltr"><div dir="ltr"><div \
dir="ltr"><div>Hello, i am using busybox to run on my embedded \
device.<br></div><div>i am using tacacs server to authenticate to device instead of \
using local database and i faced some problem.</div><div>i am removing username \
&quot;su&quot; from /etc/passwd .after that i am entering in login prompt username \
&quot;su&quot; and password, pam mofule trying to authenticate to tacacs server and \
returning FAIL, and it&#39;s ok.</div><div>After that i am using correct username and \
password for existing user at tacacs server, after entering, i see in tacacs server \
that user authenticated successfully but login prompt simply staing in clean screen, \
as shown at attached image  \
</div><div><div><br></div></div><div><br></div><div><div><img src="cid:ii_jr56m3t92" \
alt="Screenshot_3.png" width="359" \
height="165"><br></div></div><div><br></div><div>after this, i am clicking CTRL+C and \
enter, trying again with same username and password and login \
succeed</div><div><br></div><div><div><img src="cid:ii_jr56ovim3" \
alt="Screenshot_4.png" width="196" \
height="158"><br></div></div><div><br></div><div>today, after enabling in config file \
option</div><div><br></div><div><div>CONFIG_LOGIN_SESSION_AS_CHILD=y</div></div><div><br></div><div>and \
reloading device, it seems that problem described above, solved, but now all logs of \
SYSLOG goes to screen instead of   /var/log/message , as you can see in next \
screenshot</div><div><br></div><div><div><img src="cid:ii_jr56utyt5" \
alt="Screenshot_5.png" width="542" \
height="243"><br></div></div><div><br></div><div><br></div><div><br></div><div>I am \
using RSYSLOG for syslog messages</div><div><br></div><div>will glad for any \
help,</div><div><br></div><div><br></div><div>Best regards, \
Alexey</div></div></div></div> </div><br clear="all"><div dir="rtl" \
class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div \
dir="rtl"><br><br></div></div></div></div>


["Screenshot_3.png" (image/png)]
["Screenshot_4.png" (image/png)]
["Screenshot_5.png" (image/png)]
["Screenshot_3.png" (image/png)]
["Screenshot_4.png" (image/png)]
["Screenshot_5.png" (image/png)]

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic