1. I'm logged onto the computer as myself. I am a local administrator.
2. I create a file on my desktop called "whatever.command" and I insert some Terminal commands into it. I'm going to make this file run each time my computer starts up.
3. I save out, double-click on the file to test it. Permission denied -- you don't have appropriate privileges to run this. Right click and hit "Get Info" to see and adjust permissions. This makes no sense, because if I wanted to, I could open up Terminal right now, enter the same commands manually, and they would run without issue.
4. I right-click and hit "Get Info" and based on what the permissions say, I should have no trouble running this. My name is listed under who has permissions, and it says "Read and Write."
5. I do some Google searching and find a page that says I should go into Terminal, run "chmod 755" on this file. I do so, and now it works.
Why should I have to do this when I created the file, I'm an administrator, and I can run these same commands with no issue outside of this .command file?
I love my Macs, I'd take one over a Windows PC any day, but...this is one area where Microsoft actually got it right in comparison. Setting user permissions on Windows desktops is so much more straightforward than it is on the Mac, and stuff like this drives me crazy.
2. I create a file on my desktop called "whatever.command" and I insert some Terminal commands into it. I'm going to make this file run each time my computer starts up.
3. I save out, double-click on the file to test it. Permission denied -- you don't have appropriate privileges to run this. Right click and hit "Get Info" to see and adjust permissions. This makes no sense, because if I wanted to, I could open up Terminal right now, enter the same commands manually, and they would run without issue.
4. I right-click and hit "Get Info" and based on what the permissions say, I should have no trouble running this. My name is listed under who has permissions, and it says "Read and Write."
5. I do some Google searching and find a page that says I should go into Terminal, run "chmod 755" on this file. I do so, and now it works.
Why should I have to do this when I created the file, I'm an administrator, and I can run these same commands with no issue outside of this .command file?
I love my Macs, I'd take one over a Windows PC any day, but...this is one area where Microsoft actually got it right in comparison. Setting user permissions on Windows desktops is so much more straightforward than it is on the Mac, and stuff like this drives me crazy.