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.
Hey everyone. I am somewhat newer to linux, and i do not know how to edit my sudoers file so that my non-root user account can use tools such as wifi-radar.
On Slack Builds it says what to do, but every time i try and follow what is says, i have no luck because i don't know where to put this line:
Please think about what you're asking for very carefuly... if you
do what you intend any flawed application that you run can potentially
damage your system with that mechanism w/o needing a password.
More specifically that line would give every user account the
ability and the right to damage the system.
hmmm, let me put it this way... The biggest problem that i have is that i want to be able to use my network managers (wifi-radar and wlassistant) and as of now the only way i can access them is if i am logged in as root.
How yould i be able to access these two tools not logged in as root (becasue both require sudo to run)?
There should be a line like: root ALL=(ALL) ALL. You can simply create a second line like that but replacing "root" with your username.
Alternatively, you can use
%admin ALL=(ALL) ALL
In that case, however, you'll have to add yourself to the admin group (/etc/groups).
So you are saying that i should be able to go into console, type viduso, to bring up mu sudoers file, then right under where is see root i can put in either
matthew ALL=(ALL) ALL
or
%admin ALL=(ALL) ALL
is there any specific spacing or anything...because i am pretty sure i tried that..
Nope ... those should work just like that. Does visudo complain
when you try to save the file? It performs a syntax check on it,
and if it fails sanity it warns you.
That said: while "(ALL) ALL " without the NOPASSWD is a more
sane set-up you could also add a NOPASSWD: /path/to/special/file
for those two tools, and use "su - " for other (less frequent)
tasks...
I actually use the easiest way to save and exit in vi(m)
It is ZZ
The keys you press are right next to each other.
Three different ways to do the exact same thing. haha
Being a day 2 new user to CentOS 6.4, I ran into the same challenge of not haivng my user account in the sudoers file. I read this forum post, and found this great tutorial http://www.garron.me/en/linux/visudo...lt-editor.html
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.