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.
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.
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 ]
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.
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?
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
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.
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
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).
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 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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.