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-27-2016, 05:27 AM   #1
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: 38

Rep: Reputation: Disabled
Password in Debian Installation WILL NOT CHANGE.....


I am livid, I am ready to throw this f-ing machine into the street and make several passes over it with a freight train.............................!!!!!

I have done init-/bin/bash <ctl>x
I have used knoppix
I have stood on my head and sung Barry White songs to it...
I have threatened torture
I am just about done with this idiotic stupid usless piece of software that will not even allow me to run snapteck package manager to update it.

I hate this it is idiotic that I cannot take control of my own computer and load a frigging update........

Who ever wrote this crap should be taken out and..........

It wont change, I have spent 6 f-ing hours on this....
 
Old 09-27-2016, 07:12 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,925

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by OHPRG Project Director View Post
I am livid, I am ready to throw this f-ing machine into the street and make several passes over it with a freight train.............................!!!!!

I have done init-/bin/bash <ctl>x
I have used knoppix
I have stood on my head and sung Barry White songs to it...
I have threatened torture
I am just about done with this idiotic stupid usless piece of software that will not even allow me to run snapteck package manager to update it.

I hate this it is idiotic that I cannot take control of my own computer and load a frigging update........
Who ever wrote this crap should be taken out and..........
It wont change, I have spent 6 f-ing hours on this....
...and maybe if you provided some details, like what KIND of machine, running what (subject mentions Debian?), what you mean by 'snapteck', and where knoppix comes into this, we might be able to actually help. You say "init-/bin/bash" (???), and what did you actually *DO* in that shell? What did you actually DO with knoppix???

If you just want to rant and rave, there's no point in posting. What are you actually trying to DO, from what desktop environment???
 
Old 09-27-2016, 09:11 AM   #3
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: 38

Original Poster
Rep: Reputation: Disabled
Ok, I have had some time to sleep on it and I'm somewhat less perturbed than I was at 2 or 3 am...

I am working with Debian in a Mate desktop environment, although I can load KDE Cinnamon Gnome and a couple of others, I allowed several to install so I could test the difference.

Using an old Dell PowerEdge 860 with a 160gb HDD and 4G RAM. Synaptic Package Manager is what I meant, Knoppix comes into this because a buddy of mine said that is always his "go-to" Swiss army knife of software to solve any problem.....and I actually DID get "Password Successfully Changed" reply back from the server when I used it to attempt to change the root PW, however upon reboot, Synaptic requested root PW to run updates ect, and I entered the new "Successfully Changed PW" and still got rejected.

So one of the first attempts to change root PW was to "E"dit into the Grub Boot-loader and add init=/bin/bash to the end of the kernel line beginning with Linux...
No Joy....Half a dozen or so lockups on Google in the forums ect. to get this pathway to work yielded more frustrations.

So I attempted to DL Knoppix, which in and of itself was a substantial challenge as every link in the Knoppix page brought me back to the same Knoppix page, like being caught in a trackback loop....again VERY frustrating.....finally after achieving a successful download and burn of Knoppix and untold numbers of searches (because what I was seeing on my screen was not even close to what the tutorial I was following) I finally stumbled (more or less) into an area on my screen that very closely resembled the tutorial and I did the psswd root change, and to my delight it was successful....

Only to be denied again on reboot and launch of Synaptic Package Manager......

I re-attempted the init=/bin/bash from Grub again (if I remember correctly) and here is where I sit at this time:

https://s13.postimg.org/nz2zlvzmv/IMG_4532.jpg
 
Old 09-27-2016, 09:23 AM   #4
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 2,088

Rep: Reputation: Disabled
NO JOB CONTROL IN SHELL
is why is not allowing you to do anything becuase that shell has no control for doing jobs, ie changing passwords, that is a new error to me never seen it but google has plenty of posts on this subject.

your prompt root@(none) says something. when it should be showing your domain name

was your system working properly before you decided to try and change the root password?

if yes then, perosonally I'd do a re-install and be done with the head acke of trying to fix everything first just to change it. saves time.

but you also could wait and see if anyone else in here can help you to fix that NO JOB CONTROL IN SHELL error so you can change your password.


[modded moved to top]

I'm getting all you want to do is change the root password?
open up a terminal and use that to do this...

To change the password of your account, use command: passwd.
To change password of any account when login as root, use command: passwd <account name>
To change password of a group, use command: passwd -g <group name>


Code:
userx@voided & ~ >> $sudo passwd root
New password:
Retype new password:
passwd: password updated successfully
me already having sudo (root) prevages I was able to change the root password using the old root password to give myself (root) a new and different password (same password in real life because I didnt really want to change mine) I only did this to get something for you to read to see what is going on. You have to have root privages to change passwords.

log in as root, or use sudo if you have the privages set up in your sudoers file.

Code:
userx@voided & ~ >> $su
Password:
root@voided & userx >> $passwd root
New password:
Retype new password:
passwd: password updated successfully
[command] passwd [user name needing new or old password changed] userName, then just follow the prompts. Being that it is a system side operation you have to have the privages of root to do so. or be logged in as root, or su (superUser)

