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
loginso that each user can login. The init process is owned byroot, and does the userroothave to log in before starting theinitprocess? See Why is there a `systemd` process owned by each user that is logged in?When using
sshto 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.
initor 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