Path command

Christofer C. Bell christofer.c.bell at gmail.com
Sat May 4 23:36:20 UTC 2013


On Fri, May 3, 2013 at 6:05 PM, Tom H <tomh0665 at gmail.com> wrote:

> On Fri, May 3, 2013 at 3:09 PM, Stephen <stephen_o at bell.net> wrote:
> > On Fri, 2013-05-03 at 08:31 +0100, Colin Law wrote:
> >> On 3 May 2013 06:54, Stephen <stephen_o at bell.net> wrote:
> >>>
> >>> It seems like my path variable in Ubuntu 12.04 got corrupted some how.
> >>> Programs that I used to start in a terminal are saying path not found
> or
> >>> /dir/dir/dir/ is not in the path
> >>>
> >>> When I type path in the terminal it says path not found. I thought it
> was
> >>> like dos and when you typed a variable in the terminal it told you
> what the
> >>> setting for that variable is.
> >>>
> >>> Is there some way I can restore the path variable?
> >>
> >> echo $PATH
> >> to see what it is
> >
> > 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
> >
> > But it didn't work.
>
> PATH, Path, and path...
>
> Use "sudo start smbd" or "sudo restart smbd" to start/restart samba
> because you have to be root to use upstart.
>

Good advice, but I would hasten to add that nmbd should also be started so
network browsing works.  That's the NetBIOS Name Server.

-- 
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20130504/d969ec71/attachment.html>


More information about the ubuntu-users mailing list