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

 

 

 

Can't use command line, need help

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
jbander
Posts: 58
Joined: 2011-03-10 19:11

Can't use command line, need help

#1 Post by jbander »

* is not in the sudoers file. The * is my name, I've followed directions to fix this for linux in general and Ubuntu but It still comes up and I can't do anything in the command line. Can't get into the subdoers.d file, you have to be root and I can't do that. I'm lost at this point. Can anyonehelp me out. Thank you. I'm in Debian 8.8.0

bryanmc
Posts: 122
Joined: 2016-11-18 12:21
Has thanked: 2 times

Re: Can't use command line, need help

#2 Post by bryanmc »

Assuming the terminal is functional, but you just can't use sudo...
open a terminal
su <enter> enter root password <enter>
usermod -aG sudo username <enter>
exit the terminal, then log out and log back in

User avatar
Lysander
Posts: 643
Joined: 2017-02-23 10:07
Location: London
Been thanked: 1 time

Re: Can't use command line, need help

#3 Post by Lysander »

Gott im Himmel, could you not work this out for yourself. Is this your system?

bryanmc is on the money. Read this too:

https://wiki.debian.org/sudo

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Can't use command line, need help

#4 Post by Head_on_a_Stick »

jbander wrote:Can't get into the subdoers.d file, you have to be root and I can't do that.
Use the init=/bin/bash kernel command line parameter to boot to a passwordless root shell then remount the root filesystem rw and add your user to the "sudo" group then reboot.
deadbang

User avatar
sunrat
Administrator
Administrator
Posts: 6495
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 118 times
Been thanked: 476 times

Re: Can't use command line, need help

#5 Post by sunrat »

jbander wrote: you have to be root and I can't do that.
Ummm, you probably can. sudo is not necessary to use in a Debian system. Try typing su in a terminal and enter your root password.
If you feel you must use sudo, follow advice above to enable it. sudo is not configured by default unless you specifically do it during installation.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

Post Reply