Article 5F9V5 sudo appears to be using shadow authentication (Slackware64 -current)

sudo appears to be using shadow authentication (Slackware64 -current)

by
pghvlaans
from LinuxQuestions.org on (#5F9V5)
Hey, folks. I posted about this in the requests thread, but it got buried. In the interest of saving space, the details are in the original post. The short version is that sudo on -current appears to be using shadow authentication instead of PAM authentication for 64-bit systems because LIBDIRSUFFIX is not set in the SlackBuild.

I did a little poking around by compiling sudo with PAM and with shadow and testing both versions against the stock package. A script ran "time sudo id" 1000 times and found the average; the test was run five times for each version of the package. These were the results:

Quote:
stock average: 0.007203
PAM average: 0.025647
PAM average: 0.023268
shadow average: 0.007461
stock average: 0.007343
shadow average: 0.00431
shadow average: 0.004293
shadow average: 0.004641
PAM average: 0.02575
PAM average: 0.015216
PAM average: 0.0212
stock average: 0.004787
stock average: 0.004099
stock average: 0.004298
shadow average: 0.00448
So, at least on my system, it looks as though sudo behaves like it uses shadow instead of PAM. Can anyone confirm the results? The script used and a patch to add LIBDIRSUFFIX to the sudo SlackBuild are attached.
Attached Files
txt.gifsudo-test.sh.txt (580 Bytes)
txt.gifsudo.patch.txt (488 Bytes)
latest?d=yIl2AUoC8zA latest?i=m_b-exGuoo0:YFkbMpoirV8:F7zBnMy latest?i=m_b-exGuoo0:YFkbMpoirV8:V_sGLiP latest?d=qj6IDK7rITs latest?i=m_b-exGuoo0:YFkbMpoirV8:gIN9vFwm_b-exGuoo0
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments