原文: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