Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
[Software] Cannot log into root account
-
- Posts: 4
- Joined: 2024-03-21 01:23
[Software] Cannot log into root account
Okay, I just installed Debian 12 and cannot log in as root, nor do I have sudo privileges. I can use Synaptic just fine. I haven't tried opening anything else as root. I am not a total stranger to the terminal. I actually need it to accomplish certain things. Is this a glitch in the Debian system? Just don't tell me I have to reinstall again.
- sunrat
- Administrator
- Posts: 6511
- Joined: 2006-08-29 09:12
- Location: Melbourne, Australia
- Has thanked: 119 times
- Been thanked: 489 times
Re: [Software] Cannot log into root account
Do you mean you can't log in to root in a terminal? It's not possible to do by default in a graphical environment.
During installation, you need to set either a root password or a sudo password. Did you forget it?
During installation, you need to set either a root password or a sudo password. Did you forget it?
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
- FreewheelinFrank
- Global Moderator
- Posts: 2117
- Joined: 2010-06-07 16:59
- Has thanked: 38 times
- Been thanked: 232 times
Re: [Software] Cannot log into root account
If you literally mean log into the root account, then no, you can't, it's disabled at the login screen, for good reason.
One does not simply walk into Mordor log in as root.
One acquires superuser privileges with
Have you tried that? There is obviously not a problem with the password if you can use Synaptic.
One does not simply walk into Mordor log in as root.
One acquires superuser privileges with
Code: Select all
su -
-
- Posts: 4
- Joined: 2024-03-21 01:23
Re: [Software] Cannot log into root account
Okay su - gives me a root prompt but I don't really want it. The problem is the sudo privileges in the safer user account.
- sunrat
- Administrator
- Posts: 6511
- Joined: 2006-08-29 09:12
- Location: Melbourne, Australia
- Has thanked: 119 times
- Been thanked: 489 times
Re: [Software] Cannot log into root account
So you didn't set up sudo during installation then.
Check if your user is in sudo group with the command , as user:
You can add your user to sudo group by first elevating root privileges:
be sure to add the dash! Then:
Of course replace <username> with your actual username.
Check if your user is in sudo group with the command , as user:
Code: Select all
groups
Code: Select all
su -
Code: Select all
adduser <username> sudo
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
- FreewheelinFrank
- Global Moderator
- Posts: 2117
- Joined: 2010-06-07 16:59
- Has thanked: 38 times
- Been thanked: 232 times
Re: [Software] Cannot log into root account
If you enter a root password at install, sudo is not set up. You have to set it up post install.
https://wiki.debian.org/sudo/
Edit:Sorry sunrat. Didn't notice you had just posted.
https://wiki.debian.org/sudo/
Edit:Sorry sunrat. Didn't notice you had just posted.
-
- Posts: 4
- Joined: 2024-03-21 01:23
Re: [Software] Cannot log into root account
Okay I am in the group with with a bunch of software. I tried the adduser thing but still get the error: paul is not in the sudoers file.
- sunrat
- Administrator
- Posts: 6511
- Joined: 2006-08-29 09:12
- Location: Melbourne, Australia
- Has thanked: 119 times
- Been thanked: 489 times
Re: [Software] Cannot log into root account
You need to explain better. What does "a bunch of software" mean? sudo group should be in sudoers by default. You don't need your username in there as well.
Does sudo show when you run groups as user?
You do need to restart for the change to take effect.
Does sudo show when you run groups as user?
You do need to restart for the change to take effect.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Re: [Software] Cannot log into root account
When I install debian I enable root so sudo is not installed
After installation I do:
Then reboot
After installation I do:
Code: Select all
su -
apt update
apt install sudo
usermod -a -G sudo <username>
-
- Posts: 4
- Joined: 2024-03-21 01:23
Re: [Software] Cannot log into root account
After the restart it worked. Thank you guys for all your help!