Max Khon <[email protected]> writes: > fjoe 2010-11-08 04:47:44 UTC > > FreeBSD ports repository > > Modified files: > Mk bsd.commands.mk > Log: > Document how to use "sudo" instead of "su" in SU_CMD.
It partially supports yet another usage SU_CMD = eval sudo -E # see also ports/146816 That doesn't prepend sh(1) in COMMAND unlike su(1). Note, `-E' is important. sudo(8) unlike su(1) resets environment by default unless one adds !env_reset to etc/sudoers. $ FOO=foo sudo sh -c 'echo $FOO' $ FOO=foo su root -c 'echo $FOO' foo _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "[email protected]"
