cyx_mail writes: > from which hook , I can get the usrname that pppd used? both chap or pap, is that a same hook? What "user name" do you want? Inside of a script, pppd sets a bunch of environment variables, which are documented in the "SCRIPTS" section of the man page. (You've read through the man page, correct?) If the peer authenticates itself, then PEERNAME will be set. The variables ORIG_UID and PPPLOGNAME have the invoking user's UID and name. The local 'name' value in use (the our_name[] array) isn't put into the environment. Perhaps it could be. If you're not talking about a script, but are instead talking about a pppd plugin, then you can just reference the variables you want -- our_name[] or peer_authname[]. It's possible that you may need to provide more details about what you're attempting to do, what you've already tried to do, and what doesn't work in order to get more substantial guidance. -- James Carlson 42.703N 71.076W <carlsonj@xxxxxxxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-ppp" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html