Yeah, don't do that....huge security risk.
shadow has passwords encrypted with a one-way hash, so the actual passwd is never stored on disk.
phpBB stores passwords in plain text in a DB, which may be vulnerable to SQL injection, sniffing, and a multitude of other attacks.
Don't compromise the security of your system by doing this.