Mail from ILUG-BOM list (Non-Digest Mode)
Hi.
> Mail from ILUG-BOM list (Non-Digest Mode)
>
> > Mail from ILUG-BOM list (Non-Digest Mode)
> >
> > I prefer "su -" ;-)
>
> Whats the diff?
The "-" gives u a proper login shell.
That means, all environment variables etc. are set as if the person has
himself logged in from, say, the "login:" prompt.
Try "su" as some user, and 1st thing u notice is that you are in the same
directory as the used who invoked it. Secondly, "/sbin", "/usr/sbin" etc.
aren't there in your PATH variable. So, for commands in those directories,
like ipchains, you have to type in the complete path.
"su - <user>" works as well ... for user <user>
HTH
jaju
_______________________________________________
Linuxers mailing list
[EMAIL PROTECTED]
http://ilug-bom.org.in/mailman/listinfo/linuxers