linuxプログラムオン/dev/mem permission denied
694 ワード
リンク:http://www.element14.com/community/thread/19995/l/anyone-know-how-to-access-raspi-gpio-without-sudo?displayFullThread=true
Unix has a“security model”.As a normal user s you can do stuff,but you shound not be able to access other people’s files on the same computer.And as a user you shound not be able to cause the compute the stople.king.
The program can be made setuid by dong
Unix has a“security model”.As a normal user s you can do stuff,but you shound not be able to access other people’s files on the same computer.And as a user you shound not be able to cause the compute the stople.king.
The program can be made setuid by dong
sudo chown root
sudo chmod 4755
または+setuidを使って、see link:http://blog.csdn.net/gw569453350game/article/details/51499828