View previous topic :: View next topic |
Author |
Message |
T-Dawg n00b
Joined: 12 Nov 2006 Posts: 51
|
Posted: Sat May 12, 2007 12:51 am Post subject: where's pam_script? |
|
|
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 |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5947
|
Posted: Sat May 12, 2007 1:07 am Post subject: |
|
|
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 |
|
|
T-Dawg n00b
Joined: 12 Nov 2006 Posts: 51
|
Posted: Sat May 12, 2007 1:23 am Post subject: |
|
|
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 |
|
|
T-Dawg n00b
Joined: 12 Nov 2006 Posts: 51
|
Posted: Sat May 12, 2007 2:29 am Post subject: |
|
|
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 |
|
|
|