Re: database front end gui

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 17 Nov 2002, Jesse Keating wrote:

> On Sun, 17 Nov 2002 16:37:16 -0800
> "David M. Cook" <dave@davidcook.org> wrote:
> 
> # 
> # su
> # su postgres
> # createuser <username>
> 
> You really should use (su -) also, instead of just (su)


I always never use the su command. This is so much more convenient a way
to root things:

summer@numbat summer]$ root magpie w
  9:22am  up 24 days,  3:04, 14 users,  load average: 2.00, 2.00, 2.00
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU  WHAT
root     pts/0    numbat.computerd Wed10am  4days  0.25s  0.11s  less
/usr/share/doc/
root     pts/1    numbat.computerd Wed10am  4days  0.26s  0.26s  -bash
root     pts/2    numbat.computerd Wed10am  3days  0.12s  0.12s  -bash
summer   pts/3    numbat.computerd Wed10am  4days  0.16s  0.16s  -bash
summer   pts/4    numbat.computerd Fri11am  2days  1.36s  1.07s  ssh -t
-l root gw
summer   pts/5    numbat.computerd Wed10am  3days  0.12s  0.12s  -bash
root     pts/6    numbat.computerd Wed11am  4days  0.30s  0.30s  -bash
summer   pts/7    numbat.computerd Wed11am  4days  0.21s  0.03s  man
tftpd
root     pts/8    numbat.computerd Wed 1pm  4days  0.21s  0.21s  -bash
summer   pts/9    numbat.computerd Fri11am  2days  0.15s  0.15s  -bash
root     pts/10   numbat.computerd Fri11am  2days  1.56s  1.56s  -bash
root     pts/11   numbat.computerd Fri 2pm  2days  1.24s  1.09s  ssh
wombat
root     pts/12   gw.demo.room     Fri 4pm  2days  0.14s  0.14s  -bash
root     pts/13   numbat.computerd  9:22am  1.00s  0.10s  0.10s  w
Connection to magpie closed.
[summer@numbat summer]$ root
Last login: Sun Nov 17 14:26:26 2002 from numbat.computerdatasafe.com.au
[root@numbat root]# logout
Connection to numbat closed.
[summer@numbat summer]$ root gw
Last login: Mon Nov 18 03:58:07 2002 from gw.computerdatasafe.com.au
[root@gw root]# logout
Connection to gw closed.
[summer@numbat summer]$

Here's how it's done:
function root()
        {
                RH=$1
                shift
                [ -z "$RH" ] && RH=${HOSTNAME}
                ssh -t -l root $RH $@
                return $?
        }


I have a newer way of doing the same thing on my RHL 8.0 box at home.






-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux