NethServer release 7.3.1611
config setprop postfix HeloHost myhelo.example.com
signal-event nethserver-mail-common-save
bash: config: command not found
Any ideas ?
davidep
(Davide Principi)
April 4, 2017, 6:43am
2
The config command is in /sbin/e-smith/
directory. It is added to root’s $PATH
. If Bash does not find that command it’s for one of the following reasons
the shell is not Bash
the current user is not root
the PATH has been modified
…
Please paste here the output of the following commands:
echo $BASH_VERSION
id
echo $PATH
2 Likes
Fresh install with just the email module added
[admin@mail ~]$ su
Password:
[root@mail admin]# config setprop postfix HeloHost xxx-xxxx.com
bash: config: command not found
[root@mail admin]# echo $BASH_VERSION
4.2.46(1)-release
[root@mail admin]# id
uid=0(root) gid=0(root) groups=0(root)
[root@mail admin]# echo $PATH
/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/admin/.local/bin:/home/admin/bin
Hi, as @davidep pointed, just add e-smith to the PATH, issue the command:
PATH=/sbin/e-smith:$PATH
Cheers
1 Like
davidep
(Davide Principi)
April 4, 2017, 7:53pm
5
psionprime:
[admin@mail ~]$ su
The correct command is
su -
The “-” (minus) character is important: it runs a login shell where PATH is correctly evaluated.
…and the shell runs with su and is not a login one