logo

Tag Archive for files bloccati @en

Rimuovere i virus dalle pen drive

To remove viruses from a USB key infected during its adventure with windows, you can proceed in two ways:

1) format the key (you have to disable the autoplay on windows, to do that when you insert the key you hold down the Shift Key)
2) delete the infected files with a Mac.

Usually these files are locked and for that, before dragging them to the trash, you need to remove their protection.

 

Schermata 2009-11-02 a 10.12.21.png

Open the terminal and type:

sudo chflags -R nouchg


Schermata 2009-11-02 a 10.12.42.png

Thensimply dragthefileto unlockin to the terminal:

Schermata 2009-11-02 a 10.12.55.png

Press enterand insert youradministrator password, nowthe protection isremoved:

Schermata 2009-11-02 a 10.13.04.png

Notes.
Theflags addadditional levels ofcontroltofilesthat sometimesneither the administrator of thecomputercanbe removed.To change theflagof the filesyou need to usethe commandchflags:

 

chflags — change file flags
chflags [-fhv] [-R [-H | -L | -P]] flags file …
The chflags utility modifies the file flags of the listed files as specified by the flags operand.
The options are as follows:
(nel nostro caso)
-R Change the file flags for the file hierarchies rooted in the files instead of just the files themselves.
Putting the letters “no” before or removing the letters “no” from a keyword causes the flag to be cleared.
(sempre nel nostro caso):
nouchg clear the user immutable flag (owner or super-user only)

chflags — change file flags

chflags [-fhv] [-R [-H | -L | -P]] flags file …

The chflags utility modifies the file flags of the listed files as specified by the flags operand.

The options are as follows:

-R Change the file flags for the file hierarchies rooted in the files instead of just the files themselves.

Putting the letters “no” before or removing the letters “no” from a keyword causes the flag to be cleared.

nouchg clear the user immutable flag (owner or super-user only)