Re: ssh(1) is inaccurate

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



Hi Stephen,

thanks for that answer.

On 12/06/2017 02:58 PM, Stephen Harris wrote:
>> "If command is specified, it is executed on the remote host instead of a
>> login shell."
>>
>> But afaik this is not quite accurate. The login shell is always started.
>> But if a command is specified it runs that command instead of just
>> opening an interactive setting.
> 
> Not quite.  A "login shell" is a specific term in Unix.  If means (roughly)
> the shell the user has defined (eg in /etc/passwd) but run in a specific
> way.

The term "login shell" also refers to the shell defined in /etc/passwd
in general. For example chsh(1) says "chsh - change your login shell".
So in this way it's the shell that the user uses to login, not a shell
run in a specific way.

I know that the second meaning is also valid and may be more common.

But not to be explicit here is confusing. From the man page it is not
clear if a shell is executed at all.


>> So if a user has /dev/false as login shell, you cannot run a command on
> 
> So here is where your confusion over terminology led you wrong.  The
> password file defines the shell to be used.  How the shell is called
> determines if it is being used a login shell or not.
> 

Well, it's not actually my confusion over terminology. The terminology
itself is ambiguous. We should consider this in the man page.

Yours
  David


-- 
David Rabel
Linux Consultant & Trainer
Tel.: +49-1511-5908566
Mail: rabel@xxxxxxxxxxxxx

B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux