[20160921]linux下建立samba伺服器.txt
[20160921]linux下建立samba伺服器.txt
--工作需要,需要在linux下配置samba服務。好久不做這些事情,做一個安裝筆記:
1.安裝samba軟體包
# rpm -qa | grep samba
samba-client-3.0.33-3.39.el5_8
samba-common-3.0.33-3.39.el5_8
samba-3.0.33-3.39.el5_8
--注意安裝samba-3.0.33-3.39.el5_8需要 perl-Convert-ASN1-0.20-1.1.noarch.rpm包。
2.修改配置檔案:
[backup]
comment = backup Stuff
path = /u01/backup
public = yes
writable = yes
printable = no
--我配置比較簡單,先考慮能用先:
chmod 777 /u01/backup
--看了配置檔案/etc/samba/smb.conf:
# ----------------------- Standalone Server Options ------------------------
#
# Security can be set to user, share(deprecated) or server(deprecated)
#
# Backend to store user information in. New installations should
# use either tdbsam or ldapsam. smbpasswd is available for backwards
# compatibility. tdbsam requires no further configuration.
security = user
passdb backend = tdbsam
--其他方式share(deprecated) or server(deprecated)好像廢除了。不過我還是先測試看看。修改如下:
security = share
; passdb backend = tdbsam
3.啟動服務:
# service smb restart
Shutting down SMB services: [ OK ]
Shutting down NMB services: [ OK ]
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]
4.在我本機測試:
--//在我的電腦上輸入:
\\192.168.100.78\backup
5.下面測試使用密碼的方式:
--修改配置檔案/etc/samba/smb.conf:
security = user
passdb backend = tdbsam
# cat /etc/passwd | mksmbpasswd.sh >| /etc/samba/smbpasswd
# smbpasswd root
New SMB password:
Retype new SMB password:
Failed to find entry for user root.
Failed to modify password entry for user root
--這裡報錯,修改如下,再次執行smbpasswd root 。ok!
passdb backend = smbpasswd
--不對這個是預設模式。
--看了一些相關文件 http://blog.csdn.net/tg5156/article/details/8865775
# service smb restart
Shutting down SMB services: [ OK ]
Shutting down NMB services: [ OK ]
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]
--這樣使用口令,能看到共享磁碟。
6.下面測試使用密碼的方式:
--修改配置檔案/etc/samba/smb.conf:
security = user
passdb backend = tdbsam
[backup]
comment = backup Stuff
path = /u01/backup
valid users=root oracle
public = yes
writable = yes
printable = no
# write list = +staff
--參考了連結http://blog.csdn.net/tg5156/article/details/8865775。
# pdbedit -x oracle
# pdbedit -a oracle
new password:
retype new password:
Unix username: oracle
NT username:
Account Flags: [U ]
User SID: S-1-5-21-375937087-413791906-1356901787-1007
Primary Group SID: S-1-5-21-375937087-413791906-1356901787-513
Full Name:
Home Directory: \\gxqyydg4\oracle
HomeDir Drive:
Logon Script:
Profile Path: \\gxqyydg4\oracle\profile
Domain: GXQYYDG4
Account desc:
Workstations:
Munged dial:
Logon time: 0
Logoff time: never
Kickoff time: never
Password last set: Wed, 21 Sep 2016 08:54:45 CST
Password can change: Wed, 21 Sep 2016 08:54:45 CST
Password must change: never
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
--再次測試ok。
7.順便測試windows下oracle資料使用rman的情況,太穩定了,經常報錯。
channel ORA_DISK_3: starting piece 1 at 2016-09-20 17:34:54
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 09/20/2016 17:35:29
ORA-19502: write error on file "\\192.168.100.78\BACKUP\FULL_0SRG9VT9_1_1.BAK", block number 19072 (block size=8192)
ORA-27070: async read/write failed
OSD-04016: Error queuing an asynchronous I/O request.
O/S-Error: (OS 64) 指定的網路名不再可用。
--放棄!
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-2125248/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Linux伺服器---配置sambaLinux伺服器Samba
- Linux伺服器---安裝sambaLinux伺服器Samba
- Linux——搭建Samba(CIFS)伺服器LinuxSamba伺服器
- ubuntu下搭建samba伺服器UbuntuSamba伺服器
- Centos7下Samba伺服器配置。CentOSSamba伺服器
- 通過 Samba 服務,建立 Linux 開發環境SambaLinux開發環境
- 透過 Samba 服務,建立 Linux 開發環境SambaLinux開發環境
- Linux Samba 部署LinuxSamba
- 自學linux——20.Samba伺服器的搭建LinuxSamba伺服器
- Linux下掛在samba 資料夾到本地LinuxSamba
- Linux 伺服器下如何建立檔案防篡改規則Linux伺服器
- Linux伺服器下如何建立檔案防篡改規則Linux伺服器
- Linux下cifs公用網際網路系統和samba服務LinuxSamba
- 在Linux中,如何配置Samba共享?LinuxSamba
- [20211206]toad下job建立檢視問題.txt
- Linux與Windows共享檔案Samba(轉)LinuxWindowsSamba
- 如何在Linux下部署Samba服務?LinuxSamba
- [20191118]確定linux伺服器cpu數量.txtLinux伺服器
- Linux基礎命令---smbpasswd管理samba密碼LinuxSamba密碼
- Linux下建立root/普通使用者Linux
- 如何快速搭建Linux系統中Samba服務LinuxSamba
- vmware環境下在linux中建立ftp伺服器LinuxFTP伺服器
- Linux下簡單部署伺服器Linux伺服器
- Linux下搭建FTP伺服器教程LinuxFTP伺服器
- centos7使用samba搭建檔案共享伺服器CentOSSamba伺服器
- 一文搞定Samba雲伺服器配置(阿里雲)Samba伺服器阿里
- Jtti:linux安裝samba報錯的原因有哪些JttiLinuxSamba
- 在Linux系統中建立SSH伺服器別名Linux伺服器
- 20181108 公網Linux伺服器開啟samba(smb)檔案共享服務給家裡電腦用Linux伺服器Samba
- [20200414]Linux下快速刪除大量檔案(補充).txtLinux
- Linux伺服器下Java環境搭建Linux伺服器Java
- Samba:打造企業級授權檔案共享伺服器Samba伺服器
- Linux下使用Nginx做CDN伺服器下的配置LinuxNginx伺服器
- Linux下部署Samba服務環境的操作記錄LinuxSamba
- [20220311]windwos下使用seq與xargs建立多個子目錄問題.txt
- 雲伺服器:Linux資料夾檔案建立、刪除伺服器Linux
- Linux基礎命令---htdigest建立和更新apache伺服器摘要LinuxApache伺服器
- [20181113]Logical Standby建立2.txt
- [20191122]schama建立同義詞.txt