Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Microsoft
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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?