maclock icon indicating copy to clipboard operation
maclock copied to clipboard

Permission denied while installing script

Open orkank opened this issue 7 years ago • 4 comments

When try to install from terminal, I tried both sudo and without sudo.

OS: Macos Sierra 10.12.6.

MacBook-Pro:~ macbook$ sudo curl -sSL https://raw.github.com/roubles/maclock/master/webinstall.sh | bash Downloading script from: https://raw.githubusercontent.com/roubles/maclock/master/scripts/maclock... bash: line 38: /usr/local/bin/maclock: Permission denied Error installing script.

orkank avatar Feb 10 '18 18:02 orkank

I cannot recreate the issue.

Just create this file in /usr/local/bin/maclock on your system.

And if, /usr/local/bin is in your PATH, you should be able to call it at the terminal. $ maclock

roubles avatar Feb 11 '18 17:02 roubles

I created the file as you said but when I try $ maclock it also gives a permission error to run. I don't understand why but can't get it work.

orkank avatar Feb 12 '18 21:02 orkank

The script basically calls

open -a ScreenSaverEngine

try that on the console and see what you get.

roubles avatar Feb 12 '18 23:02 roubles

open -a ScreenSaverEngine, that command is working properly.

I was changed chmod of file maclock to 0755, now working very well.

thanks

orkank avatar Feb 13 '18 08:02 orkank