Operating System - Microsoft
1753848 Members
8125 Online
108807 Solutions
New Discussion юеВ

bash and whoami caused a 0 passwd file

 
trpjr1
Advisor

bash and whoami caused a 0 passwd file

Superdome (SD32) running HP-UX 11.11 and user uses bash 2.05b for startup script. When they changed their password and did whoami the password file compressed to 0 and I think / filled up. I could only reboot to single user mode and take a copy of a backed up passwd file to get the partition active. Would what they did cause the / to fill or passwd file to compress to 0? I have a small /. /dev/vg00/lvol3 204800 189192 15608 92% /
2 REPLIES 2
Bharat Katkar
Honored Contributor

Re: bash and whoami caused a 0 passwd file

It all depends on what is there in that scirpt which was executed.

Normally what happen if you try to backup the data to backup device which is not existing then entire data goes in to that file which resides under /dev which is part of your root.

Another reason would be somebody by mistake copied a huge file on root. You can use find command to locate the files with big sizes.

Regards,


You need to know a lot to actually know how little you know
Ivan Ferreira
Honored Contributor

Re: bash and whoami caused a 0 passwd file

You can use:

find / -xdev -type f -exec ls -la {} \; |sort +5 -nrb

find / -xdev -type f -ls |sort +6 -nrb

To find out if there is a bigfile out of place.


Are you sure that the passwd file was modified when you issued the whoami command?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?