[opensuse] Problem with sudoers
Hi there, I have the line "sudo /etc/do_sth.sh" in /etc/bash.basrc.local Additionally i added the line ALL ALL=NOPASSWD: /etc/do_sth.sh to sudoers (using visodu). Still, either when opening a terminal or typing "sudo /etc/do_sth.sh", I am prompted for root's password. Is the idea of NOPASSWD not to prompt for password? Or is there a prblem with the combination of sudoers and bash.bashrc.local? --Stephan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Monday 2008-07-07 at 11:33 +0200, Stephan Schöffel wrote:
ALL ALL=NOPASSWD: /etc/do_sth.sh
Incorrect syntax. The parameter after the = is incorrect, there is one missing. See the samples. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFIce76tTMYHG2NR9URAvv1AJ9srGS7w6M1ewk7voFXsoXJiO3RBACeM1wp wk3mO8XiqxqeNm2E6EcbCTw= =JJwm -----END PGP SIGNATURE-----
From the sudoers man pages: ray rushmore = NOPASSWD: /bin/kill, /bin/ls, /usr/bin/lprm correct me if i'm wrong, but i think the parameter after the = in parentheses is optional and "root" is default. --Stephan Carlos E. R. schrieb:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Monday 2008-07-07 at 11:33 +0200, Stephan Schöffel wrote:
ALL ALL=NOPASSWD: /etc/do_sth.sh
Incorrect syntax. The parameter after the = is incorrect, there is one missing. See the samples.
- -- Cheers, Carlos E. R.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux)
iD8DBQFIce76tTMYHG2NR9URAvv1AJ9srGS7w6M1ewk7voFXsoXJiO3RBACeM1wp wk3mO8XiqxqeNm2E6EcbCTw= =JJwm -----END PGP SIGNATURE-----
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Monday 2008-07-07 at 12:42 +0200, Stephan Schöffel wrote:
From the sudoers man pages:
ray rushmore = NOPASSWD: /bin/kill, /bin/ls, /usr/bin/lprm
correct me if i'm wrong, but i think the parameter after the = in parentheses is optional and "root" is default.
But there is a space in there. The parentesis doesn't mean it is optional, you have to write the parentesis - from the sample file: # Same thing without a password # %wheel ALL=(ALL) NOPASSWD: ALL I find that man page very dificult to understand. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFIcfeNtTMYHG2NR9URAp8xAJ9If6mfiKOCjRYTXmKIOJPEWd4PKQCeI9fZ AvYArBsE6n7H9kBq6YBMcrY= =8QhB -----END PGP SIGNATURE-----
Carlos E. R. wrote:
But there is a space in there. The parentesis doesn't mean it is optional, you have to write the parentesis - from the sample file:
# Same thing without a password # %wheel ALL=(ALL) NOPASSWD: ALL
I find that man page very dificult to understand.
I suspect man pages are meant to be reminders to those who already know what they're doing. -- Use OpenOffice.org <http://www.openoffice.org> -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Monday 2008-07-07 at 07:30 -0400, James Knott wrote:
I find that man page very dificult to understand.
I suspect man pages are meant to be reminders to those who already know what they're doing.
Yes, specially the sudo page, it is almost cryptic :-( - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFIcgFPtTMYHG2NR9URAuXnAJ4kAjPkgXuv9eLfckc84ajthXPHHwCfYydB KS/z4RHIBMvd1R/xszkAhFs= =yUPG -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Carlos E. R. <robin.listas@telefonica.net> [07-07-08 07:43]:
The Monday 2008-07-07 at 07:30 -0400, James Knott wrote:
I find that man page very dificult to understand.
I suspect man pages are meant to be reminders to those who already know what they're doing.
Yes, specially the sudo page, it is almost cryptic :-(
It is unfortunate that many programmers lack communication skills necessary to provide meaningful documentation to mere mortals. I sometimes wonder how they can decifer their own code at later times, if they can ... -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
It is unfortunate that many programmers lack communication skills necessary to provide meaningful documentation to mere mortals. I sometimes wonder how they can decifer their own code at later times, if they can ...
Yes. I've worked with a lot of scientists and engineers and doctors of medicine over a lot of years. I've also written for three different Linux magazines for the last eight years. Most times these people could communicate their ideas and produce a presentation to back it up along with easy to use and understand documentation. Not so when I deal with some programmers in any country in the world. I don't know why the IT business attracts so many people who lack communication skills. -- Richard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Monday 2008-07-07 at 07:48 -0400, Patrick Shanahan wrote:
* Carlos E. R. <> [07-07-08 07:43]:
The Monday 2008-07-07 at 07:30 -0400, James Knott wrote:
I find that man page very dificult to understand.
I suspect man pages are meant to be reminders to those who already know what they're doing.
Yes, specially the sudo page, it is almost cryptic :-(
It is unfortunate that many programmers lack communication skills necessary to provide meaningful documentation to mere mortals. I sometimes wonder how they can decifer their own code at later times, if they can ...
I do not wonder, C programmers enjoy being cryptic... http://en.wikipedia.org/wiki/Obfuscated_C - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFIcgbftTMYHG2NR9URAjLBAJsHade+qoj+7tibHFv4hNHW51icXwCgjLg7 BmQ8OFBJ2SXTkndlu3iFBuU= =OvbT -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Carlos E. R. <robin.listas@telefonica.net> [07-07-08 08:07]:
I do not wonder, C programmers enjoy being cryptic...
and perl :^) -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Monday 2008-07-07 at 11:42 -0400, Patrick Shanahan wrote:
* Carlos E. R. <> [07-07-08 08:07]:
I do not wonder, C programmers enjoy being cryptic...
and perl :^)
So I learnt... - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFIcnT/tTMYHG2NR9URAqInAJ9G0idkWkffaTUZtfFcXsLqXXH1XgCdGmMC mbHH57lWu96UN0OLNvhfcfw= =P632 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Stephan Schöffel wrote:
Hi there,
I have the line "sudo /etc/do_sth.sh" in /etc/bash.basrc.local
Additionally i added the line
ALL ALL=NOPASSWD: /etc/do_sth.sh
to sudoers (using visodu).
Still, either when opening a terminal or typing "sudo /etc/do_sth.sh", I am prompted for root's password.
Is the idea of NOPASSWD not to prompt for password? Or is there a prblem with the combination of sudoers and bash.bashrc.local?
What I do, is create a directory that contains links to stuff I want to run without root password. In /etc/sudoers, I have this: jknott ALL=NOPASSWD: /usr/local/bin/sudo/* It works well, though I haven't tried using it with "ALL", instead of my ID. -- Use OpenOffice.org <http://www.openoffice.org> -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Carlos E. R.
-
James Knott
-
Patrick Shanahan
-
Richard Ibbotson
-
Stephan Schöffel