課程
/運維&測試
/Linux
/shell編程之環境變量配置文件
如果我是從普通用戶切換到root用戶呢?/etc/bashrc文件中的權限貌似有問題?
2015-11-14
源自:shell編程之環境變量配置文件 1-3
正在回答
沒有問題哦,/etc 下的文件默認就是root權限,
root@iliul-PC:/etc#?ls?-l??/etc/?|?head 總用量?1132 drwxr-xr-x??3?root?root????4096??8月??5?13:20?acpi -rw-r--r--??1?root?root????2981??8月??5?13:12?adduser.conf drwxr-xr-x??2?root?root????4096?12月?31?16:40?alternatives -rw-r--r--??1?root?root?????401??2月?20??2014?anacrontab -rw-r--r--??1?root?root?????112??1月?10??2014?apg.conf drwxr-xr-x??6?root?root????4096??8月??5?13:16?apm drwxr-xr-x??3?root?root????4096??8月??5?13:19?apparmor drwxr-xr-x??8?root?root????4096??8月??5?13:21?apparmor.d drwxr-xr-x??5?root?root????4096??8月??5?13:20?apport
舉報
為你帶來shell環境變量配置文件,熟練使用環境變量配置文件
2 回答權限和wrx的對應關系
2 回答.bash_profile 文件里的 $HOME/bin的困惑
1 回答centos 的/etc/profile配置文件的開頭那段英文什么意思?
2 回答歷史命令的保存問題
1 回答/etc/profile 是在哪里調用~/.bash_profile的
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2016-01-05
沒有問題哦,/etc 下的文件默認就是root權限,