Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

um4.dat file missing error #25

Open
g3d12 opened this issue Feb 2, 2023 · 2 comments
Open

um4.dat file missing error #25

g3d12 opened this issue Feb 2, 2023 · 2 comments

Comments

@g3d12
Copy link

g3d12 commented Feb 2, 2023

Hi
Can you please help me with resetting password process. I got unfortuanlety such an error:
Traceback (most recent call last):
File "/home/kabs/Pobrane/mtkk/RouterOS-Backup-Tools/ROSbackup.py", line 595, in
main()
File "/home/kabs/Pobrane/mtkk/RouterOS-Backup-Tools/ROSbackup.py", line 590, in main
reset_password(args.input, args.default, args.output)
File "/home/kabs/Pobrane/mtkk/RouterOS-Backup-Tools/ROSbackup.py", line 455, in reset_password
shutil.copy(temp_dir+'/default/'+file, temp_dir+'/original/'+file)
File "/usr/lib/python3.10/shutil.py", line 417, in copy
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/usr/lib/python3.10/shutil.py", line 254, in copyfile
with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: './tempDir/default/um4.dat'

@kaulpa
Copy link

kaulpa commented Apr 23, 2023

Hi there

I had the same issue and was able to solve it by a small modification of the script.
Because the um4.* files aren't available in my backups, I removed them form the overwrite_list at line 449. In my case it looks now this way.
"overwrite_list = ['user.dat','user.idx']"

So I was able to run the tool and reset my password.

@Wit4r7
Copy link

Wit4r7 commented Feb 8, 2024

Thank you so much for this, :) Just saved me couple of hours to configure my router agin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants