With reference to
For example, in the case of a storage device equipped with a USB interface, the USB driver able to be executed by a processor of the storage device can detect that the storage device is being supplied electricity by means of the USB interface, and therefore the storage device is currently in use.
Following the detection of a use of the device by a user, it can be determined (step 21) whether the user corresponds to an identifier associated with the first user profile, for example the user identifier Id_owner described above, associated with the first user profile.
If it is determined that the user corresponds to the identifier associated with the first user profile, the use of the data storage device is controlled according to the first user profile (step 22), thus providing the user with access rights permitting at least the writing and reading of data in the memory of the storage device.