Mailinglist Archive: opensuse-factory (1264 mails)

< Previous Next >
Re: [opensuse-factory] run commands as system user
On Sun, 11 Sep 2011 04:02:06 +0530, Robert Xu <rxu@xxxxxxxxxxxxxxx> wrote:

Hi all,

How can I run a command as a system user?
(because su - systemuser -c "command" doesn't work ...)


did you literally type "su - systemuser"?

"systemuser" is supposed to be replaced by the name of your 'systemuser,' usually root.

try "su - -c <command>"

because leaving the system user's name blank defaults to "root".

--
phani.
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >
References