System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Users couldn't execute any commands.

SOLVED
Go to solution
SivaOX
Advisor

Users couldn't execute any commands.

I am getting a strange (following) error; while the users are logging in; and they couldn't execute any commands.

/etc/profile[31]: grep: not found.
/etc/profile[37]: cat: not found.
/etc/profile[48]: cat: not found.
/etc/profile[83]: stty: not found.
/etc/profile[92]: cat: not found.
.profile[10]: tset: not found.
.profile[12]: stty: not found.
.profile[13]: stty: not found.
.profile[14]: tabs: not found.

After I set the $PATH varriables manually,users can execute some commands; but most of the commands are not working (ie, su, clear).But there is no issue for the root user.
What causes this issue?
What are all the files/environments i need to check to resolve this?
6 REPLIES
sarfaraj ahmad
Trusted Contributor

Re: Users couldn't execute any commands.

Hi,

please put the /etc/passwd file output and also put the contents of the the user's home directory.
SivaOX
Advisor

Re: Users couldn't execute any commands.

Please find the attachment.
SivaOX
Advisor

Re: Users couldn't execute any commands.

Replaced the /etc/profile from the working system. But No use.
Dennis Handly
Acclaimed Contributor
Solution

Re: Users couldn't execute any commands.

>But there is no issue for the root user.

Some sysadmin was forced by an audit to break the system?

What are the permissions of:
ll -d / /usr /usr/bin

To see what else is broken:
swverify "*"

swverify -F "*" # Add -F to fix.
SivaOX
Advisor

Re: Users couldn't execute any commands.

Thanks Dennis,
Someone has accidentally changed the permissions of the /usr/bin folder.(which causes this issue.)
Once I've reverted; Everything is working properly. Thanks a lot.
SivaOX
Advisor

Re: Users couldn't execute any commands.

Permissions of the /usr/bin directory has been changed accidentally, which causes this issue. Once reverted the permissions; everything is working properly. Thanks.