Must be in the console as root or superuser.
To remove/de-activate Primary from the smb.conf;
1. mkdir -p /etc/e-smith/templates-custom/etc/smb.conf
2. touch /etc/e-smith/templates-custom/etc/smb.conf/60primary
3. /sbin/e-smith/expand-template /etc/smb.conf
To put Primary back/re-activate in smb.conf;
1. rm -f /etc/e-smith/templates-custom/etc/smb.conf/60primary
2. /sbin/e-smith/expand-template /etc/smb.conf
My suggestion anyway.