Abstract:
A method and a device for preventing access to an administrative privilege are provided. The method includes acquiring a flash memory identifier from a flash memory, starting kernel loading, decoding an encrypted administrative privilege granting code using the flash memory identifier, and completing booting when the decoding succeeds. According to an embodiment of the present disclosure, the code for accessing the administrative privilege is encrypted using the identifier of the flash memory so that the unique password code can be loaded for each device, thereby enhancing the system security.