Create /opt/stack/ first, so that permissions are set there.