LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Forgot my password (https://www.linuxquestions.org/questions/linux-newbie-8/forgot-my-password-4175603247/)

jamison20000e 04-16-2017 03:01 PM

But for daily OSs thanks for the heads-up! ;)

BW-userx 04-17-2017 07:49 AM

Quote:

Originally Posted by Safeway44 (Post 5697610)
I got
can't find in /etc/fstab




I typed
ls /home and pressed enter, but no list of usernames. Are the usernames meant to be in etc/passwd?
What path should I take to get there?


I'm trying to change only the username now,not the password.
After typing passwd username I got the following line:
passwd: user 'username' does not exist


You need to learn how to copy paste from the terminal to the text box in here so that I and others can see the actual commands and results taking place to insure clarity.

BW-userx 04-17-2017 07:53 AM

Quote:

Originally Posted by BW-userx (Post 5698011)
You need to learn how to copy paste from the terminal to the text box in here so that I and others can see the actual commands and results taking place to insure clarity.

If you typed 'ls' then gave it a space then /home then hit enter and got no results then either you do not have a user to begin with.

Or at least if one was created it was not done in the manner to have it also create for that said user to have a home directory as well. So just delete that user and recreate another one be it the same name or a different name. that is up to you.


[ OOPS I hit the quote and not edit button on this one it must be Monday Because I am not posting to myself ]

this is meant for @Safeway44

wpeckham 04-17-2017 10:12 AM

Quote:

Originally Posted by BW-userx (Post 5698011)
You need to learn how to copy paste from the terminal to the text box in here so that I and others can see the actual commands and results taking place to insure clarity.

If the user has access issues and is not posting from the machine with the problem, copy/paste may not be an option for them.

BW-userx 04-17-2017 01:43 PM

Quote:

Originally Posted by wpeckham (Post 5698081)
If the user has access issues and is not posting from the machine with the problem, copy/paste may not be an option for them.

hummm good point. But that does not prevent one from writing it out verbatim

Safeway44 04-19-2017 08:20 AM

Quote:

Originally Posted by jamison20000e (Post 5697642)
Code:

deluser
adduser


I tried this on virtual box but I noticed the newly added user was not the super user. I tried a few codes to make the newly added user a super user but wasn't able to. I accessed command line through GRUB not with the Live CD in virtual box when I did that.How do I make it a super user for newly created user?

BW-userx 04-19-2017 08:43 AM

Quote:

Originally Posted by Safeway44 (Post 5699163)
I tried this on virtual box but I noticed the newly added user was not the super user. I tried a few codes to make the newly added user a super user but wasn't able to. I accessed command line through GRUB not with the Live CD in virtual box when I did that.How do I make it a super user for newly created user?

  1. create user
  2. add new user to sudo group
  3. give user password
  4. log out
  5. log in
  6. using the same user
  7. the user needs to be added to wheel or sudo group
  8. and the sudoers file needs to reflect the group wheel or sudo
  9. as being the superUser control group

jamison20000e 04-19-2017 10:31 AM

Safeway44 [code][/code] tags help too, clicking on "Go Advanced" while editing in the non-:newbie: forum for Kali (:doh: couldn't help myself :p) will help.

Safeway44 04-21-2017 09:27 PM

Quote:

Originally Posted by BW-userx (Post 5699182)
  1. create user
  2. add new user to sudo group
  3. give user password

Do I need access to root to do this?
I don't have access to Root I had already created new user before you posted which means:
"add new user to sudo group" step was missed because I created the new user before I read your post. Can I still add it to the sudo group?

Should I use the live cd if I need access to root for this step? I want to keep the name of the new user. You understand the reason for the new user is because I forgot my username and password for the virtual box linux? I would rather get root back. How would I do that? I don't want to go through the hassle of reinstall though.

BW-userx 04-22-2017 07:56 AM

Quote:

Originally Posted by Safeway44 (Post 5700476)
Do I need access to root to do this?
I don't have access to Root I had already created new user before you posted which means:
"add new user to sudo group" step was missed because I created the new user before I read your post. Can I still add it to the sudo group?

What flavor are you using?

Every one of them should give a one user (person that installed it) a means to gain root privileges.

Quote:

Should I use the live cd if I need access to root for this step? I want to keep the name of the new user. You understand the reason for the new user is because I forgot my username and password for the virtual box linux? I would rather get root back. How would I do that? I don't want to go through the hassle of reinstall though.
[/quote]
All is not lost. even if you screw up a user name and have to create a different one, you can still, after you calm the waters go back and get your name back.

go back to question 1.

what flavor did you install?

You too could just google.
[your Linux distro name here ] how to log in root linux
or something to that effect then
hit enter

whence you're have root - or su -
then you can edit /etc/sudoers

uncomment the sudoer group name
save exit
command line to add user, or anyone really, to that same group
usermod -aG wheel userName
usermod -aG sudo userName

one of the other- NOT both.

any problems post back

ondoho 04-22-2017 12:02 PM

i completely forgot that i posted to this thread.
Safeway44, why is this still going on?

jamison20000e 04-22-2017 05:29 PM

A live OS restarts ie installed itself fresh on each boot unless you use VB to save the session meaning you don't reboot( or like FatDog64 have a safefile like presence).

Safeway44 04-24-2017 03:16 AM

Quote:

Originally Posted by jamison20000e (Post 5700801)
A live OS restarts ie installed itself fresh on each boot unless you use VB to save the session meaning you don't reboot( or like FatDog64 have a safefile like presence).

I had set it up so VB saves session.

Safeway44 04-24-2017 03:21 AM

Quote:

Originally Posted by ondoho (Post 5700687)
i completely forgot that i posted to this thread.
Safeway44, why is this still going on?

It's going on because I'm trying to:
get root for a newly added user. The reason I had to add the New User is because I also forgot the username on both my virtual box version and hard drive install version of Linux Kali rollin.

The password issue was solved a number of pages ago. We are working on getting root for the newly added user now.

Safeway44 04-24-2017 03:56 AM

Quote:

Originally Posted by BW-userx (Post 5700611)
What flavor are you using?
go back to question 1.what flavor did you install?

Kali Rollin on virtual Box and also installed on my hard drive.

Quote:

Originally Posted by BW-userx (Post 5700611)
Every one of them should give a one user (person that installed it) a means to gain root privileges.

How?
Quote:

Originally Posted by BW-userx (Post 5700611)
uncomment the sudoer group name

How do I do that?
Quote:

Originally Posted by BW-userx (Post 5700611)
command line to add user, or anyone really, to that same group

Not able to follow you here can you clarify? What do I need to type? I created the new user, how do I do what your saying given that I'm not in root?

Quote:

Originally Posted by BW-userx (Post 5700611)
usermod -aG wheel userName
usermod -aG sudo userName
one of the other- NOT both.
any problems post back



All times are GMT -5. The time now is 09:34 PM.