this post was submitted on 11 Aug 2023
105 points (95.7% liked)
Linux
48012 readers
892 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Are you trying the terminal commands with
sudo
? You could also try logging in asroot
user with the password you used during setup.Yeah I already tried sudo root via terminal but when I entered the password It said I don't have permision to do that. I can't even change my password to something new in desktop. But I can try setup login once I'm back home.
sudo should only ask for your user password. What do you mean “sudo root”? Do you mean “su”? That would require the root password.
It’s been a little while but he probably didn’t finish setting up sudo so there’s no sudo users file of approved users.
I would just try su.
I’ve had to set it up manually. May depend on the distro, I suppose. su won’t work without the root password.
When I’d set systems up, creating a password for the automatically created root account was one of the first steps in the process after setting up the basics. You could then set other accounts to have root privileges, or set up sudo to allow your personal account access via sudo, but even sudo acts as UID 0. If your setup didn’t do that, or if you set your account name up as UID 0, then you can always boot off of another source and mount the internal hd, right?
It's a matter of distro and the installation process. I must note, I installed Linux dozens of times from 1999-2012 and not as much since then. Back then, while of course one set the root password, it didn't ask about sudo privileges during installation of Debian, Ubuntu or Mandrake. And yes, that's true, you can always boot from a different installation (such as a Live CD) except it is more complex if it is an encrypted filesystem.
Did you try
su -l
?Yeah man I tried. But I don't have permision even tho I entered the right password.
You can reinstall the OS without overwriting your home partition or any other data partition. That's always an option.