Linked by Thom Holwerda on Fri 3rd Feb 2006 22:41 UTC
Permalink for comment 92555
To read all comments associated with this story, please click here.
To read all comments associated with this story, please click here.
News
Linked by Thom Holwerda on 05/20/13 22:43 UTC
Linked by Thom Holwerda on 05/20/13 21:50 UTC
Linked by Thom Holwerda on 05/19/13 23:15 UTC
Linked by Thom Holwerda on 05/19/13 23:11 UTC, submitted by Drumhellar
Linked by Thom Holwerda on 05/18/13 21:06 UTC
Linked by Thom Holwerda on 05/18/13 7:37 UTC
Linked by fran on 05/18/13 1:38 UTC
Linked by Thom Holwerda on 05/17/13 23:35 UTC, submitted by kragil
Linked by MOS6510 on 05/17/13 22:22 UTC
Linked by Thom Holwerda on 05/17/13 22:15 UTC, submitted by Tom
More News »
Sponsored Links



Member since:
2005-07-07
Remember please that scripts dont come executable in Linux
Why don't they? Is that just by convention or is there actually some safeguard which prevents it?
That is due to umask. When you download a file it is created as a new file. All new files in Linux have their permission set from the umask which is by default 022 on most systems.
The permissions are umask & 077, so umask of 022 is 644 which is -rw-r--r-
if you create a file that is a script in Linux you will then have to chmod the permissions to execute before it is run.
Yes this is a security safeguard.