toml
Verified User
then what do the first two lines mean?
I get:
[root@alfa ~]# sh checkdomainuid.sh
checkdomainuid.sh: line 2: use: command not found
checkdomainuid.sh: line 3: use: command not found
checkdomainuid.sh: line 5: my: command not found
checkdomainuid.sh: line 6: my: command not found
checkdomainuid.sh: line 8: syntax error near unexpected token `DOMFILE,"<$domain file"'
checkdomainuid.sh: line 8: `open(DOMFILE,"<$domainfile") || die "error opening $ domainfile. $!\n";'
Those are output due to the passdb entries in the dovecot.conf, it tries shadow then the virtual passwd-file.
When ever you see a script that starts with a '#!' (shebang) that means that what follows is the interpreter for that script. In this case it is a perl script. You can do 'chmod +x checkdomainuid.sh ; ./checkdomainuid.sh' or execute like this 'perl checkdomainuid.sh', either one should work.
Last edited: