Public feed #600306

Unnamed

public text v1 · immutable
Raw Edit
·published 2007-07-02 19:16 UTC
rendered paste body
adjtime               ld.so.conf.d                   rc4.d
aliases               libaudit.conf                  rc5.d
aliases.db            libuser.conf                   rc6.d
alsa                  localtime                      redhat-release
alternatives          login.defs                     resolv.conf
avahi                 logrotate.conf                 rndc.key
bashrc                logrotate.d                    rpc
blkid                 lynx-site.cfg                  rpm
bonobo-activation     lynx.cfg                       rwtab
cron.d                mail                           rwtab.d
cron.daily            mail.rc                        samba
cron.deny             mailcap                        sasl2
cron.hourly           makedev.d                      screenrc
cron.monthly          man.config                     scsi_id.config
cron.weekly           mime.types                     securetty
crontab               mke2fs.conf                    security
csh.cshrc             modprobe.d                     selinux
csh.login             motd                           services
dbus-1                mtab                           sestatus.conf
default               my.cnf                         setuptool.d
depmod.d              named.caching-nameserver.conf  sgml
dev.d                 named.rfc1912.zones            shadow
environment           netplug                        shadow-
esd.conf              netplug.d                      shells
exports               nsswitch.conf                  skel
filesystems           odbc.ini                       smrsh
fonts                 odbcinst.ini                   sound
fstab                 openldap                       ssh
gconf                 opt                            stunnel
ghostscript           pam.d                          subversion
gnome-vfs-2.0         pango                          sudoers
gnome-vfs-mime-magic  passwd                         sysconfig
group                 passwd-                        sysctl.conf
group-                php.d                          syslog.conf
gtk-2.0               php.ini                        termcap
hal                   pki                            udev
host.conf             pm                             updatedb.conf
hosts                 ppp                            virc
hosts.allow           printcap                       vsftpd
hosts.deny            profile                        warnquota.conf
httpd                 profile.d                      wgetrc
init.d                protocols                      xinetd.conf
initlog.conf          quotagrpadmins                 xinetd.d
inittab               quotatab                       xml
inputrc               rc                             yum
iproute2              rc.d                           yum.conf
issue                 rc.local                       yum.repos.d
issue.net             rc.sysinit
jwhois.conf           rc0.d
[root@atlantis etc]# vi syslog
[root@atlantis etc]# cd /
[root@atlantis /]# ls
aquota.group  bin   dev  home  media  opt   root  selinux  sys  usr
aquota.user   boot  etc  lib   mnt    proc  sbin  srv      tmp  var
[root@atlantis /]# vi syslog.conf
[root@atlantis /]# vi syslog.conf
[root@atlantis /]# cd /var/log
[root@atlantis log]# ls
boot.log  dmesg    lastlog  messages    secure    wtmp
btmp      faillog  mail     mysqld.log  spooler   yum.log
cron      httpd    maillog  samba       tallylog
[root@atlantis log]# vi messages
[root@atlantis log]# service sshd start
Starting sshd: PRNG is not seeded
                                                           [FAILED]
[root@atlantis log]# cat /var/log/messages | grep ssh
[root@atlantis log]# vi messages
[root@atlantis log]# service iptables stop
Flushing firewall rules:                                   [  OK  ]
Setting chains to policy ACCEPT: mangle filter             [  OK  ]
[root@atlantis log]# vi secure
[root@atlantis log]# service sshd start
Starting sshd: PRNG is not seeded
                                                           [FAILED]
[root@atlantis log]# service sshd status
sshd (pid 13377) is running...
[root@atlantis log]# service sshd restart
Stopping sshd:                                             [FAILED]
Starting sshd: PRNG is not seeded
                                                           [FAILED]
