gammu

is it possible to lock Sim Card Using Gammu


Please help, i need information how to lock my SIM card. For security purpose i want to lock using new PIN Code. I operate sim card using modem and access it with gammuservice. Is It possible lock simcard using gammu. if it is not, any bode can explain the alternative. I need lock it programmaticly

thanks for any advice


Solution

  • If you know PUK code, it should be possible using:

    gammu entersecuritycode PUK currentpuk newpin
    

    See documentation for more details: https://wammu.eu/docs/manual/gammu/index.html#cmdoption-gammu-arg-entersecuritycode