LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   User not in sudoers: How to add user? Permtion Denied for sudoers file (https://www.linuxquestions.org/questions/linux-newbie-8/user-not-in-sudoers-how-to-add-user-permtion-denied-for-sudoers-file-4175416494/)

esgol 07-13-2012 06:11 AM

User not in sudoers: How to add user? Permtion Denied for sudoers file
 
I installed VM debian to have many g++ but need to do sudo apt-get install g++

However i get this message.

Learned that i have to add me with ALL ALL etc but cant get permision to acess the file

An older topic doesn make lear which commands to enter. I'm a total beginner to linux :(

P.S>
Damned it kubuntu was simple!!!
Quote:

P.S. for Moderators
1.Until when Im allowed to use this newbie forum? post 50 maybe?

2.As you may have noticed, I start different threads even when a new question diverges just a bit from the thread title I've strated even if its still the same topic.
I do this for SEO purposes of the forum and think its the desired way also. If not you may inform.

brianL 07-13-2012 06:17 AM

Use su -, or su root, for tasks like that on Debian.
Code:

su -
Enter root's password.
Code:

apt-get install build-essential
That will get you gcc, g++, and other bits and pieces.

cascade9 07-13-2012 07:15 AM

@ brianL- as far as I know, while you can use 'su -' or 'su root' 'su' is what debian normally uses-

http://wiki.debian.org/Root

Quote:

Originally Posted by esgol (Post 4726890)
I installed VM debian to have many g++ but need to do sudo apt-get install g++

Damned it kubuntu was simple!!!

It can be a bad idea to use the same commands with debian as you might with a *buntu. Using guides made for *buntu isnt a good idea either.

brianL 07-13-2012 07:44 AM

@ cascade9 Thanks. I should RTFDebianM. :) I've mostly used su root when I've used Debian.


All times are GMT -5. The time now is 12:45 PM.