Setting up Samba3.6.9 on Oracle Linux 6
2013-12-14 00:18
417 查看
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.
[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
[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.
service nmb start
chkconfig smb on
chkconfig nmb on
To check status:
service smb status
service nmb status
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 samba2. Install Samba
yum install samba3. 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 demo6. Testing Samba configuration
testparm7. Starting Samba and NetBIOS Name Services on Linux
service smb startservice 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
相关文章推荐
- Setup JIRA Service Desk 3.9.2 on Oracle Linux 6.8
- Delete a Node from Oracle RAC 11gR2(11.2.0.3) on Oracle Linux 6
- Install Oracle 11G Release 2 (11.2) on Oracle Linux 7 (OEL7),备忘
- Samba 4 Domain Controller on Ubuntu 14.04 LTS
- oracle 12c on oracle Linux-rac安装配置手册
- Oracle Linux 6.3 Installation on Virtual Box
- samba 下载问题 samba not found on UART的解决方法
- Oracle Linux: Error "Missing Or Invalid IPv4 Prefix '0' On Linux Server" (文档 ID 1522095.1)
- [VirtualBox] - Install Oracle Linux 7 on Oracle VirtualBox
- How to use Samba on Linux?
- install samba on ubuntu
- CentOS 5.8 x64 源码安装 samba-3.6.9
- How to Enable Plain Text Password on Windows for Connecting to Samba Server
- Mount samba on AIX
- Samba 3.6.9 安装、管理
- samba configure on Cent OS 6.4
- Oracle EBS R12 - Clone EBS R12.1.1 on Oracle Linux 64 5.7 to Oracle Linux 64 5.7
- CentOS 5.8 x64 源码安装 samba-3.6.9
- config Samba service on Redhat 5
- install samba on crux without net.