You are not logged in.

#1 2020-09-24 18:00:47

goro9922
Member
Registered: 2019-04-12
Posts: 45

What does the login command do?

When I run

$ /usr/bin/login foo
$ /usr/bin/login linux

There's a short delay and I'm back at the same prompt. I thought this command would attempt to log me as a different user. But my UID is unchanged.

Offline

#2 2020-09-24 19:21:49

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,516
Website

Re: What does the login command do?

Login is primarily used by getty.  If you want to log in as a different user, use `su`.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB