Tiny Core Base > TCB Q&A Forum

Now 'sudo su' in /root

<< < (7/7)

mikshaw:
Oh, crap.  I was hoping you'd see that last post of mine as saying "Some of us (myself included) are too lazy to study anything we're not immediately interested in"  =o)

tobiaus:
oh no worries, i know helping people is voluntary anyway. i'd love to do it more often, that's one of the reasons i'm trying to learn more.

you should be familiar enough with that book, you're thanked and mentioned on page xviii. if the book was copylefted, i would buy two. almost no one is going to sell a copylefted book though, except richard stallman: "Permission is granted to make and distribute verbatim copies of this book provided the copyright notice and this permission notice are preserved on all copies." ($25.00)

hjkl:
cjgau wrote:

--- Quote ---"sudo su" changes to the home directory of root.

"sudo -s" will remain in the same directory where the command is executed.
--- End quote ---

I noticed 'sudo -s' also keeps the user's shell environment.
So, my replacing BusyBox's 'su' with GNU 'su' to get 'sudo su -m' is overkill.
'sudo -s' is enough for me.  Thanks for the information.

roberts:
As mentioned in 1.0 change log, the jwm system menu, the root access xshells, now use cjgau'a suggestion of sudo -s

Navigation

[0] Message Index

[*] Previous page

Go to full version