Path command

Ric Moore wayward4now at gmail.com
Thu May 9 04:30:12 UTC 2013


On 05/03/2013 03:46 PM, Stephen wrote:
> 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.

Once you install the samba package, it should start itself on the next 
reboot. :) Ric



-- 
My father, Victor Moore (Vic) used to say:
"There are two Great Sins in the world...
..the Sin of Ignorance, and the Sin of Stupidity.
Only the former may be overcome." R.I.P. Dad.
http://linuxcounter.net/user/44256.html




More information about the ubuntu-users mailing list