bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: su command...


From: Alfred M. Szmidt
Subject: Re: su command...
Date: Thu, 26 Mar 2009 05:30:52 -0400

   > Please, how can I execute the following idea: $ su gimp &
   > but really in bacground?

   I can not figure out what you want to do, but you might try=20
   this :

   if [[ $(grep gimp /etc/passwd | cut -d':' -f1) == "gimp" ]]; then su - gimp; 
else su -; export DISPLAY=:0.0; gimp &; logout; fi;

   In the hope that this may help.

I think you are overengineering the solution, the OP just wanted to
execute gimp as root, and spawn it to background.

The following would do the trick: su -c gimp &

Also, your solution will not work on anything that uses LDAP, NIS, ...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]