LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 31
visudo: busy try again later


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

Code:
root@ariem-desktop:/usr/local/etc# sudo visudo
visudo: /etc/sudoers busy, try again later
root@ariem-desktop:/usr/local/etc#
i didnt find any sudoers.tmp file
Can anybody help me?
 
Old 12-23-2009, 08:18 AM   #2
ongte
Member
 
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, 08:41 AM   #3
~sHyLoCk~
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?

Code:
nano /etc/sudoers
 
Old 12-23-2009, 09:01 AM   #4
shariefbe
Member
 
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, 12:52 PM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

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

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

DESCRIPTION
       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
       later.
So somebody is already editing the file.
 
  


Reply


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 05:38 PM
visudo noonmid27 Linux - Newbie 8 02-23-2007 05:42 PM
LXer: This week at LWN: Busy busy busybox LXer Syndicated Linux News 1 10-05-2006 09:09 PM
Need help with visudo powadha Debian 2 12-19-2004 06:04 AM
visudo xviddivxoggmp3 Slackware 7 08-17-2004 09:19 PM


All times are GMT -5. The time now is 09:03 PM.

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