您的位置:首页 > 运维架构 > Linux

linux 程序 打开 /dev/mem permission denied

2015-06-12 15:35 656 查看
链接:

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 users you can do stuff, but

you should not be able to access other people’s files on the same

computer. And as a user you should not be able to cause the computer

to stop working.

The program can be made setuid by doing

sudo chown root <program name>
  sudo chmod 4755 <program name>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: