LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-29-2016, 12:49 AM   #16
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751

I usually use underscore instead of hyphen. Similar enough for a human, but OS/tool will ignore it (ie treat as normal alphanum char)
 
Old 10-04-2016, 11:23 AM   #17
OHPRG Project Director
Member
 
Registered: Sep 2016
Location: Southern California
Distribution: What ever will load on the machine I happen to be working on....
Posts: 49

Original Poster
Rep: Reputation: Disabled
Well Apparently this issue is not going away, I have done a fresh install of Debian Jessie on a Dell Poweredge 860 Blade Server. and attempted to log in.....I simplified the nomaclature to TAPS1 no hyphens no spaces, my results:

alan@TAPS1:~$ sudo rmmod iguanair

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

[sudo] password for alan:
alan is not in the sudoers file. This incident will be reported.
alan@TAPS1:~$ su
Password:
su: Authentication failure
alan@TAPS1:~$
 
Old 10-04-2016, 11:48 AM   #18
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by OHPRG Project Director View Post
Well Apparently this issue is not going away, I have done a fresh install of Debian Jessie on a Dell Poweredge 860 Blade Server. and attempted to log in.....I simplified the nomaclature to TAPS1 no hyphens no spaces, my results:

alan@TAPS1:~$ sudo rmmod iguanair

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

[sudo] password for alan:
alan is not in the sudoers file. This incident will be reported.
alan@TAPS1:~$ su
Password:
su: Authentication failure
alan@TAPS1:~$
does it specify ask for a ROOT password? if you only put one password within that debian system during install then that is the su password.
if you put in two passwords during the install then the first password should be your su (root) password.

you do know how to mod the sudoers file to give users sudo rights , yes?
 
Old 10-04-2016, 12:30 PM   #19
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
In addition, Mint which is based on Ubuntu disables root by default so to execute commands as root you use sudo. For other distributions you can use su to login as root (using root's password) or add your regular user to the sudoers file.

https://help.ubuntu.com/community/RootSudo

https://wiki.debian.org/sudo

https://www.digitalocean.com/communi...n-a-debian-vps
 
Old 10-04-2016, 12:56 PM   #20
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Quote:
Originally Posted by OHPRG Project Director View Post
Well Apparently this issue is not going away, I have done a fresh install of Debian Jessie on a Dell Poweredge 860 Blade Server. and attempted to log in.....I simplified the nomaclature to TAPS1 no hyphens no spaces, my results:

alan@TAPS1:~$ sudo rmmod iguanair

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

[sudo] password for alan:
alan is not in the sudoers file. This incident will be reported.
This is normal for Debian. By default, no one has any sudo rights (except root). If you wish to add alan to the sudoers file, you may optionally do so using the command "visudo".
Quote:
alan@TAPS1:~$ su
Password:
su: Authentication failure
alan@TAPS1:~$
When you did the fresh install, it should have asked you to specify two different passwords - the root password, and the password for alan. When you use the command "su", you need to use root's password, not alan's password.

Last edited by IsaacKuo; 10-04-2016 at 12:58 PM.
 
Old 10-04-2016, 02:06 PM   #21
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 421

Rep: Reputation: 74
Try this:

Code:
sudo su -
 
Old 10-04-2016, 02:23 PM   #22
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by c0wb0y View Post
Try this:

Code:
sudo su -
that'll only take you down down down into the root environment ....
 
Old 10-04-2016, 02:26 PM   #23
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Quote:
Originally Posted by c0wb0y View Post
Try this:

Code:
sudo su -
In a fresh Debian Jessie install, that will accomplish nothing more than a security warning. By default, no one (other than root) has any sudo rights.

Years ago, the "geniuses" behind Ubuntu thought they were smarter than the rest of the *nix world, so they decided to do things in a radically different way. Leading to many years of unnecessary confusion for many people, including yourself. sudo is actually a great tool for giving some regular users limited rights to do some things that normally only root can do. The way Ubuntu uses it is, at best, a wash.
 
1 members found this post helpful.
Old 10-04-2016, 02:39 PM   #24
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by IsaacKuo View Post
In a fresh Debian Jessie install, that will accomplish nothing more than a security warning. By default, no one (other than root) has any sudo rights.

Years ago, the "geniuses" behind Ubuntu thought they were smarter than the rest of the *nix world, so they decided to do things in a radically different way. Leading to many years of unnecessary confusion for many people, including yourself. sudo is actually a great tool for giving some regular users limited rights to do some things that normally only root can do. The way Ubuntu uses it is, at best, a wash.
oh debain another reason I left them... removing my rights to be root

but I did if I remembercorrectly do a basic install of Debian and that is the only time it gave me option for an actaul root account complete with a seperate root password option..


it sould actaullb the exact password he used when it asked him for a password when installing it.

But I have not touched Debain in years ...
 
Old 10-04-2016, 02:53 PM   #25
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Quote:
Originally Posted by BW-userx View Post
oh debain another reason I left them... removing my rights to be root
Huh? Debian has never removed your rights to be root. It works the same today as it did from the start many years ago. You want to be root? Just log in as root, or use "su". Just like the rest of the non-Ubuntu *nix world.

Quote:
but I did if I remembercorrectly do a basic install of Debian and that is the only time it gave me option for an actaul root account complete with a seperate root password option..


it sould actaullb the exact password he used when it asked him for a password when installing it.

But I have not touched Debain in years ...
It works the same as ever. When doing an install of Debian, you set up (at least) two accounts. The root account and a regular user account. Thus, you specify (at least) two passwords and (at least) one userid.
 
Old 10-04-2016, 02:55 PM   #26
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by IsaacKuo View Post
Huh? Debian has never removed your rights to be root. It works the same today as it did from the start many years ago. You want to be root? Just log in as root, or use "su". Just like the rest of the non-Ubuntu *nix world.



It works the same as ever. When doing an install of Debian, you set up (at least) two accounts. The root account and a regular user account. Thus, you specify (at least) two passwords and (at least) one userid.
I'm talking root account looks like you're just a knowin' su
 
Old 10-04-2016, 02:58 PM   #27
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 421

Rep: Reputation: 74
Quote:
Originally Posted by IsaacKuo View Post
In a fresh Debian Jessie install, that will accomplish nothing more than a security warning. By default, no one (other than root) has any sudo rights.

Years ago, the "geniuses" behind Ubuntu thought they were smarter than the rest of the *nix world, so they decided to do things in a radically different way. Leading to many years of unnecessary confusion for many people, including yourself. sudo is actually a great tool for giving some regular users limited rights to do some things that normally only root can do. The way Ubuntu uses it is, at best, a wash.
Thank you for such a great reply to my simple post. Way to go, dude. Though I'n not a debian/ubuntu user per se, it has worked for me in the past. And without actually knowing the exact config of his machine, we try things that might be applicable to his case.

Last edited by c0wb0y; 10-04-2016 at 03:01 PM. Reason: text
 
Old 10-04-2016, 03:18 PM   #28
OHPRG Project Director
Member
 
Registered: Sep 2016
Location: Southern California
Distribution: What ever will load on the machine I happen to be working on....
Posts: 49

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
does it specify ask for a ROOT password? if you only put one password within that debian system during install then that is the su password.
if you put in two passwords during the install then the first password should be your su (root) password.

you do know how to mod the sudoers file to give users sudo rights , yes?
Thank you for the reply let me try to address your questions to me one at a time:

#1. <does it specify ask for a ROOT password?>

When I type: "sudo rmmod iguanair"

Debian responds: "We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

[sudo] password for alan: "

#1 - Answer = NO, it asked for the password for alan.

I responded with "alan pw here"

Debian responds: "alan is not in the sudoers file. This incident will be reported.
alan@TAPS1:~$"

I type su <ENTER>

Debian responds: Password:

I enter "root pw here" (different from alan pw) created at install and written down.

Debian responds: su: Authentication failure
alan@TAPS1:~$



#2 <you do know how to mod the sudoers file to give users sudo rights , yes?>

#2 - Answer = NO, However I do have a working Knoppix CD and can look up online how to mod such file if necessary...


From your response, and the lingering issue I am having, it sounds like I am doing something wrong during the install phase. Which could be the forgive the pun "root" cause of all my woes....YES...?

Alan
 
Old 10-04-2016, 03:30 PM   #29
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 421

Rep: Reputation: 74
So you can boot from a Live Knoppix CD, that's good. Boot into it then mount the root partition, edit /etc/passwd then remove the 'x' character (which is root's "password") which is at 2nd column. You can now reboot to a passwordless root but don't forget to set the password for root.
 