if the linux OS is not doing what you want and it is you that is trying to change whatever it is then it is not the OS but the proccedure being used that is not the right proccedure being used or the command is not completely correct in order for the changes to take place.


if you have time, me I would just wipe that install by re-installing my OS me personally I'd use a different version of Linux .. but that is me, debian is not that bad of a linux os though. I just no longer use it.

then if all you wanted to do is change the password then go though the steps needed

Last edited by BW-userx; 09-27-2016 at 10:01 AM.
 
Old 09-27-2016, 09:42 AM   #5
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 8 Jessie
Posts: 1,688
Blog Entries: 5

Rep: Reputation: 163Reputation: 163
That screenshot looks like it's not getting anywhere near the Mate desktop environment, or any desktop environment, or even a successful boot. It looks like you messed up the initial install, with the same issue as whatever you originally had.

In the previous thread, someone noticed that the dashes in your machine name may have confused the LVM handler--replacing single dashes with double dashes.

I would strongly recommend you reinstall Debian. This time, don't use LVM, and use a normal alphanumeric machine name with no dashes or other special characters. If you really insist upon having both, you can try that again later.

It's entirely unclear what you have done with Knoppix, but it sounds like you don't really know quite what you're doing with it. As such, there's a good chance that the only password you changes was the password in Knoppix (which gets forgotten upon shutdown anyway, since it stores those changes in RAM rather than a hard drive). Alternatively, even if you did successfully chroot into a suitable environment to change the passwd file on that messed up LVM install, the point is moot since the boot process doesn't seem to get far enough to load up that passwd file anyway.
 
Old 09-27-2016, 09:51 AM   #6
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: 38

Original Poster
Rep: Reputation: Disabled
from the following prompt:
root@(none):/#

I typed:
sudo passwd root

Server replied:
Enter new UNIX password:

I entered:
123

Server replied:
Retype new UNIX password:

I entered:
123

Server replied:
passwd: Authentication token manipulation error
passwd: password unchanged

https://s15.postimg.org/4dm6way8b/IMG_4533.jpg

Tried your second choice answer, and will spare the repetition of the above and just include the screen shot of the failure here:

https://s15.postimg.org/xhaesjmbv/IMG_4534.jpg

Thank you all for your time and attention, I truly appreciate your assistance.
I could just re-install, but would probably end up at the same point, and I'd rather learn something.

Alan
 
Old 09-27-2016, 09:59 AM   #7
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: 38

Original Poster
Rep: Reputation: Disabled
This is a Test Only
 
Old 09-27-2016, 10:00 AM   #8
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: 38

Original Poster
Rep: Reputation: Disabled
Sorry was trying to see if it would attach a signature.....it did not....
 
Old 09-27-2016, 10:04 AM   #9
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 2,088

Rep: Reputation: Disabled
Quote:
Originally Posted by OHPRG Project Director View Post
from the following prompt:

https://s15.postimg.org/4dm6way8b/IMG_4533.jpg

Tried your second choice answer, and will spare the repetition of the above and just include the screen shot of the failure here:

https://s15.postimg.org/xhaesjmbv/IMG_4534.jpg

Thank you all for your time and attention, I truly appreciate your assistance.
I could just re-install, but would probably end up at the same point, and I'd rather learn something.

Alan
NOTE the error message prior to trying to change your password that is what is preventing you from doing so. therefore learn how to fix whatever it is that is causing your OS to give you that error message before proceding to keep trying to change your password.

or
you could just re-install and try it again.

Last edited by BW-userx; 09-27-2016 at 10:17 AM.
 
Old 09-27-2016, 11:22 AM   #10
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,324
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
That screenshot is weird. Some distros don't have a root password, therefor you cannot change it. (without extra steps).

root@(none):/# echo $0
root@(none):/# id
root@(none):/# lsb_release -a

To set a root password in ubuntu (which breaks ubuntu's security model).

root@(none):/# passwd -d root
root@(none):/# passwd root

BUT... If you chroot into it from another distro, you are root at the chroot. At which point you can add users and change their login credentials without breaking said distro. Plus the other admin steps to enable sudo for said user so you don't need root (directly) and don't break the distros security model.

Although I have no idea if this is your issue, or if you're even in a linux environment and not same bash shell for windows. By all outward appearances that environment didn't even set the hostname, so is likely not properly installed at a minimum. Or maybe / is read-only so you can't really change anything anyway.

root@(none):/# mount | grep " / "
 
Old 09-27-2016, 11:42 AM   #11
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Debian Sid. Arch. In the process of converting to and learning FreeBSD
Posts: 1,023
Blog Entries: 6

Rep: Reputation: 237Reputation: 237Reputation: 237
Quote:
Originally Posted by Shadow_7 View Post
That screenshot is weird. Some distros don't have a root password, therefor you cannot change it. (without extra steps).
No it's not. He booted by passing
Code:
init=/bin/bash
to the bootloader. I'm willing to take the educated guess that means that the root fs is still mounted read only because (s)he hasn't indicated otherwise.

"OHPRG Project Director", check the output of mount as Shadow suggested. If it says "ro", the root fs is mounted ready only and that's why you're getting the error.

At the shell prompt:

Code:
mount -o remount,rw /
then try changing the password again. Any password, not just root can be done in this manner. That'll likely fix your problem. Then you can go back to singing Barry White. Me personally, I sing Chris Cornell to my laptop, scares the thing into doing what I want.

Last edited by goumba; 09-27-2016 at 11:45 AM.
 
1 members found this post helpful.
Old 09-27-2016, 07:03 PM   #12
Jjanel
Member
 
Registered: Jun 2016
Posts: 377

Rep: Reputation: 66
goumba is exactly correct! (I built a similar Vbox [but no GUI] to follow-along &learn)

sudo isn't needed (you're already 'root'; sudo wants user's [not root's!] password)

