In comparison with other systems with working xtrlock instances I figured out, that this file shouldn’t only be owned by root. Checking this sp variable I recognized that it is null ! So pw->pw_passwd won’t be updated and still contains the single x from the passwd entry…įirst I thought about a bug in the getspnam () function, such things might happen due to the Debian unstable release I’m using, but after some further thoughts I checked the shadow file itself: /tmp % l /etc/shadow Since thats the case this code is executed and the variable sp gets the broken-out fields of the record in the shadow password database that matches the username pw->pw_name (validated, my user). Next the code checks whether SHADOW_PWD is defined, means whether we use an additional shadow -file. marekm */ setuid ( getuid ()) if ( strlen ( pw -> pw_passwd ) pw_passwd contains only an single x, more information can’t be retrieved from the passwd -file. jdamery */ setgid ( getgid ()) /* we can be installed setuid root to support shadow passwords,Īnd we don't need root privileges any longer. We do this first, because of a bug in linux. * logically, if we need to do the following then the sameĪpplies to being installed setgid shadow. ![]() Sp = getspnam ( pw -> pw_name ) if ( sp ) pw -> pw_passwd = sp -> sp_pwdp endspent () #endif Turned out to be this piece of code (beginning with line 94 of xtrlock.c ): errno = 0 pw = getpwuid ( getuid ()) if ( ! pw ) #ifdef SHADOW_PWD First of all I grabbed the sources from the apt repository and searched for this error message. My workaround to temporarily avoid this problem: Connecting to another host via SSH, running xtrlock within a GNU screen session -)īut that’s no solution for a longer time… So I started debugging. So for example I’m using xtrlock as default X locking mechanism, but if I try to run it on this machine I got the following error: /tmp % xtrlock Sitting on an almost well configured host, I experienced some authentication issues the last few days…
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |