I got an error /etc/subdoers busy try again later when i try to access the visudo command. Please can anyone help me how to resolve this issue?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi , when i tried all the solutions above ,but does not change the result to have this error. Just turn OFF the terminal,than turn on .It works.
This comment has been deleted
Had you already run visudo
? That error indicates that the file is already being edited. First stop the other process with:
killall visudo
Also run visudo -c
to make sure that the sudoers file was not corrupted.
type “fg” to return
@lordmasternew, thank you for your help.
fg
and thenvisudo
again.I’m having the same issue. I ran
sudo visudo
once, and then pressed Ctrl+Z. After that when I again ransudo visudo
it saidvisudo: /etc/sudoers busy, try again later
. I tried runningkillall visudo
but it said-bash: killall: command not found
nor didsudo killall visudo
work as it saidsudo: killall: command not found