You are not logged in.
Pages: 1
Hello,
new Arch-user here.
Since I personally think that logging in to root, execute a command and then return to my own account is quite a hassle, I'm fond of using the sudo-program.
Unfortunately it does not work.
For instance, if I wright "sudo packman -S package_name", I get the usual warnings and comments, type in my password and then nothing happens! The prompt is returned to me, but the command is not executed.
So I figured maybe I had to do some configuring?
su root works at least, but I really want sudo to work too.
I'd really appreciate some help about this one
Flux
Offline
Edit /etc/sudoers appropriately as root to add either your specific user or the entire wheel group.
The file is well commented -- it should be fairly straightforward to do.
Last edited by Jessehk (2007-12-11 04:17:50)
Offline
Here's a link to the wiki page on it:
oz
Offline
Thanks, finally got it to work
Offline
I think you generally want to use visudo instead of editing the file directly
Offline
I think you generally want to use visudo instead of editing the file directly
Yes! visudo is the preferred method. Otherwise, there is a risk of corrupting the file if extra spaces are added to the end, or so I am told.
Offline
That's not compulsory to use vi-like editor, just it can be use any editor and to be sure that there aren't errors, checked by visudo -c.
F
do it good first, it will be faster than do it twice the saint
Offline
That's not compulsory to use vi-like editor, just it can be use any editor and to be sure that there aren't errors, checked by visudo -c.
F
HUH???
But, then I did a...
man visudo
and found this...
visudo accepts the following command line options:
-c Enable check-only mode. The existing sudoers file will be checked
for syntax and a message will be printed to the standard output
detailing the status of sudoers. If the syntax check completes
successfully, visudo will exit with a value of 0. If a syntax
error is encountered, visudo will exit with a value of 1.
Now I get it, thanks for the broken english tip.
Offline
Thanks for the tips. I followed the wiki and therefore used the visudo-command, but I have to say I prefer nano over vi, at least at the moment.
Offline
this post helped me alot
i was about to write one similar.
i have one question though?
what is the advantage of sudo over adding a user in all the /etc/group file.
maybe this should be in another post
thanks
Offline
Pages: 1