[SOLVED] Password in Debian Installation WILL NOT CHANGE.....
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: What ever will load on the machine I happen to be working on....
Posts: 49
Original Poster
Rep:
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:~$
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?
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.
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.
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.
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.
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.
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
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
Distribution: What ever will load on the machine I happen to be working on....
Posts: 49
Original Poster
Rep:
Quote:
Originally Posted by BW-userx
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...?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.