rianto isaac's Weblog

rianto utomo isaac sahala utomo

linux, suse 11.4 samba fix problem

leave a comment »

openSUSE Samba Server

How to configure Samba Server in openSUSE 11.4

Two ways to configure Samba Server in openSUSE, using YaST (easy way) or manual (more options).

#############################################################

Samba Server using YaST:

Run yast at Terminal or GUI
# yast

YaST Control Center
Network Services -> Samba Server

Enter Workgroup or Domain Name, Next

Samba Server Type
Select: (x) Not a Domain Controller, Next

Under Samba Configuration screen
configure Start-Up, Shares, and Identity.

Start-Up
Service Start
Select: (x) During Boot

under Share
Add the share directory
Under Identification
Give it a share name that MS Windows can map, Share Name
Share Path, browse to share diretory.
Select Allow Users to Share Their Directories
OK

#############################################################

Configure Samba Server by Editing smb.conf

Here’s a screen shot of smb.conf with its default settings in openSUSE 11.4, some of the share directories were cut off. The main sections is the [global], the others in brackets are optional.

smb.conf default settings

The share directories are in brackets.

To create a samba share directory (ex: share) with everyone access, edit smb.conf
# vi /etc/samba/smb.conf

append smb.conf with the following:
[myShare]
inherit acls = Yes
path = /srv/share
read only = No

Create a share directory under /srv
# mkdir /srv/share

Change file permission (unsecure)
# chmod 777 /srv/share

Note: In openSUSE 11.4, Novell AppArmor needs to be configure for smbd and nmbd to be permitted.

Run Yast

From Novell AppArmor Screen, select “AppAmor Control Panel

Under “Configure Profile Modes“, select “Set profile modes [Configure]

In the Profile Mode Configuration screen, set the Mode to complain for:
usr.sbin.nmbd and usr.sbin.smbd

 

In Windows system, map the network share using NET USE:
Syntax: net use [drive letter] [\\samba ip address\sharename] /user:user@samba_ip_address
Ex: net use s: \\192.168.1.20\sambashare /user:root@192.168.1.20
It will prompt for the password

rianto utomo bole nyontek dari http://www.confignotes.com/2011/03/opensuse-samba-server/

Written by isaaconi

November 1, 2011 pada 10:04 am

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: