LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   andy is not in the sudoers file. (https://www.linuxquestions.org/questions/debian-26/andy-is-not-in-the-sudoers-file-4175599227/)

Fixit7 02-07-2017 07:24 PM

andy is not in the sudoers file.
 
Test driving Debian.

andy@new-host:~$ sudo apt-get update
[sudo] password for andy:
andy is not in the sudoers file. This incident will be reported.

BW-userx 02-07-2017 07:42 PM

boy are you in trouble.. go to your room...

Code:

#usermod -aG sudo andy

Fixit7 02-07-2017 07:50 PM

Quote:

Command not found.
You need to go to your room too.

rokytnji 02-07-2017 07:59 PM

https://www.privateinternetaccess.co...led-by-default

BW-userx 02-07-2017 08:02 PM

Quote:

Originally Posted by Fixit7 (Post 5666858)
You need to go to your room too.

hehehe
Code:

# <--- indicates root prompt
because only root can get'er done.

back to your room now -- :D

Code:

su
password

senior member?

Fixit7 02-07-2017 08:12 PM

Quote:

Originally Posted by BW-userx (Post 5666863)
hehehe
Code:

# <--- indicates root prompt
because only root can get'er done.

back to your room now -- :D

Code:

su
password

senior member?

First time I ever saw that # is root. A bit cryptic, but you can come out of your room. :-)

Fixit7 02-07-2017 08:17 PM

Can not get to root ?

Quote:

andy@new-host:/$ cd root
bash: cd: root: Permission denied

BW-userx 02-07-2017 08:24 PM

Quote:

Originally Posted by Fixit7 (Post 5666870)
Can not get to root ?

because root owns it. you users are locked out, just like a different user cannot get into someone elses home.

root can do anything though

go su or try sudo, better yet do this
Code:


su -
  <-- don't forget the hyphen
password
then
pwd


rokytnji 02-07-2017 08:24 PM

Quote:

senior member?
He's all yours.

BW-userx 02-07-2017 08:33 PM

Quote:

Originally Posted by rokytnji (Post 5666874)
He's all yours.

Oh ke dokie :D

Fixit7 02-07-2017 08:42 PM

THanks a lot BW-userx.

Problem fixed.

On a side note, Debian restored my grub startup menu. :-)

BW-userx 02-07-2017 08:47 PM

NP and don't forget to answer that important question in my post in here.
Quote:

Did you find this post helpful? Yes

Fixit7 02-07-2017 08:52 PM

Yes, I found your post helpful.

BW-userx 02-07-2017 09:09 PM

Quote:

Originally Posted by Fixit7 (Post 5666891)
Yes, I found your post helpful.

did ya click the yes on the post you found helpful to get LQ know too?

Fixit7 02-07-2017 10:02 PM

Still getting


Quote:

andy@new-host:~$ sudo thunar
[sudo] password for andy:
andy is not in the sudoers file. This incident will be reported.


All times are GMT -5. The time now is 02:14 PM.