Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PAM what is it good for ... absolutely nothing I suppose
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
MagnusBerg
Guru
Guru


Joined: 07 Oct 2003
Posts: 370
Location: Burgsvik, Gotland, Sweden

PostPosted: Sun Mar 13, 2005 7:38 pm    Post subject: PAM what is it good for ... absolutely nothing I suppose Reply with quote

PAM is a pain in my ass and I just wonder if it is really necessary to have it installed. If not I will be glad to recompile hole my system to have a PAM/pain -free system.

Right now I suppose PAM is responsible for my Alsa/sound permissionproblems that force me to do a "/etc/init.d/alsasound restart" after every boot, and that's not my first problem with PAM.
Back to top
View user's profile Send private message
GordSki
Guru
Guru


Joined: 18 Oct 2004
Posts: 329

PostPosted: Sun Mar 13, 2005 7:44 pm    Post subject: Reply with quote

That seems odd....

:?

What make you think PAM is responsible?

PAM should only come into play if your logging in/changing user......

G.
Back to top
View user's profile Send private message
rhill
Retired Dev
Retired Dev


Joined: 22 Oct 2004
Posts: 1629
Location: sk.ca

PostPosted: Sun Mar 13, 2005 7:57 pm    Post subject: Reply with quote

PAM messes with device permissions.

if it's any use, i've not used PAM for a very long time and i'm doing alright. drop it, and then UDEV can be the pain in your ass.
_________________
by design, by neglect
for a fact or just for effect
Back to top
View user's profile Send private message
_mikec_
Guru
Guru


Joined: 22 May 2004
Posts: 386

PostPosted: Sun Mar 13, 2005 8:10 pm    Post subject: Reply with quote

i had to do

Code:
chmod 0666 /dev/nvidia*
chown root:root /dev/nvidia*


on each reboot, now i running this add boot with a script untill i figure this out, but for now i dont really care about it.
_________________
(8 Mars 2005 - 07:52:46)
(18 September 2017 - 11:25:35)
Back to top
View user's profile Send private message
MagnusBerg
Guru
Guru


Joined: 07 Oct 2003
Posts: 370
Location: Burgsvik, Gotland, Sweden

PostPosted: Sun Mar 13, 2005 8:29 pm    Post subject: Reply with quote

dirtyepic wrote:
PAM messes with device permissions.

if it's any use, i've not used PAM for a very long time and i'm doing alright. drop it, and then UDEV can be the pain in your ass.


Are you using a '-pam' flag in your make.conf or have you just skipped to installed the Pam application?

My problem with Alsa started after the latest upgrade to alsa-headers-1.0.8, alsa-lib-1.0.8, alsa-utils-1.0.8, and alsa-oss-1.0.8-r1. "/etc/init.d/alsasound restart" changes the permissons in the /dev/snd/ directory to useful ones.
Back to top
View user's profile Send private message
GordSki
Guru
Guru


Joined: 18 Oct 2004
Posts: 329

PostPosted: Sun Mar 13, 2005 8:40 pm    Post subject: Reply with quote

Try removing/modifying this line from '/etc/security/console.perms':

Code:

<console>  0600 <sound>      0600 root.audio


Might save you having remege your whole system.

Didn't know PAM messes with permissions in this way. It seems a bit redundant when you have things like udev, etc......


G.
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Sun Mar 13, 2005 8:40 pm    Post subject: Reply with quote

You can make pam stop messing with device permissions. The file to see is /etc/security/console.perms. Also "man 5 console.perms"
I agree that pam is overkill for a home user. But at the moment ripping it out just looks like even more hassle than configuring it.:lol:
Back to top
View user's profile Send private message
MagnusBerg
Guru
Guru


Joined: 07 Oct 2003
Posts: 370
Location: Burgsvik, Gotland, Sweden

PostPosted: Tue Mar 15, 2005 8:09 am    Post subject: Reply with quote

I'm going crasy...
This early morning then I started up the sound worked as it should. The permissions in /dev/snd and /dev/sound was the same - magnus:audio - which didn't work yesterday. The things I have change since previous boot yesterday was changing my icons becuase of a Glib errormessage (about that: read this tread) and cleaned out my old Xfce4 configfiles from ~/ then I tried to find a solution for the Glib error. But whose configs worked before upgrading Alsa.
Next boot will show if my luck will consist.....
Back to top
View user's profile Send private message
mrv
Tux's lil' helper
Tux's lil' helper


