Package Details: fgetty-pam 0.7-4

Package Base: fgetty-pam
Description: A mingetty stripped of the printfs, patched for PAM-support.
Upstream URL: http://www.fefe.de/fgetty/
Category: system
Licenses: GPL
Submitter: erdbeer
Maintainer: erdbeer
Last Packager: None
Votes: 3
First Submitted: 2011-07-23 17:48
Last Updated: 2012-03-22 15:47

Dependencies (1)

Required by (0)

Sources

Latest Comments

Comment by Freso

2015-04-10 08:41

@erdbeer, if you don't want to maintain the package, please disown it?

Comment by 3ED_0

2013-06-03 22:06

https://www.archlinux.org/news/binaries-move-to-usrbin-requiring-update-intervention/
------------------------------------------------------------------------
I made fast/dirty workaround (look at "prepare()"), this should works fine
PKGBUILD: http://ix.io/5XG

Anonymous comment

2012-08-15 07:20

Hey guys, i have installed this package and modified inittab to load 2 Fgettys instead of 6 Agettys.
Now that i boot Arch, in the tty it asks for username and pass, and after i type it, it asks it again.
If i enter a wrong user/pass it shows an error, if i write the actual password, it asks to login again and again and again.

Any clues on fixing that issue? Thanks.

Comment by erdbeer

2012-03-22 15:46

Should be fixed. Also I decide to not further maintain this package. Until a new maintainer is found, bugfixes are welcome.

Comment by Asclepius

2012-02-28 13:53

I couldn't build it. Got this error:
checkpassword-pam.c: In function ‘main’:
checkpassword-pam.c:41:11: warning: incompatible implicit declaration of built-in function ‘alloca’ [enabled by default]
cc -pipe -Os -fomit-frame-pointer -c checkpassword-pam2.c
checkpassword-pam2.c: In function ‘conversation’:
checkpassword-pam2.c:47:18: warning: incompatible implicit declaration of built-in function ‘calloc’ [enabled by default]
cc -o checkpassword-pam checkpassword-pam.o checkpassword-pam2.o -lpam_misc -s
/usr/bin/ld: checkpassword-pam2.o: undefined reference to symbol 'pam_set_item@@LIBPAM_1.0'
/usr/bin/ld: note: 'pam_set_item@@LIBPAM_1.0' is defined in DSO /lib/libpam.so.0 so try adding it to the linker command line
/lib/libpam.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make: *** [checkpassword-pam] Error 1

Comment by erdbeer

2011-10-30 17:08

I'm sorry, but I cannot reproduce the errors. Anyone here (except me) with a working fgetty-pam?

Comment by misc

2011-10-27 23:38

NB: I can't log in as root with that n/fgetty combo. Instead I need to have ngetty use login once (for a tty allowed in /etc/securetty, of course), hence my /etc/ngetty/Conf currently looks like:

# Auto-generated file. Do not edit!
=echo-off
=login-prog=/bin/login1
tty[allowed #]=login-prog=/bin/login

Comment by misc

2011-10-27 23:00

fgetty's logins (i. e. /bin/login{1,2}) work just fine if I have ngetty run them instead.

Not that I know much about the procedures involved, but I can't make heads or tails of this.

@thpetrus, assuming you really have the same issue, could please verify this ngetty "workaround"? You'd need to create a /etc/ngetty/Conf according to its man page, with entries like:

tty1=echo-off
tty1=login-prog=/bin/login1

Anonymous comment

2011-10-24 10:33

Too bad then, I would have loved to use this.

Comment by misc

2011-10-22 23:32

fefe wrote that since he's not using pam he wouldn't know how to fully debug this. Unsurprisingly the email address of the PAM patch author (kromJx) is defunct after over nine years. I wasn't able to find any information on kromJx, let alone a working address of him/her, either.

Comment by misc

2011-10-16 22:16

Looks like the same issue as mine.

Thanks to hiciu in the bbs I finally managed to get a trace — the following contains the output of strace and a bt with gdb: http://www.mediafire.com/?kms4vkdwlxexsos

Anonymous comment

2011-10-16 13:59

The package seems to be broken for me. agetty works for me with SHA512 passwords, but somehow fgetty-pam doesn't. There is no checkpassword message (like the original fgetty) "wrong password", I just get the login field again. Is there any way to fix this?

Comment by erdbeer

2011-10-03 08:19

Sorry, didn't find a bug because I cannot reproduce the error. I get those warnings, too, but it works well. Probably you should send an email to the author.

Comment by misc

2011-10-01 21:50

Any update? Perhaps something that I must have done which is so stupid that you don't want to bother with it? :)

Comment by misc

2011-08-20 18:31

I'd post my compile flags from makepkg.conf, but they appear to be ignored for this package. Not sure if the following isn't also irrelevant, but I get these lines during the short compilation (Arch x64 on core2 with testing repos, btw):

cc -pipe -Os -fomit-frame-pointer -c checkpassword-pam.c
checkpassword-pam.c: In function ‘main’:
checkpassword-pam.c:41:11: warning: incompatible implicit declaration of built-in function ‘alloca’ [enabled by default]
strip -x -R .comment -R .note login2.o
cc -pipe -Os -fomit-frame-pointer -c checkpassword-pam2.c
checkpassword-pam2.c: In function ‘conversation’:
checkpassword-pam2.c:47:18: warning: incompatible implicit declaration of built-in function ‘calloc’ [enabled by default]
checkpassword-pam2.c: In function ‘authenticate_using_pam’:
checkpassword-pam2.c:103:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

Comment by misc

2011-08-20 18:24

Sorry for the delay. The regular version of fgetty with a md5 password works indeed, whereas fgetty-pam crashes with them as well.

Comment by erdbeer

2011-08-10 22:20

http://noctus.net/2011/mingetty-und-systemd looks useful. i don't use systemd, so i couldn't test this. basically, it is
1. copy /lib/systemd/system/getty@.service to /etc/systemd/system
2. Change the option ExecStart in /etc/systemd/system/getty@.service in section [Service] so it starts fgetty instead of agetty
3 ln -sf /etc/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@tty1.service

Comment by erdbeer

2011-08-10 21:57

looks like some configuration bug. is the regular version of fgetty (of course with non-hashed passwords) working? if yes, i'll have a look at the code again. you should also report this to the author.

Comment by misc

2011-08-10 15:23

Just noticed that systemd spawns agetty regardless of inittab, i. e. that I wasn't actually using fgetty-pam at all, so I tried it without systemd… and it doesn't work for me, unfortunately. I've set everything as described in "SHA password hashes" (except for rounds=65536, which I set to 32768) — and fgetty-pam will crash with exit code 139 (segmentation violation) upon entering the correct password.