共 5 篇文章 |
|
如果您是第一次建立 SAMBA 的使用者,才需要進行這個動作: 因為我們在 smb.conf 裡面設定密碼 smb passwd file = /etc/samba/smbpasswd [root@test root]# cd /etc/samba [root@test samba]# touch smbpasswd [root@test samba]# chown root:root smbpasswd; chmod 600 smbpasswd # 請注意, smbpasswd 這個檔案記錄了能夠使用 SAMBA 伺服... 阅420 转1 评0 公众公开 07-04-15 16:08 |
範例一:完全參考預設值建立一個使用者,名稱為 vbird1[root@linux ~]# useradd vbird1[root@linux ~]# ls -l /homedrwxr-xr-x 3 vbird1 vbird1 4096 Aug 30 17:33 vbird1[root@linux ~]# grep vbird1 /etc/passwd /etc/shadow /etc/group/etc/passwd:vbird1:x:502:502::/home/vbird1:/bin/bash/etc/shadow:vbird1:!!:13025:0:99999:7:::/etc... 阅733 转2 评0 公众公开 07-04-15 16:06 |
範例一:將 /etc/man.config 複製到 /tmp ,並加以壓縮[root@linux ~]# cd /tmp[root@linux tmp]# cp /etc/man.config .[root@linux tmp]# compress man.config[root@linux tmp]# ls -l-rw-r--r-- 1 root root 2605 Jul 27 11:43 man.config.Z.範例一:將剛剛的 /tmp/man.config 以 bzip2 壓縮[root@linux tmp]# bzip2 -z man.config # 此時 m... 阅240 转1 评0 公众公开 07-04-15 16:05 |
[root@test root]# /sbin/iptables -P INPUT DROP [root@test root]# /sbin/iptables -P OUTPUT ACCEPT [root@test root]# /sbin/iptables -P FORWARD ACCEPT [root@test root]# /sbin/iptables -t nat -P PREROUTING ACCEPT [root@test root]# /sbin/iptables -t nat -P OUTPUT ACCEPT [root@test root]# /sbin/iptables -t nat -P P... 阅293 转0 评0 公众公开 07-04-15 16:04 |
& 重新啟動網路設定: [root@test root]# /etc/rc.d/init.d/network restart <==重新啟動網路介面 [root@test root]# ifdown eth0 <==關閉 eth0 網路卡 [root@test root]# ifup eth0 <==啟動 eth0 網路卡[root@test root]# ifconfig eth0 down.[root@test root]# ifconfig eth0 down <==關閉 eth0 網路卡 if... 阅982 转1 评0 公众公开 07-04-15 16:03 |