LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-13-2012, 06:11 AM   #1
esgol
Member
 
Registered: Jul 2012
Posts: 106
Blog Entries: 1

Rep: Reputation: Disabled
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.
 
Old 07-13-2012, 06:17 AM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,307
Blog Entries: 61

Rep: Reputation: Disabled
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.

Last edited by brianL; 07-13-2012 at 06:22 AM.
 
1 members found this post helpful.
Old 07-13-2012, 07:15 AM   #3
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
@ 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 View Post
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.
 
Old 07-13-2012, 07:44 AM   #4
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,307
Blog Entries: 61

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] User is not in the sudoers file khinch Debian 5 03-28-2012 12:27 PM
add user to sudoers zimbot Linux - General 3 12-15-2011 08:36 AM
'user' not in the sudoers file thomas2004ch Linux - Software 6 05-24-2011 10:20 AM
User not in the sudoers file ersek Linux - Newbie 10 06-09-2009 12:35 PM
how a user can be added to sudoers file. afaheem1988 Linux - Newbie 5 08-10-2008 07:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration