Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
where's pam_script?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
T-Dawg
n00b
n00b


Joined: 12 Nov 2006
Posts: 51

PostPosted: Sat May 12, 2007 12:51 am    Post subject: where's pam_script? Reply with quote

http://freshmeat.net/projects/pam_script/

I'm looking for this pam module but it doesn't look like gentoo has it. Does anyone know what the deal is? Is it under a different package name, not supported for some reason, need an ebuild? If its the latter I could attempt an ebuild but who would I submit it to?

thanks
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5947

PostPosted: Sat May 12, 2007 1:07 am    Post subject: Reply with quote

Quote:
About:
pam_script is a PAM that executes a script at the start and end of a session. Any PAM-aware application can use the module to perform arbitrary operations. It was originally written for cleaning up when a user logs out.


isn't that what utempter/utmp is supposed to do?
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
T-Dawg
n00b
n00b


Joined: 12 Nov 2006
Posts: 51

PostPosted: Sat May 12, 2007 1:23 am    Post subject: Reply with quote

Quote:
The utmp file allows one to discover information about who is currently
using the system. There may be more users currently using the system,
because not all programs use utmp logging.

no.
What I need is to be able to dynamically unmount and kill processes using mounted shares for several users authenticated via gdm which is not an easy task to do as that user. The most I can do is execute as root which will not work. bash_logout wont work either because gdm doesn't give a shit about bash.
Back to top
View user's profile Send private message
T-Dawg
n00b
n00b


Joined: 12 Nov 2006
Posts: 51

PostPosted: Sat May 12, 2007 2:29 am    Post subject: Reply with quote

here's an ebuild:

Code:
tungsten tyler # cat sys-auth/libpam-script/libpam-script-0.1.10.ebuild

inherit eutils pam

DESCRIPTION="A PAM module that enables the execution of a script at the start and end of a session."
SRC_URI="http://www.upfrontsystems.co.za/${P}.tar.gz"
HOMEPAGE="http://freshmeat.net/projects/pam_script/"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"

DEPEND="sys-libs/pam"

src_compile() {
        emake || die "make failed"
}

src_install() {
        dopammod *.so || die "dopammod failed"
        doman pam-script.5
        dodoc README
}
[/code]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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