Okay Thanks – good info ;) So for my use chmod 755 Script.sh should be fine… Nice day! Am 29.04.2014 15:14, schrieb Bernhard Voelker:
On 04/29/2014 02:53 PM, Benjamin wrote:
I now did a chmod 777 Sync.sh and now the script works fine!
It's very rarely needed to use 'chmod 777' - especially if you are not very familiar with these octal permission modes, then please forget using 777: it makes the file readable, writable and executable by the owner, the group and everyone else; you'll see this as "rwxrwxrwx" in an "ls -l" listing.
So in your case, I'd probably at least do a "chmod go-w" on that file for security reasons.
Just beside: what is the difference between chmod 777 and chmod -x ?
Did you mean "chmod +x" instead? This would make the file executable.
And must i also run chmod as sudo if i make an script for me as a normal user or does it suffice to run chmod as user?
root can change the permissions on any file, any normal user can only change the permissions if she is the owner.
Further docs: http://www.gnu.org/software/coreutils/manual/html_node/chmod-invocation.html
http://www.gnu.org/software/coreutils/manual/html_node/File-permissions.html
Have a nice day, Berny