Hi, On Sun, Jan 11, 2009 at 02:07:38AM -0600, Harry P wrote: > Osamu Aoki <[email protected]> writes: > > > Hmmm... you must have set up passwordless SSH to root.
Come to think of ... passwordless SSH is quite secure. I was tired :-) > I hope this sshd > > is not accessible from Internet. You may be attacked easily. > > > > You can set sudo not to request password to become root too. (Setting > > this up like this also makes your user's system less secure but at least > > intruders must have shell access first with sudo.) > > Probably should really start a new for this but let me ask about > something above: > > First, no the sshd is NOT accessible from internet and it is setup > with authorized_keys so still some security. Yes. > About setting sudo for passwordless... yes I know how to do that, but > I ran into some confusing problems with environment when using sudo. > > For example, many functions I keep in a file on ~/.SYS_RR_ENV that I > pass from machine to machine (also at /root/.SYS_RR_ENV), these > functions are unknown to the root I get through sudo. > > I know that can be tweaked too but I found it confusing and would > sooner use ssh which gives full login env. sudo without -H option keeps $HOME as old user's one. If you want what you said, use "ssh -H". -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

