I am about to make an idiot of myself, but I can not make a change to the PATH
System:
Current PATH is
I need to add
So using the following
When I execute the command it appears to work. However looking at the PATH it has not changed. I have logged off and logged back on, rebooted the system and the result is the same. The PATH is not set. This is not rocket science so it has to be me. What am I doing wrong?
Keith
System:
Code:
Copyright (c) 1992-2011 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011
[email]root@mason.cse.buffalo.edu[/email]:/usr/obj/usr/src/sys/GENERIC amd64
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) 64 Processor 3500+ (2210.20-MHz K8-class CPU)
Origin = "AuthenticAMD" Id = 0xf7a Family = f Model = 7 Stepping = 10
Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,
FXSR,SSE,SSE2>
AMD Features=0xe0500800<SYSCALL,NX,MMX+,LM,3DNow!+,3DNow!>
real memory = 3221225472 (3072 MB)
avail memory = 3041722368 (2900 MB)
Current PATH is
Code:
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
I need to add
Code:
/usr/local/samba/sbin[/CMD] and [CMD="code"]/usr/local/samba/bin
So using the following
Code:
Prometheus# set PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/samba/sbin:/usr/local/samba/bin:
/usr/local/bin:/root/bin
When I execute the command it appears to work. However looking at the PATH it has not changed. I have logged off and logged back on, rebooted the system and the result is the same. The PATH is not set. This is not rocket science so it has to be me. What am I doing wrong?
Keith