共 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 伺服...
範例一:完全參考預設值建立一個使用者,名稱為 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...
範例一:將 /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...
[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...
& 重新啟動網路設定: [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...
帮助 | 留言交流 | 联系我们 | 服务条款 | 下载网文摘手 | 下载手机客户端
北京六智信息技术股份有限公司 Copyright© 2005-2024 360doc.com , All Rights Reserved
京ICP证090625号 京ICP备05038915号 京网文[2016]6433-853号 京公网安备11010502030377号
返回
顶部