zayit
zayit

Reputation: 7

"-bash: is a directory" is this an error?

When i logging with "oracle" user (su - oracle), "-bash: /home/oracle: is a directory" warning appears. Is an error? This warning was not happening on my other virtual machine.

Upvotes: 0

Views: 5540

Answers (1)

Marco Baldelli
Marco Baldelli

Reputation: 3728

Looks like something is trying to execute the string "/home/oracle" as a bash command.

If this happens at each login, it's possible such a command has been added to .bashrc or .bash_profile, e.g.

# mkdir /home/oracle

# echo '/home/oracle' >> /home/myuser/.bashrc

# su - myuser
Last login: Thu Aug 20 20:44:19 CEST 2020 on pts/0
-bash: /home/oracle: Is a directory

Upvotes: 1

Related Questions