LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-16-2017, 03:01 PM   #46
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth( I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest; has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,852
Blog Entries: 2

Rep: Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312

But for daily OSs thanks for the heads-up!
 
Old 04-17-2017, 07:49 AM   #47
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: FreeBSD/Slackware-14.2+/ArcoLinux
Posts: 9,146

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Quote:
Originally Posted by Safeway44 View Post
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.
 
Old 04-17-2017, 07:53 AM   #48
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: FreeBSD/Slackware-14.2+/ArcoLinux
Posts: 9,146

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Quote:
Originally Posted by BW-userx View Post
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

Last edited by BW-userx; 04-17-2017 at 07:55 AM.
 
Old 04-17-2017, 10:12 AM   #49
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 3,046

Rep: Reputation: 1332Reputation: 1332Reputation: 1332Reputation: 1332Reputation: 1332Reputation: 1332Reputation: 1332Reputation: 1332Reputation: 1332Reputation: 1332
Quote:
Originally Posted by BW-userx View Post
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.
 
Old 04-17-2017, 01:43 PM   #50
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: FreeBSD/Slackware-14.2+/ArcoLinux
Posts: 9,146

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Quote:
Originally Posted by wpeckham View Post
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
 
Old 04-19-2017, 08:20 AM   #51
Safeway44
Member
 
Registered: Apr 2017
Location: Land of the Lost
Distribution: Kali
Posts: 32

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jamison20000e View Post
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?

Last edited by Safeway44; 04-19-2017 at 08:37 AM.
 
Old 04-19-2017, 08:43 AM   #52
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: FreeBSD/Slackware-14.2+/ArcoLinux
Posts: 9,146

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Quote:
Originally Posted by Safeway44 View Post
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
 
Old 04-19-2017, 10:31 AM   #53
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth( I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest; has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,852
Blog Entries: 2

Rep: Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312
Safeway44 [code][/code] tags help too, clicking on "Go Advanced" while editing in the non- forum for Kali ( couldn't help myself ) will help.
 
Old 04-21-2017, 09:27 PM   #54
Safeway44
Member
 
Registered: Apr 2017
Location: Land of the Lost
Distribution: Kali
Posts: 32

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
  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.
 
Old 04-22-2017, 07:56 AM   #55
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: FreeBSD/Slackware-14.2+/ArcoLinux
Posts: 9,146

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Quote:
Originally Posted by Safeway44 View Post
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

Last edited by BW-userx; 04-22-2017 at 07:58 AM.
 
Old 04-22-2017, 12:02 PM   #56
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 12,510
Blog Entries: 9

Rep: Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393
i completely forgot that i posted to this thread.
Safeway44, why is this still going on?
 
Old 04-22-2017, 05:29 PM   #57
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth( I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest; has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,852
Blog Entries: 2

Rep: Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312
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).
 
Old 04-24-2017, 03:16 AM   #58
Safeway44
Member
 
Registered: Apr 2017
Location: Land of the Lost
Distribution: Kali
Posts: 32

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jamison20000e View Post
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.
 
Old 04-24-2017, 03:21 AM   #59
Safeway44
Member
 
Registered: Apr 2017
Location: Land of the Lost
Distribution: Kali
Posts: 32

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
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.
 
Old 04-24-2017, 03:56 AM   #60
Safeway44
Member
 
Registered: Apr 2017
Location: Land of the Lost
Distribution: Kali
Posts: 32

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
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 View Post
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 View Post
uncomment the sudoer group name
How do I do that?
Quote:
Originally Posted by BW-userx View Post
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 View Post
usermod -aG wheel userName
usermod -aG sudo userName
one of the other- NOT both.
any problems post back
 
  


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
Forgot password. Please help. larryalk Slackware 4 05-05-2010 04:35 AM
How to retrieve( or reset) root password in Mandrake Linux, as I forgot my password? Reghunath Linux - Software 4 05-08-2008 04:11 AM
Forgot my Password khattaking Solaris / OpenSolaris 2 07-20-2006 12:33 PM
forgot password =( ?!?! j_miguel_y Linux - General 1 08-31-2004 11:58 AM
forgot my password ? i can change the password JrLz Linux - Security 9 04-06-2004 07:36 PM

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

All times are GMT -5. The time now is 03:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration