Your response is interesting and no, I haven't figured it out yet. What I see doesn't work exactly as I think you're saying. At boot up, I get a graphical login. I login name= tom and enter p/w. KDE2 starts. Do ctrl-alt-F2, login as tom in text screen. (same user name & p/w) Land in /home/tom directory. Do su - enter root p/w and land in /root. So what I was saying was I didn't want to land in /root, rather in /home/tom after doing su -. There must be some script somewhere controlling this behaviour, to set the environment variables, aliases, etc. Thanks, Tom
On Friday, 22 March 2002 12:28, Tom Nicholson wrote:
Solved. It behaves a little different than I expected. I mean, su - lands me in /root instead of /home/tom, but I'll figure that part out.
Hi, Tom:
That's because at the time you su'ed, that's where you were. Want a proof?
When I open a console, the prompt shows usergil@linux:~> "usergil" shows my login name, logged in linux, in my home ("~") directory.
If I su from there, the prompt shows linux:/home/usergil # Now, there's no user name, because "user" root is logged in ("#"), still in the usergil home directory.
I type 'exit' to go back to where I was, then I cd to some other location, say, /etc/X11. Now, the prompt shows usergil@linux:/etc/X11> (/etc/X11 is where I'm now; before it was ~ , my home directory).
If I su from there, I'll be root, but still at /etc/X11, shown by the prompt linux:/etc/X11 #
If instead of the plain "su" I use "su -", I'll do two moves in one scoop: change from plain user to root *and* change location, from wherever I was to root's home directory, shown by the prompt linux:~ # Note the tilde (~) indicates I'm in the /root directory, which is, for root, what /home is for user.
Time for a confession: it took me a good while, in the beginning, to really grasp the difference between 'root' and '/root'. Once again, '/root' is the home directory of the "user" 'root'.
I hope it makes sense to you. It's not fun going through that "teething" phase...
Regards,
gr (in /usually/ sunny, balmy Florida west coast) ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ Ann Landers: "In war, it counts not who's right, but who's left."
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com