1

The scenario

You have an USB stick storage. You just want to use it only from your computer. It should be auto mounted from your computer and it should be available to all users of your computer before any login (Like network connection).

However, if any some one else decided, even you, to use it from another computer, this stick should not be mounted at all. It may be appeared as faulty or it should be formatted first.

The assignment of term specific machine may be done by comparing hash value in a specific file on the system or using MAC address or any other way.

8
  • 3
    Best you can do is probably encrypt the USB stick. The mounting options are under control of the OS, not the stick itself. Jul 2, 2018 at 6:34
  • @can't we do it by adding the MAC address of the computer with inode table?
    – damadam
    Jul 2, 2018 at 7:18
  • 2
    @SaidbakR I understand that. But USB sticks are made as simple storage devices, they don't have capabilities to refuse computer from mounting, and devices that can subvert OS control are usually created as malicious devices. And if we're starting to talk about USB stick architecture, then we're getting out of the scope of this site. Jul 2, 2018 at 7:28
  • 2
    @SaidbakR There are ways to autorun things. Particularly this post: askubuntu.com/q/642511/295286 But then again autorun is kinda GUI feature, and I don't think it'd have any effect if somebody mounted USB stick from command-line. This would be half-security: maybe works against inexperienced attacker, but kinda useless against experienced one. Jul 2, 2018 at 7:44
  • 1
    +1 An interesting question, although largely outside the scope of the site.
    – Jos
    Jul 2, 2018 at 8:29

0

You must log in to answer this question.

Browse other questions tagged .