On 13 November 2014 15:23, Osamu Aoki <[email protected]> wrote:
> What authentication do you use to login to your account?
> What x-terminal do you use?
Currently, I'm logged in via SSH. However, last time I tried this with
ROXTerm, and the result was exactly the same.
$ who | grep ${SSH_TTY##*dev/}
andrew pts/64 2014-11-13 10:58 (192.168.125.1)
$ echo $TERM
xterm
$ python3
Python 3.4.2 (default, Oct 8 2014, 13:14:40)
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pwd
>>> import os
>>> pwd.getpwuid(os.getuid())
pwd.struct_passwd(pw_name='andrew', pw_passwd='x', pw_uid=1000,
pw_gid=1000, pw_gecos='Andrew Shadura,,,', pw_dir='/home/andrew',
pw_shell='/bin/ksh')
>>> os.getlogin()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
FileNotFoundError: [Errno 2] No such file or directory
>>> os.environ.get("USER")
'andrew'
>>> pwd.getpwuid(os.getuid())[4]
'Andrew Shadura,,,'
>>>
$ id
uid=1000(andrew) gid=1000(andrew)
groups=1000(andrew),4(adm),7(lp),20(dialout),24(cdrom),25(floppy),29(audio),40(src),44(video),46(plugdev),108(netdev),110(davfs2),112(fuse),114(scanner),121(lpadmin),123(bluetooth),124(kvm),143(libvirt),146(wireshark),147(scard)
$ grep andrew /etc/passwd
andrew:x:1000:1000:Andrew Shadura,,,:/home/andrew:/bin/ksh
Regarding nsswitch.conf, I haven't changed that at all.
> Why bother scanning 'stable'? It wastes time.
I need packages from there sometimes.
> /usr/lib/python3/dist-packages/debmake/para.py
Not really, I don't have the original any more.
def para(para):
debmail = env('DEBEMAIL')
if not debmail:
debmail = pwd.getpwuid(os.getuid())[0] + '@localhost'
debfullname = env('DEBFULLNAME')
if not debfullname:
debfullname =
pwd.getpwnam(pwd.getpwuid(os.getuid())[0])[4].split(',')[0]
--
Cheers,
Andrew
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]