[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] minivend won't start
****** message to minivend-users from Chris Rapier <rapier@psc.edu> ******
Raymond Miecznik wrote:
>
> ****** message to minivend-users from "Raymond Miecznik" <raymond@electronics2000.com> ******
>
> apache server runs under root, doesn't it ?
>
> why do the instruction way to use " if it is ' ?
The quotes aren't the issue as much as where the username goes. The
quotes, single or double are really just being used to deliniate where
the command actually begins and ends.
'man su' gives the following (this is under freebsd, you linux users
might have a different nomenclature);
SU(1) FreeBSD General Commands Manual
SU(1)
NAME
su - substitute user identity
SYNOPSIS
su [-Kflm] [-c class] [login [args]]
[...]
-c class
Use the settings of the specified login class. Only allowed
for
the super-user.
In this case -c says to treat anything that follows it as the kind of
user that the argument should run as. So "su -c username command"
basically says to run the specified command as if username started it.
Therefore flipping the command and the username around would obviously
cause a problem. My feeling is that this might be a documentation bug.
Give it a shot and remember, 'man' is a geek's best friend.
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list