Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
where can i find this list, I've been using linux for about two years I'm an IT student and find it cool as NY is right now but I normally use ubuntu. today I got fed up of logging in as root every time I need to perform a minor admin task, so I decided to install "sudo", long story short when I tried to execute this usually simple command how shocked I was to be informed that not only don't I have permission to do so but I've been put on report(to whom i'm still Waiting to find out). I'm used to ubuntu, new to fedora,but I now understand the slogan "Linux For Human Beings"
To edit sudoers run command "visudo". Check manual for sudoers ealier. Probably you need only add yourself to group admin as in sudoers file should be already
Code:
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
You shouldn't be shocked that normal user cannot use sudo command, it is for administrators only.
use ubuntu new to fedora
used sudo all the time and never was put on report, and to whom am i being reported to? where is the "sudoer's list" located and who's idea was this? if i have the proper password, it's my computer, if its smart enough to put me on report then it should be smart enough to recognize a personal workstation from one that's connected to a administered network
This should have been added to your existing post rather than double posting the same problem.
Attempts to use sudo by users that aren't in the sudoers file are reported to the root account. The system doesn't know that this is a personal machine so you can't really blame the OS for doing what it is programmed to do.
As eSelix states in your other post, you should log in as root and use the visudo command to edit the sudoers file.
Once you are in the sudoers file you won't be "reported" again.
The (mis)use of sudo in Ubuntu is a special case, it is only done so in Ubuntu (and derived distros), and not in others. So it is Ubuntu that is behaving abnormal. In most other distros you use su to become root.
You can use
Code:
su -c visudo
to set up sudo the way you want. Be aware that you have to type in the root password, not that of your user.
To get more info how to do that try
Code:
man sudoers
And by the way, computers aren't only as smart as they are set up. The computer doesn't care who is his owner, he only cares what is written in its config files. So set it up right, and he will be as smart as you wish .
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread has been merged with the original.
This should have been added to your existing post rather than double posting the same problem.
Attempts to use sudo by users that aren't in the sudoers file are reported to the root account. The system doesn't know that this is a personal machine so you can't really blame the OS for doing what it is programmed to do.
As eSelix states in your other post, you should log in as root and use the visudo command to edit the sudoers file.
Once you are in the sudoers file you won't be "reported" again.
My apologies, I've never used any other distro besides Ubuntu so it was new to me, but you live you learn(at least some of us do), thank you. PS: I've never belonged to a forum of any sort so I'm learning that as well when i posted the fist one I wasn't sure if it went through. I still think if you can write code that will quote three rules and tell me I'm on report, add a line or two that tells it the difference between personal computer and an administered net-workstation. just in case you plan to ask, I'm just starting to "play" with python so I can't. At least not yet, soon though, very soon. Member of PyAtl, haven't been there in a while though, night classes and all. Thanks For the info though. citi
add a line or two that tells it the difference between personal computer and an administered net-workstation.
But how do you think the machine should recognize? My three main machines (workstation/laptop/server) are on a heterogeneous network with a variable number of other machines, but they are my personal machines (except the server, it works as a server for all machines on this net). How should any of these machines recognize that they are personal machines? And why do you think that personal machines need to have sudo configured? This may bring up a flamewar, but in my eyes the way Ubuntu uses sudo is simply a misuse of an otherwise good concept. And yes, I have sudo on my machines, but not to get general root access.
The (mis)use of sudo in Ubuntu is a special case, it is only done so in Ubuntu (and derived distros), and not in others. So it is Ubuntu that is behaving abnormal. In most other distros you use su to become root.
You can use
Code:
su -c visudo
to set up sudo the way you want. Be aware that you have to type in the root password, not that of your user.
To get more info how to do that try
Code:
man sudoers
And by the way, computers aren't only as smart as they are set up. The computer doesn't care who is his owner, he only cares what is written in its config files. So set it up right, and he will be as smart as you wish .
i never save any thing important to the home folder, most i have to worry about is my downloads and i always back those up. good advice but i'm not that type of novice. i rarely make mistakes of that kind
i never save any thing important to the home folder, most i have to worry about is my downloads and i always back those up. good advice but i'm not that type of novice. i rarely make mistakes of that kind
sorry this was ment for the "do yourself a favor and back up" comment. and i don't mean to offend any of you. i'm just getting to know you all.
But how do you think the machine should recognize? My three main machines (workstation/laptop/server) are on a heterogeneous network with a variable number of other machines, but they are my personal machines (except the server, it works as a server for all machines on this net). How should any of these machines recognize that they are personal machines? And why do you think that personal machines need to have sudo configured? This may bring up a flamewar, but in my eyes the way Ubuntu uses sudo is simply a misuse of an otherwise good concept. And yes, I have sudo on my machines, but not to get general root access.
I feel the same way as you do, which is why I installed it in the first place. I use it to do quick installs, un-installs, and updates. If I'm doing something I'm not supposed to, why warn me; so I can get my story straight by the time admin gets to me. to quote G.I. Joe " Knowing is half the battle".
in a grand scale, i'm new to IT and may be brainwashed by the "Windows" world don't you have to specify whether your logging on to the network or the workstation, or is that just a microsoft thing. if so that would be one way. if not.......well as I said I'm learning.
First of all, the backup statement is part of my signature and was not meant directly for you, but for anyone who reads it. Just because there are many people which do not backup and the cry about lost data if anything goes wrong.
Quote:
I use it to do quick installs, un-installs, and updates.
These are administrative tasks. I use a root shell for that, not sudo. I only use sudo for mounting ISO-files and rebooting/shutting down the system. Not less, not more. Any other administrative task is made via su or an explicitly started root terminal, started with gksu.
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread has been merged with the original.
I like that line, will use it when applicable, Gary.
First of all, the backup statement is part of my signature and was not meant directly for you, but for anyone who reads it. Just because there are many people which do not backup and the cry about lost data if anything goes wrong.
These are administrative tasks. I use a root shell for that, not sudo. I only use sudo for mounting ISO-files and rebooting/shutting down the system. Not less, not more. Any other administrative task is made via su or an explicitly started root terminal, started with gksu.
didn't Know tobi, I'm new to this forum, and blogging as a whole. all in time, all in time. thank you
First of all, the backup statement is part of my signature and was not meant directly for you, but for anyone who reads it. Just because there are many people which do not backup and the cry about lost data if anything goes wrong.
These are administrative tasks. I use a root shell for that, not sudo. I only use sudo for mounting ISO-files and rebooting/shutting down the system. Not less, not more. Any other administrative task is made via su or an explicitly started root terminal, started with gksu.
I'm still a student. I haven't administered anything other than my workstation and the ones where I reside and all except mine run windows.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.