Tiny Core Base > TCB Q&A Forum

Now 'sudo su' in /root

<< < (2/7) > >>

tobiaus:

--- Quote from: mikshaw on December 15, 2008, 07:59:43 AM ---Typically a new shell opens within whatever directory  you were in when you opened it, regardless of what HOME is.

--- End quote ---

i agree with you, if we're talking about the same tty or the same aterm, switching from user to root and root to user. (although i've seen distros that do not behave this way.)

at any rate it matters more to me (and even then not too much) that the home folder be opened to per new tty or per aterm opened than whether or not sudo su follows that.

in linux there are few standards, but there are many conventions. certainly doing it the dsl way makes perfect sense, unless there is very good reason or strong preference to the contrary.

mikshaw:

--- Quote ---i agree with you, if we're talking about the same tty or the same aterm, switching from user to root and root to user.
--- End quote ---
Yes, and I would expect a  menu item to behave the same.  If, for example, you were to cd to an arbitrary directory while in tty , and then startx, you are still now in that new directory, and not in HOME.  If you then start a terminal, either regular or root, I would think it would start off in that new directory.  As I said, though, I don't have a problem with this particular situation being changed, as you said there are varying conventions...I guess either way works.  What I haven't understood is *how* this is done.  There doesn't seem to be anything that explicitly sends root to his home when a root term is opened.

^thehatsrule^:
I guess the only way would be to manually check the differences between rc3 and rc4... unless someone has some kind of insight into this change.

ke4nt:
In other distros I dabble in, it was my understanding that if I use "sudo su" , I would still have
the global path of the user that I was before using the command, and somewhat limited use of the root shell
due to differing .bash profiles.

If I use " sudo su - " ( or su - )  , then i get the full root path, and unlimited use of the shell.

Is this incorrect?  Not the usual behavior?

73
ke4nt

Juanito:
isn't it "su -l" rather than "su -"?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version