记一次chmod命令的使用
在访问网络配置文件时,出现权限不够的提示

使用ls -l file 命令查看文件权限

使用chmod 命令修改权限

使用su命令切换到root用户,重新查看文件权限依旧没有读、写、执行的权限

使用chmod命令修改所有用户对网络配置文件的访问权限

切换回普通用户查看权限

再次输入vi /etc/sysconfig/network-scripts/ifcfg-eth0,就可以对网络配置文件进行编辑了
在访问网络配置文件时,出现权限不够的提示
使用ls -l file 命令查看文件权限
使用chmod 命令修改权限
使用su命令切换到root用户,重新查看文件权限依旧没有读、写、执行的权限
使用chmod命令修改所有用户对网络配置文件的访问权限
切换回普通用户查看权限
再次输入vi /etc/sysconfig/network-scripts/ifcfg-eth0,就可以对网络配置文件进行编辑了
本文标题:记一次chmod命令的使用
本文链接:https://www.haomeiwen.com/subject/qfhzwttx.html
网友评论