原文:/etc/profile Permission Denied

普通用戶登錄問題: root用戶登錄OK,但普通用戶登錄時提示: bash: etc profile Permission Denied 解決辦法: 在root的用戶下查看etc目錄權限,為 這個權限是有問題的,其他用戶沒有列出etc目錄下文件的權限,所以其他用戶登錄會報錯 chmod x etc 或者 chmod etc 給 etc 目錄加上x權限即可解決問題。 如果root用戶也出現該問題,可 ...

2021-01-14 16:34 0 651 推薦指數:

查看詳情

Linux登錄報錯-bash: /etc/profile: Permission denied

管理員用戶賬號root能正常登陸,但普通用戶登陸時提示報錯: -bash: /etc/profile: Permission denied 出現這個報錯提示的原因:這是/etc目錄權限問題。在超級管理員root下查看/etc的權限,可以看到其他普通用戶是沒有/etc目錄的執行權限,所以其 ...

Tue Feb 23 18:12:00 CST 2021 0 505
~/.profile和/etc/profile的區別

登入系統讀取步驟: 當登入系統時候獲得一個shell進程時,其讀取環境設定檔有三步 : 1.首先讀入的是全局環境變量設定檔/etc/profile,然后根據其內容讀取額外的設定的文檔,如 /etc/profile.d和/etc/inputrc 2.然后根據不同使用者帳號 ...

Fri Jul 17 18:37:00 CST 2020 0 557
etc/profile和/etc/environment的比較

轉自:http://andy136566.iteye.com/blog/1025338 先將export LANG=zh_CN加入/etc/profile ,退出系統重新登錄,登錄提示顯示英文。將/etc/profile 中的export LANG=zh_CN刪除,將LNAG=zh_CN ...

Mon Aug 31 02:37:00 CST 2015 1 4764
profile(/etc/profile)和bash_profile的區別

profile(/etc/profile)和bash_profile的區別 profile(/etc/profile),用於設置系統級的環境變量和啟動程序,在這個文件下配置會對所有用戶生效。當用戶登錄(login)時,文件會被執行,並從/etc/profile.d目錄的配置文件中查找shell ...

Wed Jun 10 22:47:00 CST 2020 0 614
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM