unix - Change user id of all running process without stopping them -


i have presently process running user1 id on server . have new user user2 , want process running user1 run user2. done consistency other host uses user2 should things should follow , must things ? note user1 , user2 both have root privileges. number of processes running currenyly user1 half of process running on server.

i don't believe possible. process can call setuid() itself, trying change user identity on running process have disastrous effects: process requiring privileges loses them causing exceptions, or process shouldn't have privileges (and poorly written) damage system upon gaining them. historical log data process may no longer make sense, , if process has kind of cache @ related user name (say file in home directory) or privileges cache become invalidated without process having way of knowing that.

the 'real' way restart processes new user.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

datatable - Matlab struct computations -