Gracefully logging off another user.

Derek Broughton news at pointerstop.ca
Wed Nov 12 15:02:27 UTC 2008


Nils Kassube wrote:

> Colin Murphy wrote:
>> renice and suspend sound like options, better to leave the
>> application
>> ticking over rather than killing it if at all possible.  I know very
>> little about renice and suspend though.  How would the owner of a
>> process de-renice an app, or would this happen automatically when
>> they next make use of it?
> 
> If you want to go the renice way, only root can renice processes to
> give them a higher priority. Therefore the other users can't do it
> themselves unless they are in the admin group. You can renice their
> processes with the command
> 
> sudo renice 19 -u user
> 
> in a terminal where you replace "user" with the appropriate user name.
> That will give the processes lowest priority. With the command
> 
> sudo renice 0 -u user
> 

You could, of course, create a script containing that (and replacing
"user" with "$USER"), give the users access to it via sudoers, but it's
ugly...
-- 
derek





More information about the ubuntu-users mailing list