LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-16-2015, 04:03 PM   #1
supusr
Member
 
Registered: Sep 2015
Posts: 63

Rep: Reputation: 16
Deb config question re: sudo installation


I have installed Debian 8 several times. (Normally I use Ubuntu MATE.) I can't ever get past installing sudo, since I'm not root. If I could conquer that, I'd like the idea of using Deb instead of Ubuntu. Any clear (no gaps) counsel?
 
Old 09-16-2015, 04:33 PM   #2
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Hi,

To install sudo (or anything else) you need to log in as root in the terminal using the su command. Then you need to set up your system to use sudo. Check this wiki link for more information on how to do it.

Oh, and welcome to LQ!

Last edited by Hungry ghost; 09-16-2015 at 04:35 PM.
 
Old 09-16-2015, 04:43 PM   #3
supusr
Member
 
Registered: Sep 2015
Posts: 63

Original Poster
Rep: Reputation: 16
#87A556 reply

OK. I'll check out the link. Tnx very much.
 
Old 09-17-2015, 02:18 AM   #4
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,711
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
Some other useful links:
https://www.debian.org/releases/stable/installmanual
https://www.debian.org/doc/manuals/debian-faq/
https://wiki.debian.org/
https://www.debian.org/doc/manuals/debian-handbook/
https://www.debian.org/doc/manuals/debian-reference/

The answers to most questions you may encounter can be found in the documentation. For sudo in particular, you will need to enable and configure it, if you need it. Otherwise log into the root account to do administrative tasks. Enter su, then the password when prompted. The $ will change to a #, meaning you are using the root account. When finished your administrative tasks, log out with the word exit.
Code:
$ su
Enter password when prompted.
# 
# exit
$
 
Old 09-17-2015, 09:32 AM   #5
supusr
Member
 
Registered: Sep 2015
Posts: 63

Original Poster
Rep: Reputation: 16
supusr - reply

OK. Tnx very much.
 
Old 09-17-2015, 01:16 PM   #6
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
I think if you use the alternate installer it gives the option of installing with no root account enabled -- so it's set up just like Ubuntu. I don't recall exactly which installer it is though, sorry, but I know I've seen it on a Debian installer.
 
Old 09-17-2015, 02:05 PM   #7
supusr
Member
 
Registered: Sep 2015
Posts: 63

Original Poster
Rep: Reputation: 16
supusr reply 3

Well, that would make good sense for a home user with no server or network. I'll look for the optional installer...
 
Old 09-18-2015, 02:48 AM   #8
luvr
Member
 
Registered: May 2005
Location: Boom - The Home Town of Tomorrowland, Belgium
Distribution: Slackware, Xubuntu
Posts: 459
Blog Entries: 2

Rep: Reputation: 194Reputation: 194
Quote:
Originally Posted by 273 View Post
I think if you use the alternate installer it gives the option of installing with no root account enabled -- so it's set up just like Ubuntu.
I got the option to leave the root password unset (and, thus, install a system that uses sudo "ITMOTB", i. e., "In The Manner Of The 'Buntus") when I installed Debian 8 from the XFCE CD 1, without having to hunt for some kind of an alternate installer.

You do have to pay attention to the text that gets displayed when you arrive at the step to set the password, though, or you will miss the option to leave the root password unset.

I seem to remember that this option was already present in the Debian 7 installer (even though I could be wrong), but I'm pretty sure that earlier releases didn't have it.
 
1 members found this post helpful.
Old 09-18-2015, 05:16 AM   #9
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,711
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
Yes, previous versions would enable sudo during installation if a root password was not entered (resulting in a system that used Ubuntu-style sudo abuse). It was not explained during installation, because it was assumed a root password would be entered and if sudo was needed, it would be enabled and configured properly.
 
Old 09-18-2015, 12:25 PM   #10
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by luvr View Post
I got the option to leave the root password unset (and, thus, install a system that uses sudo "ITMOTB", i. e., "In The Manner Of The 'Buntus") when I installed Debian 8 from the XFCE CD 1, without having to hunt for some kind of an alternate installer.

You do have to pay attention to the text that gets displayed when you arrive at the step to set the password, though, or you will miss the option to leave the root password unset.

I seem to remember that this option was already present in the Debian 7 installer (even though I could be wrong), but I'm pretty sure that earlier releases didn't have it.
Ah, that was it was it? It's been a few months since I installed on this machine and I don't recall which installer I used.
 
  


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
[SOLVED] sudo config question ... socalheel Linux - Server 3 01-13-2014 04:43 PM
Question about the sudo command, specifically how to have sudo act as if user is root slacker_ Linux - Newbie 17 09-22-2013 03:48 PM
kde-config error, installation question/problem chaostheory Linux - Laptop and Netbook 7 05-14-2007 06:55 AM
Modem won't disconnect, Suse v.10.0, Netzero.deb installed under sudo DeekBeek Linux - Newbie 3 01-21-2006 03:44 PM
sudo problem with kppp causes .ICEauthority login failure on Deb 3.1 HalfDiminished Debian 2 01-10-2005 06:44 AM

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

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