Permission denied error while trying to replay ekf2 in PX4

I am trying to replay a log file using guidelines from System-wide Replay | PX4 User Guide
but as soon as I type the replay command and log file name, I get the permission denied error.