Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49954 - quagga vtysh pam
Summary: quagga vtysh pam
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Amir Guindehi (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-04 03:29 UTC by Tomasz Orzechowski
Modified: 2004-10-22 02:13 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 Tomasz Orzechowski 2004-05-04 03:29:03 UTC
vtysh from the quagga package requires a /etc/pam.d/quagga file - else it uses /etc/pam.d/other which implicitly denies everyone access and vtysh does not report a proper error in this case
Comment 1 Amir Guindehi (RETIRED) gentoo-dev 2004-07-16 07:38:42 UTC
Hmm. And what should that default pam.d/quagga file contain?
One normally is quite restictive on who may access a router, so a default of no access if probably not such a bad idea.
Comment 2 Dan Clemmensen 2004-07-25 11:14:49 UTC
I think this is a quagga documentation problem, not a Gentoo quagga ebuild problem. The best fix would be to enhance the vtysh section of the quagga info document. Next best would be to add comments in the file
   /etc/quagga/sample/vtysh.conf.sample
to at least point to the PAM documentation. If this must be fixed at the ebuild level, I recommend inserting a file
    /etc/quagga/sample/vtysh.conf.pamsample
That briefly describes what to do.

I'm commenting here because I could not get vtysh running, and this bug report was the only resource I found that told me why.
Comment 3 Benjamin Collins 2004-08-11 10:06:22 UTC
<i>I think this is a quagga documentation problem, not a Gentoo quagga ebuild problem.</i>

No, this is not a documentation problem.  If you build quagga with USE=pam, vtysh will expect the /etc/pam.d/quagga file to exist.  The quagga ebuild currently does not create that file; thus this is an ebuild bug.  Better documentation is always better, but that won't fix this problem.
Comment 4 Amir Guindehi (RETIRED) gentoo-dev 2004-08-12 02:24:41 UTC
Yes, it expects a pam.d file IF you want someone to be able to logon. If you don't want anybody loggin in, the file should not exist. Now, for security reasons, I would propose to NOT include that file, since pam will fallback to pam.d/other, which will not let the user login! That's correct, isn't it?
Comment 5 Claudiu Gafton 2004-10-19 07:33:25 UTC
I copied /etc/pam.d/quagga from a fc2 to my gentoo...and now all works OK! :)
Comment 6 Amir Guindehi (RETIRED) gentoo-dev 2004-10-22 02:13:14 UTC
For security reasons we want /etc/pam.d/quagga not to exist. Users who want to allow vtysh access will have to configure pam to allow it. Without /etc/pam.d/quagga pam will fall back to /etc/pam.d/others which will disallow access.