Joined: 29 Mar 2004
Posts: 114
Location: Oulu, Finland

PostPosted: Tue Mar 15, 2005 10:58 am    Post subject: Reply with quote

Hi,

I would also like to disable PAM, because I don't have any use for it. Is it just enough if I add -pam in my USE flags and recompile these packages in my system?

Code:
xxxxxx root # equery hasuse pam
[ Searching for USE flag pam in all categories among: ]
 * installed packages
[I--] [  ] app-misc/screen-4.0.2-r1 (0)
[I--] [  ] kde-base/kdebase-3.3.2-r2 (3.3)
[I--] [  ] net-mail/mailbase-0.00-r8 (0)
[I--] [  ] net-misc/openssh-3.9_p1-r1 (0)
[I--] [  ] net-print/cups-1.1.23-r1 (0)
[I--] [  ] sys-apps/util-linux-2.12i-r1 (0)
[I--] [  ] sys-apps/shadow-4.0.5-r3 (0)
[I--] [  ] sys-libs/cracklib-2.7-r10 (0)
[I--] [  ] sys-process/vixie-cron-4.1-r4 (0)
[I--] [  ] x11-base/xorg-x11-6.8.2-r1 (0)


-mrv-
Back to top
View user's profile Send private message
Nard`
Apprentice
Apprentice


Joined: 23 Jan 2005
Posts: 250

PostPosted: Tue Mar 15, 2005 11:30 am    Post subject: Reply with quote

add -pam to your USE flags, emerge --newuse --deep -av world && emerge -av depclean

theres a thread about removing PAM somewhere.
_________________
Programming is the process of putting bugs in.
Debugging is the process of attempting to take bugs out, doing an ugly hack, hitting your computer, then claiming insurance.
Back to top
View user's profile Send private message
MagnusBerg
Guru
Guru


Joined: 07 Oct 2003
Posts: 370
Location: Burgsvik, Gotland, Sweden

PostPosted: Tue Mar 15, 2005 1:45 pm    Post subject: Reply with quote

Nard` wrote:
add -pam to your USE flags, emerge --newuse --deep -av world && emerge -av depclean

theres a thread about removing PAM somewhere.


Thanks for that tips. Even if it seems that PAM wasn't responsible for my Alsaproblem I found PAM useless for my needs and a troublemaker.
Back to top
View user's profile Send private message
_mikec_
Guru
Guru


Joined: 22 May 2004
Posts: 386

PostPosted: Tue Mar 15, 2005 2:00 pm    Post subject: Reply with quote

what should i do about this error? and also is it safe to R remove openssh...gcc....portage...nitro-sources.......dam they are going to be removed if i remove PAM?

Code:
TB0x xb0x # emerge --newuse --deep -av world

These are the packages that I would merge, in order:

Calculating world dependencies ...done!

[blocks B     ] sys-apps/pam-login (is blocking sys-apps/shadow-4.0.7-r1)
[ebuild   R   ] x11-misc/xscreensaver-4.20  -debug -gnome +gtk* +jpeg +kerberos -krb4 +motif -offensive +opengl -pam* -xinerama 0 kB
[ebuild   R   ] net-misc/openssh-3.9_p1-r1  -X509 -chroot -debug +ipv6 +kerberos -ldap -pam* (-selinux) -sftplogging -skey -smartcard -static +tcpd (-uclibc) 0 kB
[ebuild   R   ] sys-devel/gcc-3.4.3.20050110  -bootstrap* -boundschecking -build -debug +fortran -gcj +gtk* -hardened (-ip28) (-multilib) -multislot (-n32) (-n64) +nls -nocxx -objc -static (-uclibc) 0 kB
[ebuild   R   ] sys-apps/sed-4.1.4  -bootstrap* -build -debug +nls -static 0 kB
[ebuild   R   ] media-video/mplayer-1.0_pre6  +3dfx +3dnow -3dnowex +X -aalib +alsa (-altivec) +arts* +avi -bidi -cdparanoia -debug +dga -directfb -divx4linux -doc -dts -dv -dvb -dvd* -dvdread -edl +encode +esd +fbcon -ggi +gif +gtk -i8x0 +ipv6 -jack -joystick +jpeg -libcaca -lirc -live -lzo +mad -matroska -matrox +mmx -mmx2 +mpeg -mythtv -nas +nls -nvidia +oggvorbis +opengl +oss +png -real -rtc -samba +sdl -sse* -sse2* +svga -tga -theora +truetype -v4l -v4l2 -xanim -xinerama +xmms +xv +xvid -xvmc 0 kB
[ebuild   R   ] x11-misc/xlockmore-5.12  +esd +gtk* +motif -nas +opengl -pam* +truetype 0 kB
[ebuild   R   ] sys-apps/portage-2.0.51.19  -build* -debug (-selinux) 0 kB
*** Portage will stop merging at this point and reload itself,
    recalculate dependencies, and complete the merge.
    You may avoid the remerging of packages by updating portage on its own.