Hopefully, after the `passwd` succeeds (and you press reset to reboot), all will be ok.

Even I (an OLD long-ago Unix SysAdmin) still get lost, overlooking some 'basic' concept,
so I'm glad to hear you recovered from the head-smashing that this 'puzzle-gifter' [Linux] provided.
Also, ack. '1st-responder' for not seeming upset (analogously)!

Best wishes in all this (I'm guessing OHPRG is an after-hours volunteer task)

Last edited by Jjanel; 09-27-2016 at 09:28 PM.
 
Old 09-28-2016, 12:59 AM   #13
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: 38

Original Poster
Rep: Reputation: Disabled
Issue Resolved..........Good read.....

I had posted about this in another thread and an answer did come to light....

I named my box TAPS-0-GRN, as I have 2 others for similar purposes timing and scoring of rally races
TAPS-1-RED & TAPS-2-BLU.......RED/GRN/BLU......RGB.....GET IT....Graphic artist, Computer nerd, Racecar fan...evil genius (at times)
I share the prize winning theroy with you here as well....


Originally Posted by Jjanel View Post
oh wow: *maybe* your hostname of TAPS-0-GRN 'confused' the LVM install!
(note in 4th img that something turned the single hyphens into DOUBLE hyphens!)
(I'm not sure whether this was ever fixed.)

What 'distro' are you using now?
(I had a thought: pick the distro used in: whatever instruction/guide you will use for your timeserver)

p.s. I vaguely remember running into the same root-can't-login-after-install!
It *might* have been some distro's /etc/securetty 'feature' [linux puzzle-gift]
Or a @ or # (or ...) special char in the password confused something
Well this sure would explain a lot...... <sigh>.......Which kinda bums me out because I was going to make this PowerEdge the Master which always stayed at home base and TAPS-1-RED & TAPS-2-BLU were going to be the actual on course timing devices for our races, RED and BLU are a couple of Identical (build by same company, same line, same guy, same day) ilbiet fairly cheap desktop tower computers running Mint.....(No double Hyphens there)....so the theroy was that any inherient latentency in the timing of each once synced with the master at the beginning and and of the race day would be minimal.....I will re read the tutorial about the time server/service I beleive it is running free BSD. So will take a look at a reload for sure maybe mint is fine for this one too but as it is a GENUINE server and not a fake wanna be server (even as old as it is) that id treat myself to a wiz bang interface, (with my fat finger typing and horrible spelling and syntax....GUI is the way to go.....LOL.....

Thanks folks for all your help and assistance, any thoughts on what to load on it next......???

Alan






The method lvm uses for naming is:

Use volumegroupname-volumename

if the names have dashes in them, double up the dashes so that the only
place with a single dash is the one seperating the volumegroupname from
the volumename.

I think they do this to make sure hey stay unique.

After all if you had a volume group named 'a-b' with a volume named 'c'
and a nother volume group named 'a' with a volume named 'b-c' you would
end up with:

a-b-c for both of them if you didn't do the doubling thing. Instead you get get:

a--b-c (VG a-b with LV c)
a-b--c (VG A with LV b-c)

So the installer must double the dash in any volumegroup name or
volumename when generating the name in /dev/mapper to expect.
 
Old 09-28-2016, 09:58 AM   #14
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Debian Sid. Arch. In the process of converting to and learning FreeBSD
Posts: 1,023
Blog Entries: 6

Rep: Reputation: 237Reputation: 237Reputation: 237
Glad you got it sorted. If the hyphen is not a suitable delimiter for your purposes, then simply find one that is, but keeping the VG name to your intent. For most purposes, once you set the VG name, you're really not going to need to touch it again unless you add more hard disks, storage, whatever and need to add them to the group.
 
Old 09-28-2016, 10:23 AM   #15
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 2,088

Rep: Reputation: Disabled
TAPS-0-GRN TAPS.0.GRN maybe not confuse OS whereas the - (hyphenate) did .. but I'd have to be look up to be sure.
 
  


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


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