[root@atlantis log]# is sshd[31949]: Received signal 15; terminating.
-bash: is: command not found
-bash: terminating.: command not found
[root@atlantis log]#
[root@atlantis log]# [root@atlantis log]# service sshd status
-bash: [root@atlantis: command not found
[root@atlantis log]# sshd (pid 13377) is running...
-bash: syntax error near unexpected token `pid'
[root@atlantis log]# [root@atlantis log]# service sshd restart
-bash: [root@atlantis: command not found
[root@atlantis log]# Stopping sshd:                                             [FAILED]
-bash: Stopping: command not found
[root@atlantis log]# Starting sshd: PRNG is not seeded
-bash: Starting: command not found
[root@atlantis log]#                                                            [FAILED]
-bash: [FAILED]: command not found
[root@atlantis log]# service sshd start
Starting sshd: PRNG is not seeded
                                                           [FAILED]
[root@atlantis log]# ls
boot.log  btmp  cron  dmesg  faillog  httpd  lastlog  mail  maillog  messages  mysqld.log  samba  secure  spooler  tallylog  wtmp  yum.log
[root@atlantis log]# vi messages
[root@atlantis log]# vi dmesg
[root@atlantis log]# whereis sshd
sshd: /usr/sbin/sshd /usr/share/man/man8/sshd.8.gz
[root@atlantis log]#  cd /etc/
[root@atlantis etc]# ;s
-bash: syntax error near unexpected token `;'
[root@atlantis etc]# ls
DIR_COLORS         cron.deny     filesystems           hosts.deny    libaudit.conf   mke2fs.conf                    pam.d           quotatab        rndc.key        setuptool.d  syslog.conf
DIR_COLORS.xterm   cron.hourly   fonts                 httpd         libuser.conf    modprobe.d                     pango           rc              rpc             sgml         termcap
X11                cron.monthly  fstab                 init.d        localtime       motd                           passwd          rc.d            rpm             shadow       udev
adjtime            cron.weekly   gconf                 initlog.conf  login.defs      mtab                           passwd-         rc.local        rwtab           shadow-      updatedb.conf
aliases            crontab       ghostscript           inittab       logrotate.conf  my.cnf                         php.d           rc.sysinit      rwtab.d         shells       virc
aliases.db         csh.cshrc     gnome-vfs-2.0         inputrc       logrotate.d     named.caching-nameserver.conf  php.ini         rc0.d           samba           skel         vsftpd
alsa               csh.login     gnome-vfs-mime-magic  iproute2      lynx-site.cfg   named.rfc1912.zones            pki             rc1.d           sasl2           smrsh        warnquota.conf
alternatives       dbus-1        group                 issue         lynx.cfg        netplug                        pm              rc2.d           screenrc        sound        wgetrc
avahi              default       group-                issue.net     mail            netplug.d                      ppp             rc3.d           scsi_id.config  ssh          xinetd.conf
bashrc             depmod.d      gtk-2.0               jwhois.conf   mail.rc         nsswitch.conf                  printcap        rc4.d           securetty       stunnel      xinetd.d
blkid              dev.d         hal                   krb5.conf     mailcap         odbc.ini                       profile         rc5.d           security        subversion   xml
bonobo-activation  environment   host.conf             ld.so.cache   makedev.d       odbcinst.ini                   profile.d       rc6.d           selinux         sudoers      yum
cron.d             esd.conf      hosts                 ld.so.conf    man.config      openldap                       protocols       redhat-release  services        sysconfig    yum.conf
cron.daily         exports       hosts.allow           ld.so.conf.d  mime.types      opt                            quotagrpadmins  resolv.conf     sestatus.conf   sysctl.conf  yum.repos.d
[root@atlantis etc]# cd ssh
[root@atlantis ssh]# ls -la
total 176
drwxr-xr-x  2 root root   4096 Jul  2 20:01 .
drwxr-xr-x 63 root root   4096 Jul  2 20:03 ..
-rw-------  1 root root 132839 Mar 21 20:49 moduli
-rw-r--r--  1 root root   1828 Jul  2 20:01 ssh_config
-rw-------  1 root root    668 May 26 18:33 ssh_host_dsa_key
-rw-r--r--  1 root root    590 May 26 18:33 ssh_host_dsa_key.pub
-rw-------  1 root root    963 May 26 18:33 ssh_host_key
-rw-r--r--  1 root root    627 May 26 18:33 ssh_host_key.pub
-rw-------  1 root root   1675 May 26 18:33 ssh_host_rsa_key
-rw-r--r--  1 root root    382 May 26 18:33 ssh_host_rsa_key.pub
-rw-------  1 root root   3300 Jul  2 20:01 sshd_config
[root@atlantis ssh]# vi ssh_config
[root@atlantis ssh]# cd /var/logs
-bash: cd: /var/logs: No such file or directory
[root@atlantis ssh]# cd /var
[root@atlantis var]# cd log
[root@atlantis log]# ls
boot.log  btmp  cron  dmesg  faillog  httpd  lastlog  mail  maillog  messages  mysqld.log  samba  secure  spooler  tallylog  wtmp  yum.log
[root@atlantis log]# ls -al
total 1464
drwxr-xr-x  5 root  root    4096 Jul  2 20:13 .
drwxr-xr-x 20 root  root    4096 Jul  2 19:49 ..
-rw-------  1 root  root       0 May 26 18:33 boot.log
-rw-------  1 root  utmp  781440 Jul  2 19:40 btmp
-rw-------  1 root  root    1769 Jul  2 19:17 cron
-rw-r--r--  1 root  root       0 Jul  1 23:55 dmesg
-rw-------  1 root  root    1968 Jul  2 19:47 faillog
drwx------  2 root  root    4096 Jul  2 00:11 httpd
-rw-r--r--  1 root  root   23944 Jul  2 19:47 lastlog
drwxr-xr-x  2 root  root    4096 May 16 10:18 mail
-rw-------  1 root  root     722 Jul  1 23:56 maillog
-rw-------  1 root  root    6437 Jul  2 19:49 messages
-rw-r-----  1 mysql mysql      0 Jul  2 19:46 mysqld.log
drwx------  2 root  root    4096 May 14 22:00 samba
-rw-------  1 root  root  620497 Jul  2 19:57 secure
-rw-------  1 root  root       0 May 16 10:18 spooler
-rw-------  1 root  root       0 May 16 10:17 tallylog
-rw-rw-r--  1 root  utmp    9216 Jul  2 19:40 wtmp
-rw-r--r--  1 root  root    4777 Jul  2 19:49 yum.log
[root@atlantis log]# -rw-------  1 root  root       0 May 26 18:33 boot.log
-bash: -rw-------: command not found
[root@atlantis log]# -rw-------  1 root  utmp  781440 Jul  2 19:40 btmp
-bash: -rw-------: command not found
[root@atlantis log]# -rw-------  1 root  root    1769 Jul  2 19:17 cron
-bash: -rw-------: command not found
[root@atlantis log]# -rw-r--r--  1 root  root       0 Jul  1 23:55 dmesg
-bash: -rw-r--r--: command not found
[root@atlantis log]# -rw-------  1 root  root    1968 Jul  2 19:47 faillog
-bash: -rw-------: command not found
[root@atlantis log]# drwx------  2 root  root    4096 Jul  2 00:11 httpd
-bash: drwx------: command not found
[root@atlantis log]# -rw-r--r--  1 root  root   23944 Jul  2 19:47 lastlog
-bash: -rw-r--r--: command not found
[root@atlantis log]# drwxr-xr-x  2 root  root    4096 May 16 10:18 mail
-bash: drwxr-xr-x: command not found
[root@atlantis log]# -rw-------  1 root  root     722 Jul  1 23:56 maillog
-bash: -rw-------: command not found
[root@atlantis log]# -rw-------  1 root  root    6437 Jul  2 19:49 messages
-bash: -rw-------: command not found
[root@atlantis log]# -rw-r-----  1 mysql mysql      0 Jul  2 19:46 mysqld.log
-bash: -rw-r-----: command not found
[root@atlantis log]# drwx------  2 root  root    4096 May 14 22:00 samba
-bash: drwx------: command not found
[root@atlantis log]# -rw-------  1 root  root  620497 Jul  2 19:57 secure
-bash: -rw-------: command not found
[root@atlantis log]# -rw-------  1 root  root       0 May 16 10:18 spooler
-bash: -rw-------: command not found
[root@atlantis log]# -rw-------  1 root  root       0 May 16 10:17 tallylog
-bash: -rw-------: command not found
[root@atlantis log]# -rw-rw-r--  1 root  utmp    9216 Jul  2 19:40 wtmp
-bash: -rw-rw-r--: command not found
[root@atlantis log]# -rw-r--r--  1 root  root    4777 Jul  2 19:49 yum.log
-bash: -rw-r--r--: command not found
[root@atlantis log]# clear
[root@atlantis log]# ls
boot.log  btmp  cron  dmesg  faillog  httpd  lastlog  mail  maillog  messages  mysqld.log  samba  secure  spooler  tallylog  wtmp  yum.log
[root@atlantis log]# cd /dev
[root@atlantis dev]# ls -al
total 24
drwxr-xr-x  4 root root 16384 Jul  2 19:57 .
drwxr-xr-x 20 root root  4096 Jul  2 20:04 ..
prw-------  1 root root     0 May 26 18:56 initctl
srw-rw-rw-  1 root root     0 Jul  1 23:55 log
drwxr-xr-x  2 root root  4096 May 26 18:33 mapper
-rw-r--r--  1 root root     0 Jul  2 20:08 null
drwxr-xr-x  2 root root     0 Jul  1 23:55 pts
b-----x---  1 root root 0, 38 Jul  1 23:55 simfs
[root@atlantis dev]#