General :: Include Username In The Sudoers List?
Aug 9, 2010ok how do I include my username in the sudoers list?
View 4 Repliesok how do I include my username in the sudoers list?
View 4 RepliesWhen I use sudo after entering password show me:
Code: Select allhooman is not in the sudoers file. This incident will be reported.
Tired of getting told that I'm not in the sudoers file. How do I add myself to it, and is there any reason that I wouldn't want to?
View 6 Replies View RelatedI recently upgraded my computer from Ubuntu 8.04 to Ubuntu 9.10. After I finished the upgrade I tried to run a command in terminal as sudo. The terminal said that I was not on the sudoers list. I tried to ssh into the root account from my everyday account and the password to root had changed as well with the upgrade. How can I add my everyday account back to the sudoers list and also reset my root password?
View 4 Replies View RelatedI'm going to try Firefox 4 in Fedora 13. I would like to do it neatly, meaning it appears as an option in the "System" -> "Preferences" -> "Preferred Applications" settings for all users as "Firefox 4". Moreover, I'd like it not to ever ask to make itself the default browser when it's first run.
View 1 Replies View RelatedIs it possible to disable all passwords in debian. I do not need any security usernames and passwords. I don't want type sudo all the times and i want free acces all the time. With debian i allways have some premission problems and why i need a password for my home computer?
1. For example today when i tried to install a file debian told me that my username is not in sudoers file. How can i fix this? 2. Is it possible to disable all passwords and asking admin premission, i dont need that kind of ??? for my home computer. (including the login screen user/password asking) And i am sorry for my grammar errors, i hope you can still understand what i have tried to say.
When i installed the new version of debian on my laptop to try it out, i noticed that i can't sudo as my main account is not in the sudoers list and i cannot put me in because i'm not sudo.
Code:
cesar@debian:~$ groups
cesar cdrom floppy audio dip video plugdev netdev powerdev scanner bluetooth
I have to enter as a root account but don't know how, plus i forgot my root password.
note. i dualboot with ubuntu 10.04 and grub is managed by it.
I have tried several things to attempt to fix my sudoers file however it is still coming up with errors. The error says
[code]...
the sudoers configuration file is set to the default as I have ran a dpkg on it, have also uninstalled and reinstalled it, and went over the configuration file ensuring it looked like the defaults I had seen online.
What is the difference between /usr/local/include and /usr/include? When I compile my program, is both /usr/local/include and /usr/include avaliable? Can I copy a file from /usr/local/include to /usr/include?
View 1 Replies View RelatedI just downloaded the SDL source code. i did compile and make of this code.then i did make install. but i didnt see the files of SDL.h and lib.SDL.*** in /usr/include/ but later i found out that these files are placed in /usr/local/include and /usr/local/lib. how can i specifically install libraries on /usr/include and /usr/lib
View 2 Replies View RelatedI am curious that if I change the sources list to include "stable" instead of "lenny" (for the Lenny release, for example) will my system upgrade to the Squeeze sources when Debian Squeeze becomes the new stable and Lenny is the oldstable? I'm brand-spanking-new to Debian and I love stability (for my workstation) but I also need a lot of features that are only available with some newer packages. I plan on having to compile a lot of packages from source but I would really like to be able to ignore making changes to my sources list. Will changing "lenny" to "stable" make this work?
View 10 Replies View RelatedDo I need it in /etc/sudoers? It's there by default and I don't know why does root need sudo.
View 5 Replies View RelatedI logged in as root and was trying to add a user to sudoers, but then when I tried to save it said that the file was write protected and couldn't be saved. However, when I returned to look at the contents of the sudoers file, they were all done. The file is now empty.
1- How can I restore the contents of the default sudoers file. (I have FC12)
2- How can I add a user (no password) to the sudoers list without this happening again?
I changed the permissions of /etc/sudoers trying to make it writable using following command:
sudo chmod o+w /etc/sudoers
and now when i try to use the sudo command i am getting the following error:
/etc/sudoers is mode 0442 should be mode 0440
1.sudo command runs command as root,is that our name should be mentioned in the sudoers file of root?i got the error like this-"sandyain is not in the sudoers file.This incident will be reported."so what is that mean?
View 4 Replies View RelatedHow do I add a user in a sudoers file.
View 6 Replies View RelatedIn my sudoers file, there are lines that begin with #, lines that begin with % and lines that begin with neither. The # is definitely being used to comment out lines, but what does the % do? Is it a comment marker too?
View 2 Replies View RelatedAfter adding what I thought were the correct entries in /etc/sudoers so I'd be able to run commands without needing to sudo them, I keep having to. My sudoers file entries look like this:
Code:
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
user_me ALL=(ALL) ALL
## Allows people in group wheel to run all commands
%wheel ALL=(ALL) ALL
user_me ALL=(ALL) ALL
## Same thing without a password
%wheel ALL=(ALL) NOPASSWD: ALL
user_me ALL=(ALL) NOPASSWD: ALL
I have also confirmed that I'm a member of the wheel group in /etc/group:
Code:
wheel:x:10:root,user_me
And yet, I still have to sudo to do pretty much anything.
I added the following line in /etc/sudoers file
<username> ALL=(ALL) NOPASSWD:ALL
after adding this if I run any command it is not asking for the password. Now I need to shutdown the remote machine with sudoers user.
Recently I edited sudoers file and did typing error. Now neither I can do sudo nor change it.
Code:
sudo visudo -c
>>> sudoers file: syntax error, line 8 <<<
How I can get correct the sudoers file?
I need to install a package. For that I need root access. However the system says that I am not in sudoers file. When trying to edit one, it complains alike! How I am supposed to add myself to the sudoers file if I don't have the right to edit one? I have installed this system and only administrator. What can I do?
Edit: I have tried visudo already. It requires me to be in sudoers in the first place.
amarzaya@linux-debian-gnu:/$ sudo /usr/sbin/visudo
We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for amarzaya:
amarzaya is not in the sudoers file. This incident will be reported.
amarzaya@linux-debian-gnu:/$
Relatively new to Linux, but I'm trying to grasp the proper way to modify the sudoers file. As an example, what would I have to modify in /etc/sudoers to allow a user (say 'user1' for the example) to be able to add/remove software through yum? I'm aware of the fact that I need to use visudo and how to use the vi editor. I've Googled this topic and while I've found a number of pages on the topic, I never see many examples.
View 5 Replies View RelatedThis is the hard way to learn when you MUST use visudo. That's right. I did something stupid like:Quote:$ sudo vi /etc/sudoersand now have:Quote:
$ sudo
>>> /etc/sudoers: syntax error near line 79 <<<
sudo: parse error in /etc/sudoers near line 79
[code]....
How can I convert a file with a lot hex numbers into the decimal?
Example: file1
0x59999
0x5acdc
0xffeff
I want to start $ cat file1 | util | cat >file2 and get file2 with smth like
[Code]...
Warning: Do not edit /etc/sudoers directly with an editor; Errors in syntax can cause annoyances (like rendering the root account unusable). You must use the visudo command to edit /etc/sudoers. In the previous section we added your user to the "wheel" group. To give users in the wheel group full root privileges when they precede a command with "sudo", uncomment the following line:
%wheelALL=(ALL) ALL
so i signed in as root and typed in visudo now i alreayd made the changes but how do i exit and save super+x doesnt seem to do it for me since im not using nano and not supposed to cause it causes errors
list the 'chkconfig --list' in alphabetical order
View 3 Replies View Relatedone command to list the list of folders/ within the folder.
View 4 Replies View RelatedI am trying to set the default printer on a machine running xubuntu from the command line. It looks like I need: lpoptions -d "printer_name" but I do not know the name of the printer. How can I find this information?
View 2 Replies View RelatedWhen I installed a new copy of my distro on another partition, in order to preserve all the settings from my old my user account, I made a user account with the same name on the new installation, and then copied my old user account's files (in their entirety) to the new user account, overwriting it. I did the copying from the root account (where else? I assume the new user account can't overwrite itself while it's open), and root became the owner of everything I copied, making it impossible to open the new user account. So I then chowned the new user account's folder to myself. I still can't get in, because apparently, chown only chowned the top folder, leaving all subdirectories owned by root. How do I make chown include all subdirectories? I scanned the man page, but didn't see a parameter.
View 4 Replies View Relatedi have written a simple program in gtk. #include<gtk/gtk.h> //header file main program.. on compiling it is showing fatal error:32 /usr/include/gtk/gtk.h is not found. i have checked the location but file is there.
View 2 Replies View Related