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. |
you should do:
Code:
su - root ## 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. |
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 |
^ 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 /' . |
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.
|
## 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. |
^ do you think adding the user to group wheel is a better approach ?
|
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.
|
Re: sudoers
hi. what scheider told is absolutely perfect. say what he did.
|
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. |
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.
|
All times are GMT -5. The time now is 10:39 AM. |