Error creating a new site using bash

When I try to create a new site,

hugo new site new_site

I get the following error.

Error: failed to create workingDir: mkdir /media/blah/flash_drive/new_site: permission denied

I’m using Ubuntu.

Please paste output from hugo version

Then paste output from ls -al /media/blah/

If you installed Hugo using the Snap package, see documentation for commands to enable access to removable media:
https://gohugo.io/installation/linux/#snap

@jmooring, sudo snap connect hugo:removable-media corrected the error. Thank you for the information.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.