LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 02-12-2009, 12:37 PM   #1
adewitt
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Rep: Reputation: 0
Question newbie not in sudoers page


Hi there,

I am a new Linux user and am having difficulty installing software. I am running FC10 and when I try to install synergy cam using the shell script they provide I encounter an error that says I am not in the sudoers file and do not have permission to access it. I tried going to the man sudoers page to learn more about this and add myself to the page and I am told I do not have administration access. How can I gain access and install my software? Thanks for any advice.
 
Old 02-12-2009, 12:58 PM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
you should do:
Code:
su - root
(enter root passwd)
visudo
look for a line like:
## Allow root to run any commands anywhere
and add
Code:
<username> ALL=(ALL) ALL  ## whatever your username is
_______________

it's probably better to add the user to group wheel and uncomment the appropriate line in visudo.

Last edited by schneidz; 02-12-2009 at 12:59 PM.
 
Old 02-12-2009, 06:15 PM   #3
servat78
Member
 
Registered: Jan 2009
Posts: 100

Rep: Reputation: 17
You need root permissions to install software for system-wide use. The sudoers thing is only a means to allow some amount of permissions for certain users or applications. In your case it's probably the best to login as root and install it from there.

Debian

Last edited by servat78; 02-19-2009 at 11:20 AM.
 
Old 02-13-2009, 08:05 AM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
^ bad advice.

sudo is created so its not necessary to log in as root everytime you need to do something administrative. if you get into the habit of logging in as root all the time you will wake up at 4:00 in the morning one day and accidentally do something stupid like 'rm -rf /' .

Last edited by schneidz; 02-13-2009 at 08:23 AM.
 
Old 02-13-2009, 08:09 AM   #5
john83reuben
Member
 
Registered: Oct 2007
Location: Kuala Lumpur,Malaysia
Distribution: Debian Etch, OpenSuse
Posts: 132

Rep: Reputation: 17
yea, only the root has the permission to create sudo users. for example, the root can give a user certain privileges to do root's job, like starting the apache etc.
 
Old 02-13-2009, 08:13 AM   #6
john83reuben
Member
 
Registered: Oct 2007
Location: Kuala Lumpur,Malaysia
Distribution: Debian Etch, OpenSuse
Posts: 132

Rep: Reputation: 17
## Allow root to run any commands anywhere
and add
Code:
<username> ALL=(ALL) ALL  ## whatever your username is
_______________


U dont have to use all, this means u have the same capability as a root, and defeat the purpose of sudo user.

You can specify certain privileges for a particular user.
 
Old 02-13-2009, 08:24 AM   #7
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
^ do you think adding the user to group wheel is a better approach ?
 
Old 02-13-2009, 09:15 AM   #8
john83reuben
Member
 
Registered: Oct 2007
Location: Kuala Lumpur,Malaysia
Distribution: Debian Etch, OpenSuse
Posts: 132

Rep: Reputation: 17
sudo is better, because it gives u an audit trail which records about what has been changed, by whom and when. By using wheel group to allow su , it doesnt give an audit trail. So, for security purposes, sudo is better.
 
Old 02-13-2009, 09:54 PM   #9
palisetty_suman
Member
 
Registered: Feb 2007
Location: TX, USA
Distribution: fedora
Posts: 191

Rep: Reputation: 33
Thumbs up Re: sudoers

hi. what scheider told is absolutely perfect. say what he did.
 
Old 02-13-2009, 10:38 PM   #10
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
I'd like to add to what schneidz is hinting at and clarify just what sudo is meant for...

Sudo is meant to allow non-root users to run specific commands as root. Allowing any group/user to run any command as root is pure evil and perpetrators should burn in hell. If you need full root access for any command, then you should 'su -'.

'sudo bash' or any other such nonsense is extremely bad form and can lead to severe security problems down the road.

Also, to safely edit the sudoers file, use visudo as it will warn you of any syntactical errors before writing the changes.

Last edited by JulianTosh; 02-13-2009 at 10:39 PM. Reason: addin info about visudo
 
Old 02-16-2009, 09:00 AM   #11
adewitt
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Talking

Thanks to all for the help. Im shure that I will have more questions in the up coming weeks. Again thanks to all for the help.
 
  


Reply



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
I deleted /etc/sudoers and creates a new file call sudoers but now it doesnt for visu abefroman Linux - Software 1 11-10-2005 05:03 PM
Which is the best Web page creation app for a newbie? Stevetgn Linux - Software 10 07-05-2004 11:32 AM
Could someone direct me to a Newbie Friendly Apache Server installation page? Em3rald Linux - Software 2 03-25-2004 10:25 PM
A page for newbie getting to know how to make it faster. raylpc Linux - General 2 08-03-2003 03:21 PM

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

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

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