To view parent comment, click here.
To read all comments associated with this story, please click here.
yes, there are safeguards against it.
first and foremost...
all files you download are simply that, files.
you have to make them executable, then run them.
Sometimes however, you can download a binary file from a webpage with the execute bit set, but that leads to the next stage.......
Permissions.
although YOU downloaded the file and YOU set the execute bit to true, if you had a titter of wit about you, you would have already set up your partitions so that files on /home cannot run, so any downloads on there will need to be physically moved into your path so that they can run.
As you can see, malware would be ineffective against safegaurds like these. Any that did find its way into your system would sit there dead in your /home
HOWEVER
I have seen some people set up there systems so that users can run programs from their /home. This is VERY bad practice, and destroys one of the defenses Linux has over malware.
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.
If they can click an executable file, they can make the script executable by changing its permissions... Never overestimate the user when it comes to attachements. At first, the complexity of the commands (compared to point and click) might put them off, but if they want to see that Miss Lebanon, they will try to.
Call me a pessimist, but if some people are gullible enough to open an attachement from an unknown source...





Member since:
2005-11-12
Your saying linux users are more techie people, yet you think they would make this script execuable?, thats a contradiction. Remember please that scripts dont come executable in Linux. since this is what makes Linux desktop much more secure.