Path command
Avi Greenbury
lists at avi.co
Fri May 3 19:32:22 UTC 2013
Stephen wrote:
> Thanks for your reply
>
> The $PATH says: /usr/local/bin:/usr/bin:/bin:/usr/games
>
> It said it couldn't start Samba because /usr/sbin isn't in the path. I
> tried something I found on the Internet but it didn't work
> Name at Name:~$ Path=$PATH:/usr/sbin
> Name at Name:~$ export path
Here you've defined a variable called $Path and then exported one
called $path. What you're actually interested in is the one called
$PATH. That's three different variables; in general, everything on
Linux is case-sensitive.
Secondly, though, '/usr/sbin' is root's /usr/bin; you're not expected
to be running binaries in there as a normal user, and so what you
*probably* want to do is prepend your command with 'sudo'. I say
'probably' because the way to start a daemon is almost never to run a
binary that's in /usr/sbin; you'll normally want to use a script in in
/etc/init.d or the 'service' command.
What's the wider problem you're trying to solve? What's the command
you're trying to run?
--
Avi
More information about the ubuntu-users
mailing list