[gobolinux-users] Sudo 1.6.8p12-r3 recipe not in gobolinux.org/recipe-store?

Isaac Dupree isaacdupree at charter.net
Sun Jul 1 16:53:12 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Isaac Dupree wrote:
> (and now my sudo is working.

1.6.8p12-r3 recipe, via `SuperUserName`, does not respect ChrootCompile.
So our binary assumes user 0 is named root, and the wrapper is somewhat
broken and hard to fix (it has to parse the same way sudo does and know
which options conflict with or require -u, and it currently just
searches the whole command line for strings containing "-u")

Some IRC conversation, after discussing changing the wrapper script, and
A_Tuin having actual problems with the current wrapper:

...

A_Tuin   it seems not to need a patch
A_Tuin     --with-runas-default="`SuperUserName`"
A_Tuin   it should give the correct user to be used as default
A_Tuin   i'm going to compile it
isaacd_  On your own system, until you change superuser's name or put
package on a different installation
A_Tuin   yes of course
isaacd_  A_Tuin: that, and removing / nulling the Sudo wrapper, should
work good
A_Tuin   yes, i agree with remove that wrapper
A_Tuin   i'm going to try it now
A_Tuin   without the wrapper
A_Tuin    /bin/sudo ls -la
A_Tuin    <- works fine
A_Tuin   btw, shouldn't be better that sudo itself could know who is the
default user in run-time?

...

isaacd_  WORKSFORME: --with-runas-default="#0"   <---- we should use this
Mohjive  isaacd_: that's a good one :)
isaacd_  and remove the silly --with-mailto="`SuperUserName`", I think
Mohjive  isaacd_: hehe, yes :)


I could submit another recipe revision with --with-runas-default="#0"
the --with-mailto removed, and the Sudo wrapper removed as unnecessary.
Does this seem good?


Isaac

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGh9v3HgcxvIWYTTURAnvGAJ9TfovRNcBfnuMs1II0ieLU6jRTqACgkiwt
Yvtkh2BNgR0EAwPckv+xIRc=
=qqBU
-----END PGP SIGNATURE-----


More information about the gobolinux-users mailing list