cancel
Showing results for 
Search instead for 
Did you mean: 

Switch user error

Imran_K
Occasional Contributor

Switch user error

Hi all,

 

when try to switch user i'm getting below error 

this error for all user in /home directory

 

# su - username

 

/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[11]: tset: not found.
.profile[13]: stty: not found.
.profile[14]: stty: not found.
.profile[15]: tabs: not found.

 

 

thanks.

2 REPLIES
Imran_K
Occasional Contributor

Re: Switch user error

HI experts,

 

i checked the /etc/profile and /home/user/.profile and compare with other servers file everty thing seems ok...

 

but still the error show command not found, any Idea ?

 

 

Dennis Handly
Acclaimed Contributor

Re: Switch user error

>this error for all user in /home directory

# su - username

/etc/profile[31]: grep: not found.

 

Something wrong with trying to access /usr/bin/?  Or PATH is messed up?

 

>I checked the /etc/profile and /home/user/.profile and compare with other servers

 

What are the permissions of:

ll -d / /usr/ /usr/bin/

 

What happens if you leave out that "-" in su(1)?