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

管理員用戶賬號root能正常登陸,但普通用戶登陸時提示報錯: bash: etc profile: Permission denied 出現這個報錯提示的原因:這是 etc目錄權限問題。在超級管理員root下查看 etc的權限,可以看到其他普通用戶是沒有 etc目錄的執行權限,所以其他用戶登錄時會提示報錯。 知道問題的原因,那就好解決。讓管理員root給 etc目錄分配執行權限:chmod x e ...

2021-02-23 10:12 0 505 推薦指數:

查看詳情

/etc/profile Permission Denied

普通用戶登錄問題: root用戶登錄OK,但普通用戶登錄時提示: -bash:/etc/profile Permission Denied 解決辦法: 在root的用戶下查看etc目錄權限,為744;這個權限是有問題的,其他用戶沒有列出etc目錄下文件的權限,所以其他用戶登錄報錯 ...

Fri Jan 15 00:34:00 CST 2021 0 651
linux報錯-bash: ./xx.sh: Permission denied

linux報錯-bash: ./xx.sh: Permission deniedlinux下執行sh文件時提示: -bash: ./xx.sh: Permission denied 進行授權: chmod 777 xx.sh Linux chmod +755 ...

Thu Jan 30 21:37:00 CST 2020 0 1578
linux中/etc/profile 和 ~/.bash_profile 的區別

linux中設置環境變量一般使用bash_profile進行配置 其中/etc/bash_profile 表示系統整體設置 ,生效后系統內所有用戶可用而 ~/.bash_profile 只表示當前用戶的個人設置,生效后只該用戶可用。 ...

Sat May 12 20:08:00 CST 2018 0 6595
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
source /etc/profile報錯-bash: id:command is not found

由於誤操作導致 source /etc/profile 報錯 -bash: id:command is not found 此時,linux下很多命令到不能能用,包括vi ls 等... 可以使用 export PATH=/usr/local/sbin:/usr/local/bin ...

Wed Aug 31 19:40:00 CST 2016 0 2539
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM