Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-23-2009, 05:59 AM   #1
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 368

Rep: Reputation: 31
visudo: busy try again later

I just want to edit the sudoers file but when i tries to open that its showing some error

root@ariem-desktop:/usr/local/etc# sudo visudo
visudo: /etc/sudoers busy, try again later
i didnt find any sudoers.tmp file
Can anybody help me?
Old 12-23-2009, 07:18 AM   #2
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
If you are already logged in as root. You don't need to type 'sudo' in front of 'visudo'.
Old 12-23-2009, 07:41 AM   #3
Senior Member
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Why not use some other editors like nano?

nano /etc/sudoers
Old 12-23-2009, 08:01 AM   #4
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 368

Original Poster
Rep: Reputation: 31
Yes it works fine for me. Thanks a lot
Old 12-23-2009, 11:52 AM   #5
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Yes it works fine for me. Thanks a lot
... But you may not get the results you expect. From man visudo:
       visudo - edit the sudoers file

       visudo [-c] [-q] [-s] [-V] [-f sudoers]

       visudo edits the sudoers file in a safe fashion, analogous to vipw(8).
       visudo locks the sudoers file against multiple simultaneous edits, pro‐
       vides basic sanity checks, and checks for parse errors.  If the sudoers
       file is currently being edited you will receive a message to try again
So somebody is already editing the file.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
mdadm: device is busy yet not busy? disbeliever Linux - Server 7 07-24-2008 04:38 PM
visudo noonmid27 Linux - Newbie 8 02-23-2007 04:42 PM
LXer: This week at LWN: Busy busy busybox LXer Syndicated Linux News 1 10-05-2006 08:09 PM
Need help with visudo powadha Debian 2 12-19-2004 05:04 AM
visudo xviddivxoggmp3 Slackware 7 08-17-2004 08:19 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration