Main » 2011 » Март » 16 » Hands off auto!
13:30
Hands off auto!
Does not that remove a favorite stick a bunch of harmful elements, and after each connect to someone else's computer, a burden? And how many nerve cells destroy these items? My - nemeryannom!

All that I know how to combat such incidents (such as: change seats on Linux, disable autorun, do not poke the stick at random, etc.) are not acceptable to me. Therefore had to invent her.

Surely someone this method may seem ineffective, someone - uncomfortable. And someone will sigh with relief or even help less-experienced friends.

I should note that, on a secure flash drive this way, will be hampered operations on elements of the root folder. It is based on this method.

The bottom line: to forbid anyone else write / change the root directory.
Result: all the evil that hit the stick, nothing can stop you.


The first thing to do - to organize on a flash drive NTFS-partition. How to do it? Google will tell you all the details and poses. I will point out the easiest way:
convert X: / fs: ntfs
Now you need to create a directory structure. As I wrote above, to change this structure would be inconvenient. With this need, or accept, or reject the method at all.

When all the necessary folders are created, and the excess removed, you can proceed to the next stage - to ban any changes to the root directory.

Users Windows XP Professional can do it in a few clicks. I describe a method that is appropriate and users of Windows XP Home Edition.

Editing access control lists (ACL) from the command line using a utility cacls. First you need to see the current state of the table:
cacls X: \ is likely there will be one line:
X: \ All: (OI) (CI) F
Then, by turns, to remove from it all User:
cacls X: \ / E / R COMPUTER_NAME \ USER_NAME (in my case: cacls X: \ / E / R All)
and allow read a directory:
cacls X: \ / All G: R
All, now the table should look like this:
X: \ All: (OI) (CI) R
Try creating a file in the root of the stick. Confused? Excellent.

Upd: Earlier on the same topic.
Views: 566 | Added by: w1zard | Rating: 0.0/0
Total comments: 0
Имя *:
Email *:
Код *: