|
|
a possible script
Use the following script (or make a terminal icon out of it) to switch users by saving this as "fus", make it executable , and type:
fus
I'm not quite sure where to put the hook to renice the new user back to 10. But the new user could type
to restore his/her own priority
slight problem...
The hitch with renice-ing is that the user can't restore their processes to the proper level without sudo privileges. You are only allowed to increase your own process nice level, not decrease it.
If you allow all your users to have sudo then it's not an issue, and you could hook a "renice 10 -u $userID" in before the -switchTouserID line. The script will always have to be run 'sudo', of course.
slight problem...
Maybe one could just make this a setUID executable with the owner as root and executable by all. If that were done then you could also use the root priviledge to set the nice level of the incoming user to 0 or 10 or something good in the same script. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.08 seconds |
|