Code:
wilsont@bzoit:/media/wilsont/disk$ chmod u+r+x install.sh
That isn't a valid command.
You want either
Code:
chmod 700 install.sh
or
Code:
chmod u+rx install.sh
Code:
wilsont@bzoit:/media/wilsont/disk$ ./install.sh
-bash: ./install.sh: Permission denied
Cannot execute scripts that don't have the correct permissions.
Useto see the permissions.
BTW, sudo ain't gonna help with the permissions in this situation.
If you have trouble with Unix permissions, any Unix tutorial on permissions is 100% valid for Linux too. Any beginning Unix book from 1990 will have a chapter on it for $0.50. Or google "linux permissions tutorial", and spend 15 minutes working through that, then another 30 minutes in a play directory - perhaps /tmp/foo/ on your own system with 3 userids, 2 groups then setup files and subdirectories with every possible combination of owners, groups, and file permissions. Go from 000. 001, 002, 003, 004, 005, ..... to 771, 772, 773, 774, 775, 776, 777 ... and check out how each change allows or prevents access for the owner, group members, others and people outside the group. You'll see the pattern quickly and then you'll "have it" for the rest of your life.
Or spend hours, days, weeks, months, years being frustrated over little issues like the above. Your choice.
Bookmarks