patrickkasie
Verified User
Dear DirectAdmin forum,
A customer of ours says that he needs to request a different password almost every month while they aren't changing the password themselves. Initially I thought this was someone who had a rogue employee changing the user password all the time, but then I looked at the /etc/passwd file. It appears it's not up to date, and I suspect that every time it does somewhat irregularly updates, the user's password changes back to whatever it was on the old file. What's a possible explanation for the following situation to occur?
Today is september 25th 2023, I've just edited the password of the customer, these are the files I see on the rogue server:
ls -al /etc/.passwd.swp /etc/passwd
-rw-r--r-- 1 root root 3230 Aug 7 11:41 /etc/passwd
-rw-r--r-- 1 root root 12288 Dec 21 2022 /etc/.passwd.swp
I expect to see:
ls -al /etc/.passwd.swp /etc/passwd
ls: cannot access /etc/.passwd.swp: No such file or directory
-rw-r--r-- 1 root root 6248 Sep 19 09:39 /etc/passwd
A customer of ours says that he needs to request a different password almost every month while they aren't changing the password themselves. Initially I thought this was someone who had a rogue employee changing the user password all the time, but then I looked at the /etc/passwd file. It appears it's not up to date, and I suspect that every time it does somewhat irregularly updates, the user's password changes back to whatever it was on the old file. What's a possible explanation for the following situation to occur?
Today is september 25th 2023, I've just edited the password of the customer, these are the files I see on the rogue server:
ls -al /etc/.passwd.swp /etc/passwd
-rw-r--r-- 1 root root 3230 Aug 7 11:41 /etc/passwd
-rw-r--r-- 1 root root 12288 Dec 21 2022 /etc/.passwd.swp
I expect to see:
ls -al /etc/.passwd.swp /etc/passwd
ls: cannot access /etc/.passwd.swp: No such file or directory
-rw-r--r-- 1 root root 6248 Sep 19 09:39 /etc/passwd