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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
04-16-2017, 04:01 PM
|
#46
|
Senior Member
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
|
But for daily OSs thanks for the heads-up!
|
|
|
04-17-2017, 08:49 AM
|
#47
|
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
|
Quote:
Originally Posted by Safeway44
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.
|
|
|
04-17-2017, 08:53 AM
|
#48
|
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
|
Quote:
Originally Posted by BW-userx
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 08:55 AM.
|
|
|
04-17-2017, 11:12 AM
|
#49
|
LQ Guru
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 6,059
|
Quote:
Originally Posted by BW-userx
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.
|
|
|
04-17-2017, 02:43 PM
|
#50
|
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
|
Quote:
Originally Posted by wpeckham
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
|
|
|
04-19-2017, 09:20 AM
|
#51
|
Member
Registered: Apr 2017
Location: Land of the Lost
Distribution: Kali
Posts: 32
Original Poster
Rep:
|
Quote:
Originally Posted by jamison20000e
|
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 09:37 AM.
|
|
|
04-19-2017, 09:43 AM
|
#52
|
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
|
Quote:
Originally Posted by Safeway44
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?
|
- create user
- add new user to sudo group
- give user password
- log out
- log in
- using the same user
- the user needs to be added to wheel or sudo group
- and the sudoers file needs to reflect the group wheel or sudo
- as being the superUser control group
|
|
|
04-19-2017, 11:31 AM
|
#53
|
Senior Member
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
|
Safeway44 [code][/code] tags help too, clicking on "Go Advanced" while editing in the non- forum for Kali ( couldn't help myself ) will help.
|
|
|
04-21-2017, 10:27 PM
|
#54
|
Member
Registered: Apr 2017
Location: Land of the Lost
Distribution: Kali
Posts: 32
Original Poster
Rep:
|
Quote:
Originally Posted by BW-userx
- create user
- add new user to sudo group
- 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.
|
|
|
04-22-2017, 08:56 AM
|
#55
|
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
|
Quote:
Originally Posted by Safeway44
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 08:58 AM.
|
|
|
04-22-2017, 01:02 PM
|
#56
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
i completely forgot that i posted to this thread.
Safeway44, why is this still going on?
|
|
|
04-22-2017, 06:29 PM
|
#57
|
Senior Member
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
|
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).
|
|
|
04-24-2017, 04:16 AM
|
#58
|
Member
Registered: Apr 2017
Location: Land of the Lost
Distribution: Kali
Posts: 32
Original Poster
Rep:
|
Quote:
Originally Posted by jamison20000e
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.
|
|
|
04-24-2017, 04:21 AM
|
#59
|
Member
Registered: Apr 2017
Location: Land of the Lost
Distribution: Kali
Posts: 32
Original Poster
Rep:
|
Quote:
Originally Posted by ondoho
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.
|
|
|
04-24-2017, 04:56 AM
|
#60
|
Member
Registered: Apr 2017
Location: Land of the Lost
Distribution: Kali
Posts: 32
Original Poster
Rep:
|
Quote:
Originally Posted by BW-userx
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
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
uncomment the sudoer group name
|
How do I do that?
Quote:
Originally Posted by BW-userx
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
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 12:33 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|