Path command
Stephen
stephen_o at bell.net
Fri May 3 19:46:56 UTC 2013
On Fri, 2013-05-03 at 20:32 +0100, Avi Greenbury wrote:
> 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
>
The program I'm trying to run is samba. The path is ok I have had
instructions how to check that.
I also changed from Unity interface to Classic Gnome I never though to
mention that. It might have something to do with it.
Thanks for your reply.
More information about the ubuntu-users
mailing list