[ebuild   R   ] x11-wm/fvwm-2.5.12  -bidi -debug +gtk +gtk2 +imlib +nls +perl +png +readline -rplay -stroke* +tcltk +truetype -xinerama 0 kB
[ebuild   R   ] sys-kernel/nitro-sources-2.6.11-r0  -build -doc -symlink* -want-experimental 0 kB [1]
[ebuild   R   ] sys-apps/shadow-4.0.7-r1  -debug +nls -pam* (-selinux) -skey 0 kB
[ebuild   R   ] net-im/gaim-1.1.4  -cjk -debug -eds -gnutls -krb4 -nas +nls +perl -silc +spell +tcltk* 0 kB
[ebuild   R   ] dev-lang/python-2.3.5  +X +berkdb -bootstrap -build -debug -doc +gdbm +ipv6 +ncurses +readline +ssl +tcltk* -ucs2 0 kB
[ebuild   R   ] sys-apps/util-linux-2.12q  +crypt -debug +nls -old-crypt -pam* +perl (-selinux) -static 0 kB
[ebuild   R   ] media-tv/mythtv-0.17  +alsa +arts -cle266 -debug -dvb -ieee1394 -lcd -lirc* +mmx +nls -nvidia +opengl +xv 0 kB
[ebuild   R   ] sys-process/fcron-2.9.5.1-r3  -debug -doc -pam* (-selinux) 0 kB
[ebuild   R   ] net-www/netscape-flash-7.0.25  +gtk* 684 kB
[ebuild   R   ] app-cdr/k3b-0.11.20  +arts -debug -dvdr +encode +flac* +kde -kdeenablefinal +mad +oggvorbis -xinerama 0 kB

Total size of downloads: 684 kB
Portage overlays:
 [1] /usr/local/portage

!!! Error: The above package list contains packages which cannot be installed
!!!        on the same system.

TB0x xb0x # emerge --newuse --deep world
Calculating world dependencies ...done!

!!! Error: the sys-apps/pam-login package conflicts with another package.
!!!        both can't be installed on the same system together.
!!!        Please use 'emerge --pretend' to determine blockers.
TB0x xb0x # emerge --newuse --deep --pretend world

These are the packages that I would merge, in order:

Calculating world dependencies ...done!

[blocks B     ] sys-apps/pam-login (is blocking sys-apps/shadow-4.0.7-r1)
[ebuild   R   ] x11-misc/xscreensaver-4.20
[ebuild   R   ] net-misc/openssh-3.9_p1-r1
[ebuild   R   ] sys-devel/gcc-3.4.3.20050110
[ebuild   R   ] sys-apps/sed-4.1.4
[ebuild   R   ] media-video/mplayer-1.0_pre6
[ebuild   R   ] x11-misc/xlockmore-5.12
[ebuild   R   ] sys-apps/portage-2.0.51.19
*** Portage will stop merging at this point and reload itself,
    recalculate dependencies, and complete the merge.
    You may avoid the remerging of packages by updating portage on its own.
