In general, does a user have to log in to run a process and become its owner (ruid, or euid)? Does this apply to any user or any non-root user? For example:
In the boot sequence of Linux, the kernel starts the init system as the first process, and then the init process runs
login
so that each user can login. The init process is owned byroot
, and does the userroot
have to log in before starting theinit
process? See Why is there a `systemd` process owned by each user that is logged in?When using
ssh
to run a command without starting an interactive shell, do we have to log in first or not to run the command?
If I don't need to log in to run a process as its owner, how can I do that?
Thanks.
init
or another process) and there may be some child processes. I'm not sure what you mean by "owner"... – Stephen Harris Dec 19 '18 at 15:04