課件詳解年10月28日_第1頁(yè)
課件詳解年10月28日_第2頁(yè)
課件詳解年10月28日_第3頁(yè)
課件詳解年10月28日_第4頁(yè)
課件詳解年10月28日_第5頁(yè)
已閱讀5頁(yè),還剩6頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

付費(fèi)下載

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

000034yuminstallsamba.x86_64- [root@localhostsamba]#cd/etc/samba/[root@localhostsamba]#lslmhosts[root@localhostsamba]#vimmaptoguest=BadUser登錄的時(shí)候,不需要輸入用戶NT_STATUS_ACCESS_DENIEDlisting\* chcon-tsamba_share_t/path/to/directorychcon-tsamba_share_tsetsebool-Psamba_enable_home_dirs 系統(tǒng)下的用戶和samba中用戶的是獨(dú)立[root@localhosthztogogo]#pdbeditL[root@localhosthztogogo]#idtomid:tom:nosuch[root@localhosthztogogo]#smbpasswd-atomNewSMBpassword:RetypenewSMBFailedtoaddentryforusertom.[root@localhosthztogogo]#useraddtom[root@localhosthztogogo]#smbpasswd-atomNewSMBpassword:RetypenewSMBAddedusertom.[root@localhosthztogogo]#smbpasswdxtom(刪除用戶)Deletedusertom.[root@localhosthztogogo]#pdbedit-[root@localhosthztogogo]#smbpasswdatom(添加用戶)NewSMBpassword:RetypenewSMBAddeduser[root@localhosthztogogo]#smbpasswdtom(更新用戶的信息NewSMBRetypenewSMB[root@localhosthztogogo]#pdbedit-L[root@localhost[root@localhosthztogogo]#smbpasswddtom(禁用用戶)Disabledusertom.[root@localhosthztogogo]#smbpasswdetom(啟用用戶)Enabledusertom.[root@localhost[root@localhostsamba]# -L//00-U查看共享信息,-LUNT_STATUS_MEDIA_WRITE_PROTECTEDmakingremotedirectory 在配置文件中是否有writable oo+w關(guān)于writable=yes#wriist= ist=tom ist= ist=@tom誰(shuí)都可以查 里面信息,browseable默認(rèn)是browseable=nobrowselist=tom是希望tom用戶可以查看,但是togogo用戶不能查看=====發(fā)現(xiàn)兩個(gè)用戶都不能查看 的browseable=configfile=[root@localhostsamba]#mount-ousername=tom,password=root123//00/togogotest[root@localhost/]#mount-ousername=tom,password=root123,sec=nt//00/togogotest[root@localhostsamba]#yuminstallcifs-utils.x86_64-tom1:cifscredsadd00-u后續(xù)想更新:cifscredsupdate00u[root@localhostaa=hostname[root@localhost/]#echoaa[root@localhost/]#echo$aa[root@localhost/]#hostname[root@localhostaa=`hostname`(esc下面的鍵)[root@localhost/]#echo$aa[root@localhostifconfigeno16777736|grepether|awk'{print$2[root@localhost/]#echo"macaddressis:$mac"macaddressis:00:0c:29:b4:35:ef[root@localhost/]#echo"$macaddressis:$mac"00:0c:29:b4:35:efaddressis:00:0c:29:b4:35:ef[root@localhost/]#echo"\$macaddressis:$mac"$macaddressis:00:0c:29:b4:35:ef[root@localhost/]# [root@localhosttmp]#set-[root@localhosttmp]#echo$bbbash:bb:unboundvariable[root@localhosttmp]#set+u[root@localhosttmp]#echo$bb[root@localhost exportaa=1[root@localhosttmp]#aa=123[root@localhosttmp]#exportaa[root@localhosttmp]#echo$aa[root@localhosttmp]#echoa.重啟系統(tǒng)b.執(zhí)行文件(source文件名)bb.sh1231(常用[比較2(字符串[[比較3test------[root@localhosttmp]#aa=1[root@localhosttmp]#bb=2[root@localhosttmp]#[aa-eqbb]-bash:[:aa:integerexpressionexpected[root@localhosttmp]#[$aa-eq$bb][root@localhosttmp]#echo$?1[root@localhosttmp]#[$aa-ne$bb][root@localhosttmp]#echo$?0>><abc-------l和&&或 [root@localhosttmp]#bb=$[2+9][root@localhosttmp]#echo$bb[root@localhosttmp]#bb=`expr2+3`[root@localhosttmp]#echo$bb5[root@localhosttmp]#let[root@localhosttmp]#declare-iaa=9+9[root@localhosttmp]#echo$aa[root@localhostaa=1,bb=(++aa)<=5循aa=1,bb=(aa++)<=5循環(huán)判斷語(yǔ)句:ifelifelse

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論