[ebuild   R   ] x11-wm/fvwm-2.5.12
[ebuild   R   ] sys-kernel/nitro-sources-2.6.11-r0
[ebuild   R   ] sys-apps/shadow-4.0.7-r1
[ebuild   R   ] net-im/gaim-1.1.4
[ebuild   R   ] dev-lang/python-2.3.5
[ebuild   R   ] sys-apps/util-linux-2.12q
[ebuild   R   ] media-tv/mythtv-0.17
[ebuild   R   ] sys-process/fcron-2.9.5.1-r3
[ebuild   R   ] net-www/netscape-flash-7.0.25
[ebuild   R   ] app-cdr/k3b-0.11.20
TB0x xb0x #


gcc, openssh, mplayer, portage aren't going to be remerge?
_________________
(8 Mars 2005 - 07:52:46)
(18 September 2017 - 11:25:35)
Back to top
View user's profile Send private message
MagnusBerg
Guru
Guru


Joined: 07 Oct 2003
Posts: 370
Location: Burgsvik, Gotland, Sweden

PostPosted: Tue Mar 15, 2005 2:36 pm    Post subject: Reply with quote

Not removed - replaced with the newcompiled version.
Just for your nowledge: the * shows which USE-flag changes who has been done compered to the old compile. Many of you package had no pam-flag but other flagchanges as you can see.

I got a new real stupid problem then i wrote -pam in /etc/make.conf. Portage doesn't recognise the change so "emerge info" shows pam as active. I had to set it manually during the emerge.

About my Alsaproblem: Now I have sound but no mixer. :-(
Back to top
View user's profile Send private message
Jimmy Jazz
Guru
Guru


Joined: 04 Oct 2004
Posts: 325
Location: Strasbourg

PostPosted: Mon Mar 21, 2005 12:43 pm    Post subject: Reply with quote

MagnusBerg wrote:
Not removed - replaced with the newcompiled version.
Just for your nowledge: the * shows which USE-flag changes who has been done compered to the old compile. Many of you package had no pam-flag but other flagchanges as you can see.

I got a new real stupid problem then i wrote -pam in /etc/make.conf. Portage doesn't recognise the change so "emerge info" shows pam as active. I had to set it manually during the emerge.

About my Alsaproblem: Now I have sound but no mixer. :-(


Perhaps, this thread could help you,



Jj
_________________
« La seule condition au triomphe du mal, c'est l'inaction des gens de bien » E.Burke
Code:

+----+----+----+
|    |::::|    |
|    |::::|    |
+----+----+----+

motto: WeLCRO
WritE Less Code, Repeat Often
Back to top
View user's profile Send private message
revertex
l33t
l33t


Joined: 23 Apr 2003
Posts: 806

PostPosted: Sun May 15, 2005 6:07 pm    Post subject: Reply with quote

pam is a really cool thing, lot's of people don't understand what pam is supposed for, then prefer to get rid of pam, a bad idea IMHO.

ppl blame pam when things managed by udev got messed, but isn't udev pam-aware?
looks like a udev fault, not a pam fault.

maybe this link shoud be helpful for all these pam haters.

http://aplawrence.com/Basics/understandingpam.html
Back to top
View user's profile Send private message
cs02rm0
Tux's lil' helper
Tux's lil' helper


Joined: 12 Oct 2004
Posts: 91

PostPosted: Sun May 15, 2005 6:22 pm    Post subject: Reply with quote

GordSki wrote:
Try removing/modifying this line from '/etc/security/console.perms':


Anyone have any suggestions for people who doesn't have that file on their system?
_________________
Rich
Back to top
View user's profile Send private message
Imago
Apprentice
Apprentice


Joined: 25 Nov 2004
Posts: 157
Location: Germany

PostPosted: Mon May 16, 2005 11:35 am    Post subject: Reply with quote

@cs02rm0
if you dont have that file, it means pam_console isnt installed on your system and pam doesnt do anything with your device permissions ;)

CU
Imago
Back to top
View user's profile Send private message
yin
n00b
n00b


Joined: 15 May 2005
Posts: 11

PostPosted: Mon May 16, 2005 3:08 pm    Post subject: udev? Reply with quote

PAM = username/password
UDEV = /dev/* permission

look in /etc/udev/**, edit, and/or add your account to 'audio' group... if it doesn't help... sorry, you're the admin.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum