So I was browsing the web the other day, and I came across a few places that wanted me to download .deb files - and since those are installed by root (and as such have the "powers" and capabilities of root), I wasn't sure about that.
|
feedback
|
|
Things to consider:
Ways to test things securely: I use
What that does it give me a "sandbox" (otherwise known as "YAY I CAN SCREW UP!") with copy-on-write access to everything on my computer, including my home directory - so if the nasty nasty Another thing that isn't stressed enough is MAKE BACKUPS. Those are extremely helpful, and we have many questions on the topic. In short, just make sure you think about it, and don't just download a random deb and install it. | |||||
feedback
|
|
If you are downloading a package from untrusted or questionable sources, be paranoid. On popular forums like ubuntuforums.org, if a user makes his first post containing only of a short text like "install this, works for me!", followed by a link, be careful with that link and/ or instructions. Don't use binary packages if possible, especially from untrusted sources. Get the source (for official Ubuntu packages, this can be done with If the package in question is small, it may be worth analysing it. I prefer to use the terminal for that because I then have fast access to other powerful command-line tools like To download a .deb file, you can use the browser, but copying the link and then use
Next, it's time to check the file itself.
After this, you get an overview of the package dependencies and what kind of files it possibly contains. Time to extract the files and analyse the contents using
We'll use
If the package scripts look sane, it's time to analyse the installed contents (use tab-completion). For shell scripts and interpreted scripts (like Python), analysis is easier (assuming that you're known with the language).
Pay special attention to configuration files, especially if they are using directories like For binaries,
After you are sure that the package looks valid, you can go on install it in VirtualBox booting off a Live CD and use | |||
|
feedback
|
|
Both answers (@Lekensteyn, @jrg) are pretty good. In a nutshell, you are installing files (possibly including binaries) from somewhere else, and either you run them (if there are binaries) or they may be configuration files that do something (read: they can do everything). No matter what operating system or GNU/Linux distro, you should only do that if you trust the source. You are effectively trusting a bunch of alien code and files to run and reside on your computer. If you are really interested in the feature provided by the package, use the tips above. If it's a bunch of binaries, unless you're willing to spend some weeks doing deep disassembly, there is no way you can know what it does. In short, quoting @Lekensteyn, be paranoid. | |||
|
feedback
|