LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-21-2007, 01:56 AM   #1
Dragunov
LQ Newbie
 
Registered: Jan 2007
Distribution: Ubuntu
Posts: 4

Rep: Reputation: 0
sudo passwd root error on latest downloaded distro


madness@Mad:~$ sudo passwd root
>>> sudoers file: syntax error, line 0 <<<
>>> sudoers file: syntax error, line 1 <<<
>>> sudoers file: syntax error, line 2 <<<
>>> sudoers file: syntax error, line 3 <<<
>>> sudoers file: syntax error, line 4 <<<
>>> sudoers file: syntax error, line 5 <<<
>>> sudoers file: syntax error, line 6 <<<
>>> sudoers file: syntax error, line 7 <<<
>>> sudoers file: syntax error, line 8 <<<
>>> sudoers file: syntax error, line 9 <<<
sudo: parse error in /etc/sudoers near line 0


Ok, I have been away from Linux for awhile, and trying to get back into the swing of things with my now old pc to run a network file server / all around use pc while my network pcs can share mp3s and what not across the network.

So to start things off I notice that Ubuntu has no root password to start off with, so with this command I was given to set up a sudo to start install patches to get mp3s to play to give me a place to start before I start into Samba, I get this error posted above?!?!?!

Thanks for the help, and I hope you all welcome me back, my previous screen name on here I have forgotten and the old email account is not longer active, so I changed things up. Thanks.
 
Old 01-21-2007, 02:14 AM   #2
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
Sounds as if something's wrong with your /etc/sudoers file. This may help:
http://www.psychocats.net/ubuntu/sudo
 
Old 01-22-2007, 09:40 AM   #3
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
Also you don't need to enable a root password to have a root shell, sudo -i gives you a full root shell.
Having said that, there are errors in your sudoers file for sure
 
Old 01-23-2007, 09:22 PM   #4
Dragunov
LQ Newbie
 
Registered: Jan 2007
Distribution: Ubuntu
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by binary_y2k2
Also you don't need to enable a root password to have a root shell, sudo -i gives you a full root shell.
Having said that, there are errors in your sudoers file for sure
Ok, so here is my error.


Error: BadDevice, invalid or uninitialized input device 166
Major opcode: 144
Minor opcode: 3
Resource id: 0x0
Failed to open device

That when I boot up in recovery mode and do nano /etc/sudoers



So now what?
 
Old 01-24-2007, 01:03 AM   #5
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
It would help if you post the /etc/sudoers file
and those "errors" are totally normal, it's because there is a section for "wacom" in your xorg.conf file (used to configure the X server (graphics))
you can safely ignore them

Oh, and wacom is a driver for tablet devices, in case you were wondering
 
Old 01-25-2007, 06:08 PM   #6
Dragunov
LQ Newbie
 
Registered: Jan 2007
Distribution: Ubuntu
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by binary_y2k2
It would help if you post the /etc/sudoers file
and those "errors" are totally normal, it's because there is a section for "wacom" in your xorg.conf file (used to configure the X server (graphics))
you can safely ignore them

Oh, and wacom is a driver for tablet devices, in case you were wondering
GNU nano 1.3.12 File: /etc/sudoers

X Error: BadDevice, invalid or uninitialized input device 166
Major opcode: 144
Minor opcode: 3
Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 166
Major opcode: 144
Minor opcode: 3
Resource id: 0x0
Failed to open device
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
# Host alias specification

# User alias specification

# Cmnd alias specification

# Defaults

Defaults !lecture,tty_tickets,!fqdn

# User privilege specification
root ALL=(ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Entries for Smb4K users.
# Generated by Smb4K. Please do not modify!
User_Alias SMB4KUSERS = madness
Defaults:SMB4KUSERS env_keep="PASSWD USER"
SMB4KUSERS Mad SMB4KUSERS Mad = NOPASSWD: /usr/bin/smb4k_umount
SMB4KUSERS Mad = NOPASSWD: /usr/bin/smb4k_mount
# End of Smb4K user entries.
NOPASSWD: /usr/bin/smb4k_kill



Ok, this is everything from nano /etc/sudoers
 
Old 01-26-2007, 05:07 AM   #7
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
the only thing different there from my sudoers file is the smb4k stuff
 
  


Reply



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
Every Distro I've downloaded has a different checksum. cmelliott1 Linux - Newbie 9 08-03-2006 01:28 PM
passwd root Error scbops Red Hat 4 04-24-2006 12:10 AM
Sudo, su and root lesleyb Linux - Security 3 10-18-2004 01:36 PM
root passwd sparks Linux - Newbie 5 06-16-2002 07:25 AM
root login incorrect ,then passwd root,but error sunnycn Linux - Security 6 05-20-2002 10:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 01:02 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
Open Source Consulting | Domain Registration