Setting up Samba3.6.9 on Oracle Linux 6
This post is based on: http://www.techotopia.com/index.php/Sharing_Files_between_RHEL_6_and_Windows_Systems_with_Samba. However, there're important configuration changes according to my experiment.
This article walks you through setting up Samba on Oracle Linux 6, and sets up anonymous access to Linux directory.
0. su
1. Check if Samba is installed on Linux
rpm -q samba
2. Install Samba
yum install samba
3. Make sure you Linux firewall does not block Samba
4. Configure smb.conf
vi /etc/samba/smb.conf
[global]
workgroup =
[tmp] --Resource name you'll be seeing on Windows
path = /tmp --Linux path
writeable = yes
browseable = yes
valid users = demo --User created in Samba to access this directory
4.1 Configure anonymous access and no need to enter username password
--smb.conf
[tmp]
path = /u01/app/oracle/oradata/orcl
writeable = no
browseable = yes
public = yes
guest ok = yes
[global]
guest account = nobody
map to guest = bad user
--Create a user named nobody
smbpasswd -an nobody
This also creates a Linux account - nobody. Please make sure nobody has access to "/u01/app/oracle/oradata/orcl" in Linux, not only to orcl itself, also its parent directories.
5. Create user "demo"
smbpasswd -a demo
6. Testing Samba configuration
testparm
7. Starting Samba and NetBIOS Name Services on Linux
service smb start
service nmb start
chkconfig smb on
chkconfig nmb on
To check status:
service smb status
service nmb status
8. Mount on Windows and Linux
Now, you've completed a basic Samba server setup on Linux. On Windows, click "Tools" -> "Map Network Driver", enter "\\odilab\online_log" for Folder, select a Drive, and click OK, you're all set.
On Oracle Linux, user can run the following command to look for shared resources from Samba server -
smbclient -L odilab
smbclient \\\\odilab\\online_log work like ftp command.
To mount, you have two options: smbfs and cifs. Smbfs is deprecated.
mount -t cifs -o guest //odilab/online_log /home/oracle/online_log
Unmount: umount /home/oracle/online_log
This article walks you through setting up Samba on Oracle Linux 6, and sets up anonymous access to Linux directory.
0. su
1. Check if Samba is installed on Linux
rpm -q samba
2. Install Samba
yum install samba
3. Make sure you Linux firewall does not block Samba
4. Configure smb.conf
vi /etc/samba/smb.conf
[global]
workgroup =
[tmp] --Resource name you'll be seeing on Windows
path = /tmp --Linux path
writeable = yes
browseable = yes
valid users = demo --User created in Samba to access this directory
4.1 Configure anonymous access and no need to enter username password
--smb.conf
[tmp]
path = /u01/app/oracle/oradata/orcl
writeable = no
browseable = yes
public = yes
guest ok = yes
[global]
guest account = nobody
map to guest = bad user
--Create a user named nobody
smbpasswd -an nobody
This also creates a Linux account - nobody. Please make sure nobody has access to "/u01/app/oracle/oradata/orcl" in Linux, not only to orcl itself, also its parent directories.
5. Create user "demo"
smbpasswd -a demo
6. Testing Samba configuration
testparm
7. Starting Samba and NetBIOS Name Services on Linux
service smb start
service nmb start
chkconfig smb on
chkconfig nmb on
To check status:
service smb status
service nmb status
8. Mount on Windows and Linux
Now, you've completed a basic Samba server setup on Linux. On Windows, click "Tools" -> "Map Network Driver", enter "\\odilab\online_log" for Folder, select a Drive, and click OK, you're all set.
On Oracle Linux, user can run the following command to look for shared resources from Samba server -
smbclient -L odilab
smbclient \\\\odilab\\online_log work like ftp command.
To mount, you have two options: smbfs and cifs. Smbfs is deprecated.
mount -t cifs -o guest //odilab/online_log /home/oracle/online_log
Unmount: umount /home/oracle/online_log
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/638844/viewspace-776897/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Setting up ASM on linux with LVM (Doc ID 292348.1)ASMLinuxLVM
- oracle 10g advanced replication ---setting up deployment templateOracle 10g
- setting up materialized view sites for oracle10g advanced replication mvZedViewOracle
- [入門級]Setting up Python in Windows 7PythonWindows
- Not enough space to build proposed filesystem while setting up superblockUIWhileBloC
- volley建立請求佇列(Setting Up a RequestQueue)佇列
- org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed setting up proxy to /10.10.11.184:6ApacheHadoopclientExceptionAI
- Setting up your App domain for SharePoint 2013APPAI
- android-Adding Search Functionality,Setting Up the Search InterfaceAndroidFunction
- 使用CocoaPods 時卡在這 Setting up CocoaPods master repo 不動AST
- 在 Microsoft Dynamics NAV 2018 Setting Up and Using a Purchase Approval WorkflowROSAPP
- hadoop官網翻譯第二天Setting up a Single Node Cluster.Hadoop
- Oracle Linux up3+ORACLE EBS R12.0.4->12.0.6 基本完成..OracleLinux
- sendmail settingAI
- SMART Goal SettingGo
- How to Clean Up After a Failed Oracle Clusterware (CRS) InstallationAIOracle
- Oracle Enterprise Linux 6下安裝Oracle 9204OracleLinux
- 在Oracle Linux 6中識別scsi idOracleLinux
- hugepages_setting(linux大記憶體設定指令碼)Linux記憶體指令碼
- 【UP_ORACLE】如何給Oracle DG打補丁(一)整體思路Oracle
- Procedure for Setting Partner FunctionsFunction
- 阿里雲setting阿里
- oracle linux 6.作業系統oracle 11g racOracleLinux作業系統
- Shift Up:截止2024年6月《劍星》全球銷量破百萬
- set udev for setting disk permiss on ASM when using multipath OL 6.x_1521757.1devASM
- Giving up: Oracle CSS stack appears NOT to be running.OracleCSSAPP
- Linux6上Oracle11g 所需包LinuxOracle
- 【UP_ORACLE】使用AutoUpgrade工具升級Oracle 11.2.0.4至12.2.0.1Oracle
- 簡化 Oracle Linux 6 上的 Oracle Database 11g 安裝OracleLinuxDatabase
- ASM Setting Larger AU SizesASM
- SAPGUI for Java Connect settingGUIJava
- Xcode的build settingXCodeUI
- Setting the Database Time Zone (80)Database
- 【UP_ORACLE】Oracle 19c之從19.3升級到19.9Oracle
- UDEV SCSI Rules Configuration for ASM in Oracle Linux 5 and 6devASMOracleLinux
- ORACLE LINUX 6 安裝telnet包問題處理OracleLinux
- 靜默建庫Oracle11.2.0.2 for Oracle Linux6 x86_64OracleLinux
- 靜默安裝Oracle11.2.0.2 for Oracle Linux6 x86_64OracleLinux