Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Problem getting PAM free system [solved]

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
nirax
Guru
Guru
User avatar
Posts: 319
Joined: Tue Jul 06, 2004 9:18 am
Location: Germany, old Europe

Problem getting PAM free system [solved]

  • Quote

Post by nirax » Thu Jan 10, 2008 10:38 pm

Hi,

after the hassle with PAM 0.99 upgrading, i checked if i actually require PAM for private use and the answer for me was: no.
So i started to check and quickly found this guide:
http://gentoo-wiki.com/HOWTO_Remove_PAM

i followed it
1) added -pam to make.conf
2) performed:
# emerge -C pam pam-login && emerge -N shadow
3)
# dispatch-conf
4)
# vim /etc/login.defs (changed wheel setting as suggested in howto)
5)
# echo "root:ALL EXCEPT GROUP wheel:DENY" >> /etc/suauth
# -> OK all sudo / su works again

6) than
# emerge -av --oneshot --nodeps `qdepends -CQ pam | sed 's/^/=/'`
in order to re-emerge every package depending on pam
7)
# emerge -uDN world
8) revdep-rebuild

OK now everything should and seems to run pam free.


now the problem occurs:

eix-sync && emerge -uDva world
what comes up ?

Code: Select all

emerge -uDva world
Virtual package in package.provided: virtual/x11-6.8
See portage(5) for correct package.provided usage.

These are the packages that would be merged, in order:

Calculating world dependencies... done!
[ebuild  N    ] sys-libs/pam-0.99.8.1-r1  USE="cracklib nls -audit (-selinux) -test -vim-syntax" 0 kB 
uh ? come on what pulls it still?

Code: Select all

equery d pam
Virtual package in package.provided: virtual/x11-6.8
See portage(5) for correct package.provided usage.
[ Searching for packages depending on pam... ]
app-admin/sudo-1.6.8_p12-r1 (pam? sys-libs/pam)
                            (pam? virtual/pam)
app-misc/mc-4.6.1-r4 (pam? >=sys-libs/pam-0.72)
app-misc/screen-4.0.3 (pam? virtual/pam)
dev-util/cvs-1.12.12-r4 (pam? virtual/pam)
gnome-base/gdm-2.20.1 (pam? virtual/pam)
gnome-base/gnome-keyring-2.20.1 (pam? virtual/pam)
gnome-extra/gnome-screensaver-2.20.0 (pam? virtual/pam)
net-fs/samba-3.0.28 (pam? virtual/pam)
net-ftp/ftpbase-0.01 (pam? sys-libs/pam)
                     (pam? virtual/pam)
net-ftp/vsftpd-2.0.5-r3 (pam? sys-libs/pam)
                        (pam? virtual/pam)
net-mail/mailbase-1 (pam? virtual/pam)
net-misc/netkit-rsh-0.17-r8 (pam? virtual/pam)
net-misc/openssh-4.7_p1-r1 (pam? virtual/pam)
net-print/cups-1.2.12-r4 (pam? virtual/pam)
sys-apps/busybox-1.7.4 (pam? sys-libs/pam)
sys-apps/shadow-4.0.18.1-r1 (pam? virtual/pam)
sys-auth/consolekit-0.2.3 (pam? virtual/pam)
sys-process/vixie-cron-4.1-r10 (pam? virtual/pam)
uhm did i not just recompiled it ?

Code: Select all

qdepends -CQ pam
sys-apps/shadow-4.0.18.1-r1
qdepends lists shadow as dependant on PAM ?, while equery shows up the whole old application tree (which were pam dependant before shifting to PAM. on step 6 also qdepends showed the same list as equery and thus recompiled it with -pam use flag.

Code: Select all

emerge -vp shadow
Virtual package in package.provided: virtual/x11-6.8
See portage(5) for correct package.provided usage.

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-apps/shadow-4.0.18.1-r1  USE="cracklib nls -nousuid -pam (-selinux) -skey" 0 kB 
Use flag shows well -pam.
I dont see
1) why equery and qdepends show different state.
2) why shadow pulls after qdepends PAM.
or 3) why PAM is still beeing required after following the howto


does anyone has an idea to it ? would be most appreciated.

greetings from germany,
nirax
Last edited by nirax on Thu Jan 10, 2008 10:57 pm, edited 1 time in total.
quot licet iovi non licet bovi
Top
nirax
Guru
Guru
User avatar
Posts: 319
Joined: Tue Jul 06, 2004 9:18 am
Location: Germany, old Europe

  • Quote

Post by nirax » Thu Jan 10, 2008 10:45 pm

most interesting i just tried an

emerge -pv --depclean and the output was
.......

Code: Select all

Calculating dependencies... done!

Dependencies could not be completely resolved due to
the following required packages not being installed:

>=sys-libs/pam-0.78 required by net-mail/mailbase-1
mailbase-1 requires it ? how comes the other dependency tools do not show it up hm

moreover it really used PAM use flag (as PAM or -PAM), but was not treated by newuse world, or qdepends when i piped the output ?

Code: Select all

emerge -vp mailbase
Virtual package in package.provided: virtual/x11-6.8
See portage(5) for correct package.provided usage.

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] net-mail/mailbase-1  USE="-pam*" 0 kB 
Last edited by nirax on Thu Jan 10, 2008 10:49 pm, edited 1 time in total.
quot licet iovi non licet bovi
Top
nirax
Guru
Guru
User avatar
Posts: 319
Joined: Tue Jul 06, 2004 9:18 am
Location: Germany, old Europe

  • Quote

Post by nirax » Thu Jan 10, 2008 10:47 pm

that was the problem-maker..

Code: Select all

emerge --update --newuse mailbase

emerge -uDva world
Virtual package in package.provided: virtual/x11-6.8
See portage(5) for correct package.provided usage.

These are the packages that would be merged, in order:

Calculating world dependencies... done!

Total: 0 packages, Size of downloads: 0 kB
No PAM pulling anymore. => solved,.
quot licet iovi non licet bovi
Top
Post Reply

3 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic