Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 20th December 2007, 17:57
klf klf is offline
Junior Member
 
Join Date: Dec 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default sudo to enable root on Ubuntu 7.10 server

Just a short question on basics, but why can I not enable the sudo command after building Ubuntu Server 7.10? The system will not allow me to use sudo to enable root.

http://www.howtoforge.com/perfect_server_ubuntu7.10

Like your input and interest in building this server, but I may have to use 6.06.1 server edition, as that allows me to work with the sudo command.
Reply With Quote
  #2  
Old 21st December 2007, 11:08
Leszek Leszek is offline
Senior Member
 
Join Date: Nov 2006
Location: Poland,Włocławek
Posts: 363
Thanks: 22
Thanked 33 Times in 29 Posts
Send a message via Skype™ to Leszek
Default

What's in /etc/sudoers file ?
Reply With Quote
  #3  
Old 23rd December 2007, 14:35
shadoza shadoza is offline
Junior Member
 
Join Date: Dec 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Think I Solved Your Problem

Hi. I am super new to linux, about two weeks. I am installing 7.10 to try out some layer 7 filtering applications. I had clean installed the server using the whole disk a couple of times due to mistakes made installing the layer 7 packet filtering stuff. After about the third or fourth time reinstalling, I kept getting a no sudoer error like you! It was very frustrating. It resulted in three days of lost work, about 30 fresh installs of the OS trying numberous different things. I read your post yesterday and you talked about the other ubuntu server and after about 3 failed attempts at getting sudoer access I started looking into the other ubuntu server you spoke of. While researching the differences between the two systems I came across this in the release notes Link:
-----------------------------------
If the mail-server task is selected during installation and "No configuration" is selected in response to the question "General type of mail configuration:", then the initial user will be set up without sudo access.
To repair this, boot in recovery mode and run:


addgroup --system admin
adduser USERNAME admin
echo '%admin ALL=(ALL) ALL' >>/etc/sudoers

------------

My problems sounded a lot like yours, I am doing an install while I am writing this, and I already left the mail options the bad way, so I am going to try and fix it like the instructions above say, if I can't figure it out I will just re-install and let you know the results!
Reply With Quote
  #4  
Old 23rd December 2007, 15:14
shadoza shadoza is offline
Junior Member
 
Join Date: Dec 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Good News! It worked for me. If you have the same problem where no matter what you can't get the sudo to work, and the /etc/sudoers is listed but when you try to access it, it says it doesn't exist, then this is the cause and solution.

I don't know if the commands worked for me because how I had this current install configured I made the grub partition too big so I was never able to see the results. I just clean installed.
Reply With Quote
  #5  
Old 2nd January 2008, 23:21
klf klf is offline
Junior Member
 
Join Date: Dec 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default sudo and mail server configuration

Thank you for your help shadoza. This worked, and thanks for the link to the 7.10 help file. There was nothing in the etc/sudoers file, as I built the mail server with no initial configuration, I could not access the sudoers file.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
shared IP with third level domain stefan Installation/Configuration 15 13th June 2007 23:55
Couple issues with ispconfig 2.2.12 after Fiesty upgrade pyropoptrt Installation/Configuration 15 1st May 2007 21:37
cacti on suse 10.1 (problems) IKShadow Installation/Configuration 8 28th November 2006 16:09
Apache - Virtual hosts - ISPConfig Hans Server Operation 8 23rd April 2006 17:29
cannot connect to ispconfig guidovanh Installation/Configuration 22 3rd March 2006 20:52


All times are GMT +2. The time now is 01:57.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Sponsored Links: Unified Communications: Thoughts, Strategies and Predictions
Join the discussion.
www.seamlessenterprise.com

IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com

Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com

Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com

Red Hat Virtual Experience - a free virtual event. Dec. 9th