Configure samba on linux ubuntu

Configure SAMBA on linux ubuntu
(tested on ubuntu 8.04)

1.0 check your samba (do this in root account)
1.1-if this happen, it’s mean you already have samba server installed.
usm-desktop usm # /etc/init.d/samba restart
* Stopping Samba daemons                                                [ OK ]
* Starting Samba daemons                                                  [ OK ]

-skip steps below, go to step no 2.

1.2-if this happen, mean you need to install samba server first
/etc/init.d/samba restart
bash: /etc/init.d/sambax: No such file or directory

go to next step

1.3-install samba : #apt-get install samba

2.0 configuring your samba. In this example, I will make 2 user account and 1 folder for them to access it.
2.1-create folder in /home/
usm-desktop home # mkdir /home/kongsi
then set permission
usm-desktop samba # chmod o+rwx /home/kongsi/

2.2-create account (repeat this steps for any user)
usm-desktop usm # adduser devel2
Adding user `devel2′ …
Adding new group `devel2′ (1004) …
Adding new user `devel2′ (1006) with group `devel2′ …
Creating home directory `/home/devel2′ …
Copying files from `/etc/skel’ …
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for devel2
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] y

2.3-add existing user to samba service

usm-desktop samba # smbpasswd -a devel2
and enter the same password you have entered before (step 2.2)
repeat the same step for any existing user.

2.4-config samba configuration file.

usm-desktop samba # nano /etc/samba/smb.conf
add this config text at the end of file :

[kongsi]
comment = folder untuk kongsi ramei2
read only = false
guest ok = no
public = no
writeable = yes
path = /home/kongsi
browseable = yes
directory mask = 777
create mask = 777
valid user = devel,devel2

save the file: ctrl+o, ctrl+x
restart the service
usm-desktop samba # /etc/init.d/samba restart

::::finish::::
access it from your windows computer
\\10.206.3.2\kongsi

enter the username & password



Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s