LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-25-2015, 12:41 AM   #1
sleftar
Member
 
Registered: Sep 2015
Posts: 50

Rep: Reputation: Disabled
Assigning Super user problem in ubuntu


Hello guys,

I am trying to set a super user for ubuntu. I am a newb so no idea why it installs vultr.com, the ubuntu 15 x64 and makes u a root user for the first time you enter to your server. Because when I installed ubuntu with visualbox, it created the account as super user.. Did not let me log in as root... I have heard that using root can be dangerous as you may accidentally delete files easily and such so i am advised to create a super user.

The problem is
i assign a new user and set a password, say its name is newsuperuser

after that i am told that I have to edit /etc/sudoers file and add a line such as

Quote:
>>visudo
and this opens up the etc/sudoers file with your default text editor...

I added and saved this line

Quote:
newsuperuser ALL=(ALL:ALL) ALL
right under
Quote:
root ALL=(ALL:ALL) ALL
in sudoers file and saved and quit. After that I rebooted the system because this was what it was told in a text in vultr.com.

When I sign in as a newsuperuser with its password i can sign in without a problem but when I try to use sudo command it actually executes the command but gives this error message too

Quote:
sudo: unable to resolve host dontstarvetogether
Any help would be appreciated. Thank you very much.

Last edited by sleftar; 09-25-2015 at 12:46 AM.
 
Old 09-25-2015, 06:40 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530
Quote:
Originally Posted by sleftar View Post
I have heard that using root can be dangerous as you may accidentally delete files easily and such so i am advised to create a super user.
No, you're advised to create an unprivileged user account and grant it the sudo permissions to perform specific operations that require root rights. See for example https://help.ubuntu.com/community/RootSudo
 
  


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
LXer: Ubuntu 12.10 Review Ė Linux Userís biggest ever super test LXer Syndicated Linux News 0 10-20-2012 02:20 AM
[SOLVED] Can only scan from xsane as super user using Ubuntu 9.04 lunardragon Linux - Newbie 2 09-19-2009 04:09 PM
Problem assigning default gateway to clients through dhcpd (ubuntu) milpoer Linux - Networking 2 04-16-2009 09:05 AM
Problem assigning new user to my group Odyssey1942 Linux - Newbie 30 08-24-2006 03:39 PM
Strange super-user problem Riichard Linux - Newbie 8 04-06-2004 05:24 PM


All times are GMT -5. The time now is 10:36 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