linux下禁止一般用户访问USB存储、光盘和网络 - 悲催的科学匠人 - 冷水's blog
linux下禁止一般用户访问USB存储、光盘和网络
冷水
posted @ 2014年3月24日 01:32
in linux
, 1239 阅读
查了老半天,发现如下方法最easy
将自动mount的目录 /media 和 /cdrom 的权限设置为 700 即可
至于网络,在/etc/rc.local中加入 sudo ifconfig eth0 down 即可
2023年1月05日 00:02
The main reason to do this is to prevent data loss or theft. If you have sensitive data on your computer, you don't want find your dream home Grimes just anyone to be able to access it. USB storage, CD and network drives can all be used to store data, so it's important to restrict access to them.