I am the admin on a shared MacOS X:
The version of MacOS isn't a key information: I had the same kind of problem on all versions of MacOS.
But today I have a practical big case and time to analyze and test solutions.
Big_server is hosting professionnal services (firewall and mail server)
and can't be rebooted to play.
I have another user
bob who left his session open.
He forgot to close it and is on vacation for many weeks.
Hence the console is locked waiting for his password.
I know how to kill
bob's session like a pig.
However, I noticed that this colleague has more than 50 processes running, some of them terminating with:
...Support/photolibraryd .../com.apple.CloudPhotosConfiguration ...
and I would like to avoid corrupting any of his libraries or files which might have been left opened.
How may I terminate cleanly
bob's session without corrupting his data?