Old 10-04-2016, 03:33 PM   #30
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by OHPRG Project Director View Post
Thank you for the reply let me try to address your questions to me one at a time:

#1. <does it specify ask for a ROOT password?>

When I type: "sudo rmmod iguanair"

Debian responds: "We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

[sudo] password for alan: "

#1 - Answer = NO, it asked for the password for alan.

I responded with "alan pw here"

Debian responds: "alan is not in the sudoers file. This incident will be reported.
alan@TAPS1:~$"

I type su <ENTER>

Debian responds: Password:

I enter "root pw here" (different from alan pw) created at install and written down.

Debian responds: su: Authentication failure
alan@TAPS1:~$

#2 <you do know how to mod the sudoers file to give users sudo rights , yes?>

#2 - Answer = NO, However I do have a working Knoppix CD and can look up online how to mod such file if necessary...


From your response, and the lingering issue I am having, it sounds like I am doing something wrong during the install phase. Which could be the forgive the pun "root" cause of all my woes....YES...?

Alan

the thing being is that you when installing Debian should have been asked to give a password for root, and a password for a user. in that order, that is why I stated that if you enterd two passwords then the first is root, or sudo password and the other one is yours (user) therefore when issuing sudo [anything] you have to enter the root password and not the user password.

Me I just eliminte that by using a different way but that is a secret.


point being sudo requires the password you add for the root user and not the "normal" user, if you have actually been asked to enter a root password.

as per Debian wiki wiki page

Code:
At installation time, you are asked whether you want to use the root account or not.

    If you want to (the default), you'll be asked to provide a complex password for root. Use a strong one!
    If not, no root account is enabled and the password of the first user created will be used for administration tasks.

    If you forgot your root password, you first need to reset the password, 
    then log as root (now accessible without password) and run passwd to set a new password. 

How to use root level access as a normal user

    Under Gnome : in Gnome Application Menu/Accessories/Root Terminal

    From console : read Debian Reference's Login to a shell prompt as root

    In a terminal : you can use su (or gksu) to change your identity to root.
    However, it's recommended to configure and use sudo (or gksudo) to run a given command. 

When you change from a normal user to root, your prompt will change from user@mypc:~$ to root@mypc:/home/user# .
To find out as which user you're operating now, execute the command whoami.

debian wiki

Last edited by BW-userx; 10-04-2016 at 03:40 PM.
 
  


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] Debian Installation - Change Network Card Speed During Installation protocol Linux - Networking 8 03-30-2012 01:17 PM
how to change debian gnu grub 1.97 password root? please help me , redscience Linux - Server 1 01-12-2012 06:34 PM
Change my root password in Debian Linux if I have the current password? panseluta Linux - Newbie 2 12-28-2008 02:02 AM
Debian log (Change Password) daimous Linux - General 2 12-12-2008 02:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:08 AM.

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