Post Reply 
Installing MinimServer on Linux using su
01-10-2021, 22:19 (This post was last modified: 02-10-2021 09:38 by simbun.)
Post: #3
RE: Installing MinimServer on Linux using su
As per this answer it looks like logname returns the owner of the terminal, whereas $LOGNAME returns the user that executes the current shell.

In my scenario, I logged into the server via putty using account SIMON after which I switched to minimserver (su -i minimserver), and in that shell logname returned SIMON whereas $LOGNAME returned minimserver.

I tend to just use 'id -un' but have no idea how compatiable that is across distributions.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Installing MinimServer on Linux using su - simbun - 01-10-2021 22:19

Forum Jump:


User(s) browsing this thread: 1 Guest(s)