Reputation: 49
I am trying to create a directory on the server through a mina-deployer script but the shell shows Permission denied.
The command is:
mkdir -p /monit && chown ubuntu: /monit && chmod u+w . /monit
And the error is:
Mkdir: unable to create directory "/ monit": Permission denied
queue 'echo "-----> Create Monit dir"'
queue echo_cmd "mkdir -p #{config_path}/monit && chown #{user}:#{group} #{config_path}/monit && chmod u+w . #{config_path}/monit"
Upvotes: 1
Views: 7838
Reputation: 96994
If you don’t have permission then you don’t have permission. You can either:
sudo
, su
, or logging in as them) who does have the appropriate permission./
and other places have their permissions as-is for good reason).Upvotes: 3