calling 'macusers' displays logged in appletalk users but is buggy. not all user ids are correctly displayed. for some users uid 0 is reported and the actual user id gets displayed instead of the username. looks like a pointer issue. Reproducible: Always Steps to Reproduce: 1. log in some users into netatalk 2. type 'macusers' Actual Results: 8082 1000 bauwelt Nov25 26528 0 1003 08:53 26630 1005 p_wolff 10:15 26643 0 1012 10:20 26644 0 1015 10:29 26713 0 1002 11:17 26822 1007 a_wagner 11:58 26851 0 1004 12:12 26864 1013 f_meyer 12:29 Expected Results: 8082 1000 bauwelt Nov25 26528 1003 k_wieland 08:53 26630 1005 p_wolff 10:15 26643 1012 j_friedrich 10:20 26644 1015 praktikant 10:29 26713 1002 s_redecke 11:17 26822 1007 a_wagner 11:58 26851 1004 u_brinkmann 12:12 26864 1013 f_meyer 12:29 Portage 2.0.51-r3 (default-ppc64-2004.3, gcc-3.4.1, glibc-2.3.4.20041102-r0, 2.6.9 ppc64) ================================================================= System uname: 2.6.9 ppc64 PPC970FX, altivec supported Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.3-r3 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="ppc64" AUTOCLEAN="yes" CFLAGS="-O2" CHOST="powerpc64-unknown-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks sandbox" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="berkdb bitmap-fonts cups dvd f77 foomaticdb fortran gdbm gif imlib jpeg libwww mitshm nls oggvorbis oss pam perl png ppc64 python readline sdl slang ssl tcpd truetype xv"
Well, I'm gonna say that this is likely an upstream bug with not being 64bit clean. I'll look into it more after I get back from some stuff I need to do today, but I did a quick check on my PPC and IA32 hardware and didn't see either.
I run on dual Athalon MP and I have the same exact problem. So I don't believe that this is only a 64 bit issue. Netatalk version is 1.6.4-r1 and here is macusers output from my system: PID UID Username Name Logintime Mac 22315 0 531 07:29 22464 0 535 08:52 22475 528 ktansey 08:56 22519 0 530 09:03 22533 0 520 09:09 22559 523 fsantoro 09:12 22569 1012 video 09:12 22592 1028 rtherwig 09:16 22601 532 cdbackup 09:19 22722 0 1024 09:46 22852 524 gmurray 10:21 22880 0 527 10:33 22889 519 bdevlin 10:38 And here is emerge info: Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-1 i686) ================================================================= System uname: 2.6.9-1 i686 AMD Athlon(tm) MP 2400+ Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux26-headers-2.6.8.1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=athlon-mp -fomit-frame-pointer -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -mcpu=athlon-mp -fomit-frame-pointer -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://gentoo.noved.org/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow acl acpi apache2 avi berkdb bitmap-fonts crypt encode f77 fortran gdbm gif gpm imap imlib jpeg ldap libg++ libwww mmx mpeg mysql ncurses nls nptl pam pdflib perl png python qt quicktime readline samba sdl slang spell sse ssl svga tcpd tiff truetype unicode x86 xml xml2 zlib" If you need more information, just let me know.
apparently this is not netatalk's fault. 'macusers' is nothing more than perl script relying on other shell commands. it issues a 'ps -ef' which actually delivers incomplete information. some usernames are not corectly looked up and get their uid printed instead. 1003 8612 30198 0 10:14 ? 00:00:00 /usr/sbin/afpd -g nobody -c 50 -n transporter 1012 8626 30198 0 10:20 ? 00:00:00 /usr/sbin/afpd -g nobody -c 50 -n transporter p_wolff 8640 30198 0 10:39 ? 00:00:00 /usr/sbin/afpd -g nobody -c 50 -n transporter a_wagner 8653 30198 0 10:45 ? 00:00:00 /usr/sbin/afpd -g nobody -c 50 -n transporter 1004 8654 30198 0 10:47 ? 00:00:00 /usr/sbin/afpd -g nobody -c 50 -n transporter it would be nice if someone can find the reason for this? maybe we should reassign this bug as this not related to sys-fs really..
ok i am sorry.. this is not a bug. usernames > 8 chars wont be translated/displayed by 'ps -ef'. instead it just spills out the UID. i guess this is wanted behaviour to prevent ouput clutter. i should be safe to close this bug. if there is a way to tell 'ps' to resolve usernames no matter how long this should be fixed in the macusers-script of the netatalk project.