On Wed, 4 Jul 2001, Li, Alice wrote:

> I have a question of ownership regarding ssh login process. SSH daemon is
> run as root to permit login.
> 1. When user successfully authenticated and login the system, will the
> process belong to root or belong to the user? 

An ssh daemon (sshd) runs on the server side to accept (or deny)
secure authentication. Its ownership does not depend on whoever
gets to logged in successfully.

When a user logs in to the system, sshd determines whether to allow that
user or not. A successful ssh login is the same as a successful telnet
login, except for the added encryption. So, when a user logs in via ssh,
his process belongs to him.

> 2. When the user su to root, will su log show root su to root or user su to
> root?

"su" is an external program. Whether you allow root to su to itself
or not depends on the options when you compiled it. I have two Linux
boxes in the office. One box is configured to allow root to su to
itself. The other box is not configured to allow root to su to itself.
Both boxes allow root to su to other ordinary users, though.

--
"When you make a mistake and don't correct
it, that's what you call a mistake!"
    -- Confucius

Reply via email to