/l3/users/bas/2011-03/linux5.unix.bas/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 |
|
#smbclient -o username=Administrator,password=rootpass \\192.168.15
![]() username=Administrator,password=rootpass: Not enough '\' characters in service Usage: smbclient [-?] [-?EgV] [-?EgV] [-?EgVNkP] [-?|--help] [--usage] [-R|--name-resolve NAME-RESOLVE-ORDER] [-M|--message HOST] [-I|--ip-address IP] [-E|--stderr] [-L|--list HOST] [-t|--terminal CODE] [-m|--max-protocol LEVEL] [-T|--tar <c|x>IXFqgbNan] [-D|--directory DIR] [-c|--command STRING] [-b|--send-buffer BYTES] [-p|--port PORT] [-g|--grepable] [-d|--debuglevel DEBUGLEVEL] [-s|--configfile CONFIGFILE] [-l|--log-basename LOGFILEBASE] [-V|--version] [-O|--socket-options SOCKETOPTIONS] [-n|--netbiosname NETBIOSNAME] [-W|--workgroup WORKGROUP] [-i|--scope SCOPE] [-U|--user USERNAME] [-N|--no-pass] [-k|--kerberos] [-A|--authentication-file FILE] [-S|--signing on|off|required] [-P|--machine-pass] service <password> |
#smbclient -o username=Administrator,password=rootpass 192.168.15
![]() username=Administrator,password=rootpass: Not enough '\' characters in service Usage: smbclient [-?] [-?EgV] [-?EgV] [-?EgVNkP] [-?|--help] [--usage] [-R|--name-resolve NAME-RESOLVE-ORDER] [-M|--message HOST] [-I|--ip-address IP] [-E|--stderr] [-L|--list HOST] [-t|--terminal CODE] [-m|--max-protocol LEVEL] [-T|--tar <c|x>IXFqgbNan] [-D|--directory DIR] [-c|--command STRING] [-b|--send-buffer BYTES] [-p|--port PORT] [-g|--grepable] [-d|--debuglevel DEBUGLEVEL] [-s|--configfile CONFIGFILE] [-l|--log-basename LOGFILEBASE] [-V|--version] [-O|--socket-options SOCKETOPTIONS] [-n|--netbiosname NETBIOSNAME] [-W|--workgroup WORKGROUP] [-i|--scope SCOPE] [-U|--user USERNAME] [-N|--no-pass] [-k|--kerberos] [-A|--authentication-file FILE] [-S|--signing on|off|required] [-P|--machine-pass] service <password> |
#smbclient -o username=user, password=password 192.168.15.5
![]() username=user,: Not enough '\' characters in service Usage: smbclient [-?] [-?EgV] [-?EgV] [-?EgVNkP] [-?|--help] [--usage] [-R|--name-resolve NAME-RESOLVE-ORDER] [-M|--message HOST] [-I|--ip-address IP] [-E|--stderr] [-L|--list HOST] [-t|--terminal CODE] [-m|--max-protocol LEVEL] [-T|--tar <c|x>IXFqgbNan] [-D|--directory DIR] [-c|--command STRING] [-b|--send-buffer BYTES] [-p|--port PORT] [-g|--grepable] [-d|--debuglevel DEBUGLEVEL] [-s|--configfile CONFIGFILE] [-l|--log-basename LOGFILEBASE] [-V|--version] [-O|--socket-options SOCKETOPTIONS] [-n|--netbiosname NETBIOSNAME] [-W|--workgroup WORKGROUP] [-i|--scope SCOPE] [-U|--user USERNAME] [-N|--no-pass] [-k|--kerberos] [-A|--authentication-file FILE] [-S|--signing on|off|required] [-P|--machine-pass] service <password> |
#smbclient -o username=user, password=password //\192.168.15.5
![]() username=user,: Not enough '\' characters in service Usage: smbclient [-?] [-?EgV] [-?EgV] [-?EgVNkP] [-?|--help] [--usage] [-R|--name-resolve NAME-RESOLVE-ORDER] [-M|--message HOST] [-I|--ip-address IP] [-E|--stderr] [-L|--list HOST] [-t|--terminal CODE] [-m|--max-protocol LEVEL] [-T|--tar <c|x>IXFqgbNan] [-D|--directory DIR] [-c|--command STRING] [-b|--send-buffer BYTES] [-p|--port PORT] [-g|--grepable] [-d|--debuglevel DEBUGLEVEL] [-s|--configfile CONFIGFILE] [-l|--log-basename LOGFILEBASE] [-V|--version] [-O|--socket-options SOCKETOPTIONS] [-n|--netbiosname NETBIOSNAME] [-W|--workgroup WORKGROUP] [-i|--scope SCOPE] [-U|--user USERNAME] [-N|--no-pass] [-k|--kerberos] [-A|--authentication-file FILE] [-S|--signing on|off|required] [-P|--machine-pass] service <password> |
#smbclient -o username=user, password=password //192.168.15.5
![]() username=user,: Not enough '\' characters in service Usage: smbclient [-?] [-?EgV] [-?EgV] [-?EgVNkP] [-?|--help] [--usage] [-R|--name-resolve NAME-RESOLVE-ORDER] [-M|--message HOST] [-I|--ip-address IP] [-E|--stderr] [-L|--list HOST] [-t|--terminal CODE] [-m|--max-protocol LEVEL] [-T|--tar <c|x>IXFqgbNan] [-D|--directory DIR] [-c|--command STRING] [-b|--send-buffer BYTES] [-p|--port PORT] [-g|--grepable] [-d|--debuglevel DEBUGLEVEL] [-s|--configfile CONFIGFILE] [-l|--log-basename LOGFILEBASE] [-V|--version] [-O|--socket-options SOCKETOPTIONS] [-n|--netbiosname NETBIOSNAME] [-W|--workgroup WORKGROUP] [-i|--scope SCOPE] [-U|--user USERNAME] [-N|--no-pass] [-k|--kerberos] [-A|--authentication-file FILE] [-S|--signing on|off|required] [-P|--machine-pass] service <password> |
#smbclient -o username=user, password=password -L //192.168.15.5
![]() username=user,: Not enough '\' characters in service Usage: smbclient [-?] [-?EgV] [-?EgV] [-?EgVNkP] [-?|--help] [--usage] [-R|--name-resolve NAME-RESOLVE-ORDER] [-M|--message HOST] [-I|--ip-address IP] [-E|--stderr] [-L|--list HOST] [-t|--terminal CODE] [-m|--max-protocol LEVEL] [-T|--tar <c|x>IXFqgbNan] [-D|--directory DIR] [-c|--command STRING] [-b|--send-buffer BYTES] [-p|--port PORT] [-g|--grepable] [-d|--debuglevel DEBUGLEVEL] [-s|--configfile CONFIGFILE] [-l|--log-basename LOGFILEBASE] [-V|--version] [-O|--socket-options SOCKETOPTIONS] [-n|--netbiosname NETBIOSNAME] [-W|--workgroup WORKGROUP] [-i|--scope SCOPE] [-U|--user USERNAME] [-N|--no-pass] [-k|--kerberos] [-A|--authentication-file FILE] [-S|--signing on|off|required] [-P|--machine-pass] service <password> |
#smbclient -u //192.168.15.5
![]() \\192.168.15.5: Not enough '\' characters in service Usage: smbclient [-?] [-?EgV] [-?EgV] [-?EgVNkP] [-?|--help] [--usage] [-R|--name-resolve NAME-RESOLVE-ORDER] [-M|--message HOST] [-I|--ip-address IP] [-E|--stderr] [-L|--list HOST] [-t|--terminal CODE] [-m|--max-protocol LEVEL] [-T|--tar <c|x>IXFqgbNan] [-D|--directory DIR] [-c|--command STRING] [-b|--send-buffer BYTES] [-p|--port PORT] [-g|--grepable] [-d|--debuglevel DEBUGLEVEL] [-s|--configfile CONFIGFILE] [-l|--log-basename LOGFILEBASE] [-V|--version] [-O|--socket-options SOCKETOPTIONS] [-n|--netbiosname NETBIOSNAME] [-W|--workgroup WORKGROUP] [-i|--scope SCOPE] [-U|--user USERNAME] [-N|--no-pass] [-k|--kerberos] [-A|--authentication-file FILE] [-S|--signing on|off|required] [-P|--machine-pass] service <password> |
#smbclient -U user //192.168.15.5
![]() \\192.168.15.5: Not enough '\' characters in service Usage: smbclient [-?] [-?EgV] [-?EgV] [-?EgVNkP] [-?|--help] [--usage] [-R|--name-resolve NAME-RESOLVE-ORDER] [-M|--message HOST] [-I|--ip-address IP] [-E|--stderr] [-L|--list HOST] [-t|--terminal CODE] [-m|--max-protocol LEVEL] [-T|--tar <c|x>IXFqgbNan] [-D|--directory DIR] [-c|--command STRING] [-b|--send-buffer BYTES] [-p|--port PORT] [-g|--grepable] [-d|--debuglevel DEBUGLEVEL] [-s|--configfile CONFIGFILE] [-l|--log-basename LOGFILEBASE] [-V|--version] [-O|--socket-options SOCKETOPTIONS] [-n|--netbiosname NETBIOSNAME] [-W|--workgroup WORKGROUP] [-i|--scope SCOPE] [-U|--user USERNAME] [-N|--no-pass] [-k|--kerberos] [-A|--authentication-file FILE] [-S|--signing on|off|required] [-P|--machine-pass] service <password> |
#smbclient -U user 192.168.15.5
![]() 192.168.15.5: Not enough '\' characters in service Usage: smbclient [-?] [-?EgV] [-?EgV] [-?EgVNkP] [-?|--help] [--usage] [-R|--name-resolve NAME-RESOLVE-ORDER] [-M|--message HOST] [-I|--ip-address IP] [-E|--stderr] [-L|--list HOST] [-t|--terminal CODE] [-m|--max-protocol LEVEL] [-T|--tar <c|x>IXFqgbNan] [-D|--directory DIR] [-c|--command STRING] [-b|--send-buffer BYTES] [-p|--port PORT] [-g|--grepable] [-d|--debuglevel DEBUGLEVEL] [-s|--configfile CONFIGFILE] [-l|--log-basename LOGFILEBASE] [-V|--version] [-O|--socket-options SOCKETOPTIONS] [-n|--netbiosname NETBIOSNAME] [-W|--workgroup WORKGROUP] [-i|--scope SCOPE] [-U|--user USERNAME] [-N|--no-pass] [-k|--kerberos] [-A|--authentication-file FILE] [-S|--signing on|off|required] [-P|--machine-pass] service <password> |
#smbclient -U user 192.168.15.5
![]() 192.168.15.5: Not enough '\' characters in service Usage: smbclient [-?] [-?EgV] [-?EgV] [-?EgVNkP] [-?|--help] [--usage] [-R|--name-resolve NAME-RESOLVE-ORDER] [-M|--message HOST] [-I|--ip-address IP] [-E|--stderr] [-L|--list HOST] [-t|--terminal CODE] [-m|--max-protocol LEVEL] [-T|--tar <c|x>IXFqgbNan] [-D|--directory DIR] [-c|--command STRING] [-b|--send-buffer BYTES] [-p|--port PORT] [-g|--grepable] [-d|--debuglevel DEBUGLEVEL] [-s|--configfile CONFIGFILE] [-l|--log-basename LOGFILEBASE] [-V|--version] [-O|--socket-options SOCKETOPTIONS] [-n|--netbiosname NETBIOSNAME] [-W|--workgroup WORKGROUP] [-i|--scope SCOPE] [-U|--user USERNAME] [-N|--no-pass] [-k|--kerberos] [-A|--authentication-file FILE] [-S|--signing on|off|required] [-P|--machine-pass] service <password> |
#smbclient -L -U user 192.168.15.5
![]() user: Not enough '\' characters in service Usage: smbclient [-?] [-?EgV] [-?EgV] [-?EgVNkP] [-?|--help] [--usage] [-R|--name-resolve NAME-RESOLVE-ORDER] [-M|--message HOST] [-I|--ip-address IP] [-E|--stderr] [-L|--list HOST] [-t|--terminal CODE] [-m|--max-protocol LEVEL] [-T|--tar <c|x>IXFqgbNan] [-D|--directory DIR] [-c|--command STRING] [-b|--send-buffer BYTES] [-p|--port PORT] [-g|--grepable] [-d|--debuglevel DEBUGLEVEL] [-s|--configfile CONFIGFILE] [-l|--log-basename LOGFILEBASE] [-V|--version] [-O|--socket-options SOCKETOPTIONS] [-n|--netbiosname NETBIOSNAME] [-W|--workgroup WORKGROUP] [-i|--scope SCOPE] [-U|--user USERNAME] [-N|--no-pass] [-k|--kerberos] [-A|--authentication-file FILE] [-S|--signing on|off|required] [-P|--machine-pass] service <password> |
#smbclient -U user -L 192.168.15.5
Password: Domain=[LINUX5] OS=[Unix] Server=[Samba 3.0.33-3.29.el5_5.1] Sharename Type Comment --------- ---- ------- IPC$ IPC IPC Service (Samba Server Version 3.0.33-3.29.el5_5.1) no_device_found Printer HP Fax lp1 Printer lp1 user Disk Home Directories Domain=[LINUX5] OS=[Unix] Server=[Samba 3.0.33-3.29.el5_5.1] Server Comment --------- ------- Workgroup Master --------- ------- DOM DC01 MYGROUP LINUX3 WINGRP LINUX1 |
#ls
! anaconda-ks.cfg fotki.tar mbox 1 b install.log rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm 2 backups install.log.syslog 3 c ls a Desktop Mail |
#mount -o username=user,password=password //192.168.15.5/user
![]() mount: can't find //192.168.15.5/user in /etc/fstab or /etc/mtab |
#ls /mnt/smb/
cpumem.info Desktop find.out issue Projects winda1.iso |
#cat /etc/mo
![]() modprobe.conf modprobe.conf~ modprobe.d/ motd |
#cat /etc/fstab
LABEL=/ / ext3 defaults 1 1 LABEL=/tmp /tmp ext3 defaults 1 2 LABEL=/var /var ext3 defaults 1 2 LABEL=/usr /usr ext3 defaults 1 2 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 LABEL=SWAP-sda5 swap swap defaults 0 0 LABEL=DATA7 /mnt/data7 ext3 defaults 0 0 |
#mount
/dev/sda1 on / type ext3 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/sda6 on /tmp type ext3 (rw) /dev/sda3 on /var type ext3 (rw) /dev/sda2 on /usr type ext3 (rw) tmpfs on /dev/shm type tmpfs (rw) /dev/sda7 on /mnt/data7 type ext3 (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) nfsd on /proc/fs/nfsd type nfsd (rw) //192.168.15.5/user on /mnt/smb type cifs (rw,mand) |
#vim /etc/fstab
--- /tmp/l3-saved-5320.13727.12430 2011-04-08 14:09:36.000000000 +0600 +++ /etc/fstab 2011-04-08 14:10:48.000000000 +0600 @@ -8,3 +8,4 @@ proc /proc proc defaults 0 0 LABEL=SWAP-sda5 swap swap defaults 0 0 LABEL=DATA7 /mnt/data7 ext3 defaults 0 0 +//192.168.15.5 /mnt/smb cifs username=user,password=password |
#vin /etc/samba/smb.conf
![]() bash: vin: command not found |
#vim /etc/samba/smb.conf
--- /tmp/l3-saved-5320.10218.15243 2011-04-08 14:12:02.000000000 +0600 +++ /etc/samba/smb.conf 2011-04-08 14:14:48.000000000 +0600 @@ -71,7 +71,7 @@ # Hosts Allow/Hosts Deny lets you restrict who can connect, and you can # specifiy it as a per share option as well # - workgroup = DOM + workgroup = MYGROUP3 server string = Samba Server Version %v ; netbios name = MYSERVER @@ -181,9 +181,9 @@ # # Preferred Master causes Samba to force a local browser election on startup # and gives it a slightly higher chance of winning the election -; local master = no -; os level = 33 -; preferred master = yes + local master = yes + os level = 128 + preferred master = yes #----------------------------- Name Resolution ------------------------------- # Windows Internet Name Serving Support Section: |
#/etc/init.d/smb restart
Shutting down SMB services: [ OK ] Shutting down NMB services: [ OK ] Starting SMB services: [ OK ] Starting NMB services: [ OK ] |
#testparm
Load smb config files from /etc/samba/smb.conf Processing section "[homes]" Processing section "[printers]" Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions [global] workgroup = MYGROUP3 server string = Samba Server Version %v passdb backend = tdbsam ... cups options = raw [homes] comment = Home Directories read only = No browseable = No [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No |
#smbstatus
Samba version 3.0.33-3.29.el5_5.1 PID Username Group Machine ------------------------------------------------------------------- 6560 user user dc01 (192.168.15.222) Service pid machine Connected at ------------------------------------------------------- user 6560 dc01 Fri Apr 8 14:15:11 2011 IPC$ 6560 dc01 Fri Apr 8 14:15:08 2011 Locked files: Pid Uid DenyMode Access R/W Oplock SharePath Name Time -------------------------------------------------------------------------------------------------- 6560 500 DENY_NONE 0x100001 RDONLY NONE /home/user . Fri Apr 8 14:17:17 2011 |
#kill
![]() kill killall killall5 |
#kill 6560
|
#vim /etc/resolv.conf
--- /tmp/l3-saved-5320.14618.26748 2011-04-08 14:43:49.000000000 +0600 +++ /etc/resolv.conf 2011-04-08 14:44:07.000000000 +0600 @@ -1,3 +1,3 @@ search unix.bas -nameserver 127.0.0.1 +nameserver 192.168.15.222 options ndots:2 |
#/etc/init.d/smb restart
Shutting down SMB services: [ OK ] Shutting down NMB services: [ OK ] Starting SMB services: [ OK ] Starting NMB services: [ OK ] |
#vim /etc/samba/
![]() |
#vim /etc/krb5.conf
--- /tmp/l3-saved-5320.10573.23431 2011-04-08 14:45:10.000000000 +0600 +++ /etc/krb5.conf 2011-04-08 14:46:40.000000000 +0600 @@ -4,9 +4,9 @@ admin_server = FILE:/var/log/kadmind.log [libdefaults] - default_realm = EXAMPLE.COM - dns_lookup_realm = false - dns_lookup_kdc = false + default_realm = DOM.KZ + dns_lookup_realm = true + dns_lookup_kdc = true ticket_lifetime = 24h forwardable = yes @@ -14,12 +14,12 @@ EXAMPLE.COM = { kdc = kerberos.example.com:88 admin_server = kerberos.example.com:749 - default_domain = example.com + default_domain = dom.kz } [domain_realm] - .example.com = EXAMPLE.COM - example.com = EXAMPLE.COM + .example.com = DOM.KZ + example.com = DOM.KZ [appdefaults] pam = { |
#kinit Administrator
Password for Administrator@DOM.KZ: |
#hostname
linux5.unix.bas |
#vim /etc/sysconfig/network-scripts/
![]() |
#vim /etc/sysconfig/network-scripts/ifcfg-eth0
|
#vim /etc/sysconfig/network
![]() |
#vim /etc/sysconfig/network
--- /tmp/l3-saved-5320.733.31342 2011-04-08 14:49:35.000000000 +0600 +++ /etc/sysconfig/network 2011-04-08 14:49:48.000000000 +0600 @@ -1,3 +1,3 @@ NETWORKING=yes NETWORKING_IPV6=no -HOSTNAME=linux5.unix.bas +HOSTNAME=linux5.dom.kz |
#vim /etc/samba/smb.conf
--- /tmp/l3-saved-5320.8584.12090 2011-04-08 14:50:51.000000000 +0600 +++ /etc/samba/smb.conf 2011-04-08 14:54:44.000000000 +0600 @@ -247,8 +247,9 @@ [homes] comment = Home Directories + read only = no browseable = no - writable = yes +# writable = yes ; valid users = %S ; valid users = MYDOMAIN\%S |
#testparm
Load smb config files from /etc/samba/smb.conf Processing section "[homes]" Processing section "[printers]" Loaded services file OK. Server role: ROLE_DOMAIN_MEMBER Press enter to see a dump of your service definitions [global] workgroup = DOM realm = DOM.KZ server string = Samba Server Version %v ... cups options = raw [homes] comment = Home Directories read only = No browseable = No [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No |
#history | grep reds
770 history | grep reds |
#rdesktop -u user -p password 192.168.15.222
Autoselected keyboard map en-us WARNING: Remote desktop does not support colour depth 24; falling back to 16 |
#history | grep rdes
117 rdesktop 118 yum list rdesktop 119 yum install rdesktop 120 rdesktop 192.168.15.15 121 rdesktop -f 192.168.15.15 494 rdesktop 192.168.15.2 495 rdesktop 192.168.15.3 496 rdesktop 192.168.151 497 rdesktop 192.168.15.1 498 rdesktop 192.168.15.2 771 history | grep rdes |
#top
top - 16:02:09 up 6:04, 4 users, load average: 0.08, 0.02, 0.00 Tasks: 187 total, 2 running, 185 sleeping, 0 stopped, 0 zombie Cpu(s): 0.7%us, 0.2%sy, 0.0%ni, 99.2%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 4016364k total, 1483836k used, 2532528k free, 111788k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 2096984k total, 0k used, 2096984k free, 806736k cached 3821 user 15 0 628m 184m 26m S 0.7 4.7 2:38.26 firefox 3408 user 15 0 398m 23m 11m S 1.0 0.6 0:09.89 gnome-terminal 3141 root 15 0 367m 23m 8208 S 0.7 0.6 4:33.33 Xorg 3821 user 15 0 628m 184m 26m S 0.3 4.7 2:38.24 firefox ... 432 root 12 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1 439 root 13 -5 0 0 0 S 0.0 0.0 0:00.00 kstriped 452 root 10 -5 0 0 0 S 0.0 0.0 0:00.29 kjournald 477 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kauditd 510 root 16 -4 13040 1212 388 S 0.0 0.0 0:00.11 udevd 1530 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 hd-audio0 1695 root 18 -5 0 0 0 S 0.0 0.0 0:00.00 kksmd 1812 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 kmpathd/0 1813 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kmpathd/1 1814 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 kmpath_handlerd |
#yum install squid
Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: mirror.space.kz * base: mirror.space.kz * extras: mirror.space.kz * rpmforge: fr2.rpmfind.net * updates: mirror.space.kz Setting up Install Process Resolving Dependencies --> Running transaction check ... Transaction Test Succeeded Running Transaction Installing : perl-URI 1/2 error: failed to stat /mnt/smb: Input/output error Installing : squid 2/2 Installed: squid.x86_64 7:2.6.STABLE21-6.el5 Dependency Installed: perl-URI.noarch 0:1.35-3 Complete! |
#chk
![]() chkconfig chkfontpath |
#chkconfig squid on
|
#chkconfig --list
NetworkManager 0:off 1:off 2:off 3:off 4:off 5:off 6:off acpid 0:off 1:off 2:on 3:on 4:on 5:on 6:off anacron 0:off 1:off 2:on 3:on 4:on 5:on 6:off atd 0:off 1:off 2:off 3:on 4:on 5:on 6:off auditd 0:off 1:off 2:on 3:on 4:on 5:on 6:off autofs 0:off 1:off 2:off 3:on 4:on 5:on 6:off avahi-daemon 0:off 1:off 2:off 3:on 4:on 5:on 6:off avahi-dnsconfd 0:off 1:off 2:off 3:off 4:off 5:off 6:off bluetooth 0:off 1:off 2:on 3:on 4:on 5:off 6:off capi 0:off 1:off 2:off 3:off 4:off 5:off 6:off ... finger: on gssftp: off klogin: off krb5-telnet: off kshell: off rsync: off tcpmux-server: off telnet: off time-dgram: off time-stream: off |
#vim /etc/squid/squid.conf
|
#grep -v ^# /etc/squid/squid.conf | grep -xv '' | less
|
#cat /var/log/messages
Apr 4 11:25:01 linux5 syslogd 1.4.1: restart. Apr 4 11:50:46 linux5 kernel: kjournald starting. Commit interval 5 seconds Apr 4 11:50:46 linux5 kernel: EXT3 FS on sda7, internal journal Apr 4 11:50:46 linux5 kernel: EXT3-fs: mounted filesystem with ordered data mode. Apr 4 12:03:50 linux5 kernel: kjournald starting. Commit interval 5 seconds Apr 4 12:03:50 linux5 kernel: EXT3 FS on sda7, internal journal Apr 4 12:03:50 linux5 kernel: EXT3-fs: mounted filesystem with ordered data mode. Apr 4 12:03:57 linux5 kernel: kjournald starting. Commit interval 5 seconds Apr 4 12:03:57 linux5 kernel: EXT3 FS on sda7, internal journal Apr 4 12:03:57 linux5 kernel: EXT3-fs: mounted filesystem with ordered data mode. ... Apr 8 16:03:01 linux5 smbd[7175]: connect_to_domain_password_server: unable to open the domain client session to machine DC01.DOM.KZ. Error was : NT_STATUS_CANT_ACCESS_DOMAIN_INFO. Apr 8 16:03:01 linux5 smbd[7175]: [2011/04/08 16:03:01, 0] auth/auth_domain.c:domain_client_validate(220) Apr 8 16:03:01 linux5 smbd[7175]: domain_client_validate: Domain password server not available. Apr 8 16:03:01 linux5 kernel: Status code returned 0xc00000da NT_STATUS_CANT_ACCESS_DOMAIN_INFO Apr 8 16:03:01 linux5 kernel: CIFS VFS: Send error in SessSetup = -5 Apr 8 16:03:02 linux5 yum: Installed: perl-URI-1.35-3.noarch Apr 8 16:03:03 linux5 yum: Installed: 7:squid-2.6.STABLE21-6.el5.x86_64 Apr 8 16:06:18 linux5 squid[7293]: Squid Parent: child process 7295 started Apr 8 16:29:00 linux5 squid[7380]: Bungled squid.conf line 633: acl myauth proxy_auth REQUIRED Apr 8 16:29:00 linux5 squid[7381]: Bungled squid.conf line 633: acl myauth proxy_auth REQUIRED |
#cat /var/log/messages | grep head
![]() |
#cat /var/log/messages | grep squid
Apr 8 16:03:03 linux5 yum: Installed: 7:squid-2.6.STABLE21-6.el5.x86_64 Apr 8 16:06:18 linux5 squid[7293]: Squid Parent: child process 7295 started Apr 8 16:29:00 linux5 squid[7380]: Bungled squid.conf line 633: acl myauth proxy_auth REQUIRED Apr 8 16:29:00 linux5 squid[7381]: Bungled squid.conf line 633: acl myauth proxy_auth REQUIRED |
#vim /etc/squid/squid.conf
|
#/etc/init.d/squid start
![]() Starting squid: [FAILED] |
#chkconfig | grep named
![]() chkconfig version 1.3.30.2 - Copyright (C) 1997-2000 Red Hat, Inc. This may be freely redistributed under the terms of the GNU Public License. usage: chkconfig --list [name] chkconfig --add <name> chkconfig --del <name> chkconfig [--level <levels>] <name> <on|off|reset|resetpriorities> |
#chkconfig
![]() chkconfig version 1.3.30.2 - Copyright (C) 1997-2000 Red Hat, Inc. This may be freely redistributed under the terms of the GNU Public License. usage: chkconfig --list [name] chkconfig --add <name> chkconfig --del <name> chkconfig [--level <levels>] <name> <on|off|reset|resetpriorities> |
#chkconfig -- list | grep namde
![]() |
#chkconfig -- list | grep named
![]() |
#chkconfig --list | grep namde
![]() |
#chkconfig --list
NetworkManager 0:off 1:off 2:off 3:off 4:off 5:off 6:off acpid 0:off 1:off 2:on 3:on 4:on 5:on 6:off anacron 0:off 1:off 2:on 3:on 4:on |