2012/01/19

mount 傳真 掃描 資料夾(透過網路芳鄰、SMB)


yum -y install cifs-utils
cd /samba-disk/復合機的產物/
mkdir fax
mkdir scanner
mount -t cifs //192.168.0.11/fax /samba-disk/復合機的產物/fax/
mount -t cifs //192.168.0.11/scan /samba-disk/復合機的產物/scanner/
mount -t cifs -o username=administrator,password=password //192.168.1.5/資料夾/ /本機掛

2012/01/18

grep / find


cat filename | grep keyword | grep keyword_2


find / | grep filename

Client host [209.85.214.172] blocked using bl.spamcop.net; Blocked

vi /etc/postfix/main.cf:

/

reject_rbl_client

remove list

2012/01/17


[root@mail /]# /usr/bin/spamassassin --add-addr-to-whitelist=toshock@gmail.com
Jan 17 15:36:27.549 [28925] warn: config: created user preferences file: /root/.spamassassin/user_prefs
[root@mail /]#

2012/01/13

Ldap serach

 ldapsearch -H ldap://127.0.0.1/ -LL -x -b "dc=aaa,dc=aaa" "(userPassword=123456)" ou


2012/01/05

rsyslog 設定


Firewall  UDP 514

vi /etc/rsyslog.conf


$ModLoad imudp.so
$UDPServerRun 514

:fromhost-ip, isequal, "xxx.xxx.xxx.xxx" /var/log/xxx/xxxlog