** Description changed: - Logname only displays this problem in Xenial Unity. I expected it to - return my login name. It works in gnome-shell and mate editions of - Ubuntu. Only a problem with gnome-terminal. It works in xterm and - uxterm and in tty1. + Logname fails to return a login name in Xenial Unity. I expected it to + return my login name (especially when running as "sudo"). Strangely, it + works in gnome-shell and mate editions of Xenial. - Ubuntu Xenial Xerus (development branch) Release 16.04 + It is only a problem with gnome-terminal. It works in xterm and uxterm + and in tty1... + + Ubuntu Xenial Xerus (development branch) Release 16.04. + + logname is unique because it returns the underlying username (and not + root) when in sudo mode, so this utility is fairly critical and cannot + be substituted with whoami or id -un or any other command that I know + of.
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1537645 Title: logname returns "logname: no login name" with gnome-terminal To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1537645/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs