Add Comment

You are not currently logged in. If you do not have a user account then please consider creating one and logging in before you post your comment. This will allow you to track replies to your comment, and take part in the site much more freely.

To add your comment, fill in all the boxes below and then preview it to make sure you're happy with the way that it looks.

This is the comment you were replying to, attached to the article MIT Kerberos installation on Debian:


Re: MIT Kerberos installation on Debian
Posted by daemon (146.231.xx.xx) on Sun 16 Dec 2007 at 20:12

No it doesn't. Not here anyway -- what shell are you using?

The reason that it's not working here is that the single quotes in your commandline prevent the $USER from being expanded before it's passed on to `su`, and as $USER is expanded by the root shell spawned by su, it expands to 'root'.

Now, if you didn't use single quotes, or as Anonymous suggests, use $LOGNAME (which as you're not getting su to start a login shell still holds the name of the current non-root user), then it all works.

But, here at least, it doesn't work the way you wrote it, but I guess it could be shell dependant...

Cheers.
:wq


Username:Anonymous
Title:
Your Comment:

Posting Format:

 

Inappropriate comments will be removed.

Some help on entry formatting is available

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search