-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


The Wednesday 2007-12-19 at 17:35 -0800, Randall R Schulz wrote:

So am I, but I don't want to run apps as root.

Actually, that's not necessary. You can always become root for the
purpose of exercising privileged operations and then go back to being
a "regular" user to carry out everyday tasks.

E.g.:

 su root -c 'ionice -c 3 su nonRootUser -c "ultimate command"'

Or, if you're already root:

 ionice -c 3 su nonRootUser -c "ultimate command"

Ah! Ah! Didn't know that trick.

I have to try that!

[...]

Doesn't work...

  nimrodel:~ # ionice -c 1 su - cer -c "xine --verbose"

  Who needs friends when you can sit alone in your room and drink?

  This is xine (X11 gui) - a free video player v0.99.5.
  (c) 2000-2007 The xine Team.
  Built with xine library 1.1.8 (1.1.8)
  Found xine library version: 1.1.8 (1.1.8).
  Cannot open display
  nimrodel:~ #

Mayby doesn't like "su -". Another try:

  nimrodel:~ # ionice -c 1 su cer -c "xine --verbose"

Yes! Lets check on another terminal:

  nimrodel:~ # ps au | grep xine
  root     14954  0.0  0.1   3124  1208 pts/27   S+   03:29   0:00 su cer -c 
xine --verbose
  cer      14955  2.8  2.7 205492 28944 pts/27   Sl+  03:29   0:02 xine 
--verbose
  root     15122  0.0  0.0   2040   652 pts/20   S+   03:30   0:00 grep xine
  nimrodel:~ # ionice -p 14955
  realtime: prio 4


Good! It is runnin with realtime priority as user. I like that! Now I'll have to write this to a sudo rule, some how.


- -- Cheers,
       Carlos E. R.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)

iD8DBQFHadVptTMYHG2NR9URApzDAJ48R0AxaO2cevw1mSP53Tk8IvX9bwCdGJVx
lUumOPNTtan8hgdyvsuQYKE=
=6ce8
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to