Re: [opensuse] BASH .bashrc su question



On Thursday 17 January 2008 15:34:01 David C. Rankin wrote:
Marcin Floryan wrote:
On 17/01/2008, Randall R Schulz <rschulz@xxxxxxxxx> wrote:
In addition to Jim C.'s suggestions, you can also start an interactive
shell via su (or sudo) and then use the built-in "suspend" command to
go back to the non-root shell from which it was invoked. Then you can
re-enter it using the usual job-control commands. The shell will only
honor a "suspend" command when it's not a login shell, so you don't
have to worry about suspending a shell with no other shell "above" it
to handle the suspended process state.

I find using screen even more comfortable. You can easily have several
sessions open and switch between them and keep being logged in as
root. It works well with SSH access too.

--
Marcin Floryan
http://marcin.floryan.pl/

Please consider the environment before printing this email.

Alright, looks like I have to add a few tools to my tool box. With
regard to screen, what advantages does it have over running konsole with
multiple sessions? I've looked at the man page, but can't figure out
what the advantage would be over multiple tabs in konsole and using
shift+rt or shift+lt arrows to move between screens. Marcin, what are
your thoughts?

The beauty of screen is that you can open a session in a konsole window on
your desktop at work, and then from home ssh to your work PC, and detatch the
screen session from your work desktop and have it appear on your home konsole
window. Then the next morning, you can go to a client's office and move the
screen view to the konsole window on your laptop. All this without
interrupting in any way the shell, or vi session, or mysql session, or
whatever you had running when you created the screen session at the office.

You can have multiple screen sessions open on a single konsole window, one
visible at a time. You can even open a screen session on a virtual console
of a machine not running X at all, and then view that session inside a KDE
konsole from some arbitrary remote system (provided you can get in, say with
ssh).

This just scratches the surface, and I know there's lots about screen I've
never even tried or know exists.

Jim Cunning
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: [opensuse] BASH .bashrc su question
    ... go back to the non-root shell from which it was invoked. ... shift+rt or shift+lt arrows to move between screens. ... The beauty of screen is that you can open a session in a konsole window on your desktop at work, and then from home ssh to your work PC, and detatch the screen session from your work desktop and have it appear on your home konsole window. ...
    (SuSE)
  • Re: Changing Root Password
    ... > In Konsole, if you klick on Session> New Root Shell, you'll get a root ... > shell, where you have to enter the password. ... I personally do not use Konsole. ...
    (alt.os.linux.suse)
  • Re: Perl and "vi" (not "vim") , ctags like feature in Perl !
    ... While developing my Perl programs, I have to open two sessions one for my ... I have to open a sqlplus session to access Oracle 10g. ... There is a serverprogram called Screens it can handle multiple ... to get a shell, ...
    (perl.beginners)
  • Re: Request for review/testing: switching the default installer
    ... - when you drop to a shell from the disk editor screen, ... As in, if you forget the instructions, just exit the shell to go back ... use text input fields (like the DHCP screens, ...
    (freebsd-current)
  • Re: I found an even easier way to crash CMUCL 19c/19f on FreeBSD 7.1
    ... I seem to remember you were using an UNIX shell account. ... new e-mail to your own computer at the start of the session, ... The version of Emacs here is horribly broken. ... Hmm, when I upload new versions of my source files, I keep around ...
    (comp.lang.lisp)