Closed jan-janssen closed 8 years ago
If pamela doesn't work, it could be a PAM service permissions issue. What distro are you using, and is SELinux running?
Suse Linux Enterprise 11 and SELinux is not running. Is there a simple way to test the permissions ? As the sudo part is working I have the feeling it has something to do with login. Also when I execute the simple command: login
it gives me the error:
FATAL: cannot change permissions of TTY: Operation not permitted
Meaning most likely I am looking at the wrong part. It is not an pamela issue but moreover some communications issue between login and kerberos or something.
Thx for the support, ot was am error in my PAM setup and had nothing to do with the pamela package.
I am able to sudo switch from one user to the next, with the limitation to the sudospawner as required by jupyterhub 1.
sudo -u rhea sudo -n -u $USER sudospawner --help
The shadow configuration is set:
-rw-r----- 1 root shadow 536 Jun 22 10:59 /etc/shadow
uid=35052(jan) gid=12500(mpd) groups=15(shadow),12505(pyjam),12500(mpd)
And when I run:
ldd /{,usr/}{bin,sbin}/* | grep -B 5 libpam | grep '^/'
I get:I am wondering whether python should not also appear in this list and if that is the case how to add it. Or maybe that is just an missunderstanding from my side and there is a unix command besides sudo, which I can use to test my PAM configuration.
Correction: What fails for me is the simple test command:
python -m pamela -a whoami
It promots me for my password and is never able to correctly login but instead always returns an[PAM Error 7] Authentication failure
errorWhen I load the module directly in python :
Versions: