On Mar 4, 2018 8:40 PM, "'Luther Goh Lu Feng' via BeagleBoard" <
[email protected]> wrote:

As shared by Robert [1], the command to retrieve the serial number is as
follows:

sudo hexdump -e '8/1 "%c"' /sys/bus/i2c/devices/0-0050/eeprom -n 28 |
cut -b 5-28

Is there anyway to get the serial number without using sudo? My use case is
that I wish to let other programs use the serial number, but I do not wish
for these progams to have sudo privilege. What are the possible approaches?


So cache it..  read once as root at startup and store it somewhere
readable, /tmp/....

Regards,

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYiMEjZeUDzPZPnqhNpoo2%3DyQtrXYKeLhL0JQ17F6MyixQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to