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

Excess permission or bad ownership on file /var/adm/btmp

 
SOLVED
Go to solution
AwadheshPandey
Honored Contributor

Excess permission or bad ownership on file /var/adm/btmp

Dear Gurus,

I am getting following errors in syslog in one of our systems.

sshd[20667]: Failed password for apandey from 164.129.225.143 port 58767 ssh2
sshd[20667]: Excess permission or bad ownership on file /var/adm/btmp

Need your expert suggestion to solve the issue.
Regards,

Awadhesh
It's kind of fun to do the impossible
6 REPLIES
Jorge Pons
Trusted Contributor
Solution

Re: Excess permission or bad ownership on file /var/adm/btmp

Hi

what permissions have that file?
In may case:

rw------- 1 root other 12720 Apr 14 13:08 btmp

Regards, Jorge
AwadheshPandey
Honored Contributor

Re: Excess permission or bad ownership on file /var/adm/btmp

Thnaks JP for your reply.Permission is below.
# ll /var/adm/btmp
-rw------- 1 bin bin 3720 Sep 7 01:43 /var/adm/btmp
It's kind of fun to do the impossible
Jorge Pons
Trusted Contributor

Re: Excess permission or bad ownership on file /var/adm/btmp

HI

could be owner and group problem?
Hakki Aydin Ucar
Honored Contributor

Re: Excess permission or bad ownership on file /var/adm/btmp

Did you check user apandey (I guess it is a user ?) if he experienced any password problem ssh config files ?

and besides; if timestamp is too old in logs and file is too large: you can go to trim bad login files :

# cat /dev/null > /var/adm/btmp

and to make integrity for who command send a wall everyone logout and login again.
AwadheshPandey
Honored Contributor

Re: Excess permission or bad ownership on file /var/adm/btmp

Solution:
# cat /dev/null> /var/tmp/btmp
# chmod root:other /var/tmp/btmp

Thanks every one.

Best Regards,

Awadhesh

It's kind of fun to do the impossible
AwadheshPandey
Honored Contributor

Re: Excess permission or bad ownership on file /var/adm/btmp

Above Solution works fine!!!
It's kind of fun to do the impossible