//
you're reading...
aminesoft, ubuntu

Install Samba server in Ubuntu Karmic 9.10



P.S: NOW you can Subscribe to Am!NeS0Ft’s blog by Email
If you want to share files between your Ubuntu and Windows computers, your best option is to use Samba file sharing.

Samba is a free software re-implementation of SMB/CIFS networking protocol, originally developed by Australian Andrew Tridgell. As of version 3, Samba provides file and print services for various Microsoft Windows clients and

can integrate with a Windows Server domain, either as a Primary Domain Controller (PDC) or as a domain member. It can also be part of an Active Directory domain.Samba runs on most Unix and Unix-like systems, such as Linux, Solaris, AIX and the BSD variants, including Apple’s Mac OS X Server (which was added to the Mac OS X client in version 10.2). Samba is standard on nearly all distributions of Linux and is commonly included as a basic system service on other Unix-based operating systems as well. Samba is released under the GNU General Public License. The name Samba comes from SMB (Server Message Block), the name of the standard protocol used by the Microsoft Windows network file system.  (Wikipedia)

Lets  start then,

Install  samba  in  Ubuntu   can be  from Gui tool (Software  center  of  from command  line )

First we have to install sambe server, In  the termina type the command  :

sudo apt-get install samba smbfs

Now we  have  for  example  to  share  this directory  /share

lets make  a  configuration of  the samba  share :

#sudo vi /etc/samba/smb.conf
# /etc/samba/smb.conf
 #
 [global]
 security = USER
 hosts allow =

 [homes]
 comment = Home Directories
 browseable = no
 writable = yes

 [share]
 comment = Aminesoft File Server
 path = /share/
 force user = samba
 force group = samba
 read only = No
 hosts allow =

Explain  : every  user connected to this samba  server can connect directly to his /home/directory

First  add a user (For example: aminesoftuser to  the  system, in the terminal type the command :

#sudo  adduser  aminesoftuser
root@aminesoft-desktop:~# adduser aminesoftuser

Output
Adding user `aminesoftuser’ …
Adding new group `aminesoftuser’ (1003) …
Adding new user `aminesoftuser’ (1003) with group `aminesoftuser’ …
Creating home directory `/home/aminesoftuser’ …
Copying files from `/etc/skel’ …
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for aminesoftuser
Enter the new value, or press ENTER for the default
Full Name []:

now  make  a  samba  password  for  this user    with  :

smbpasswd  -a   aminesoftuser

Output

New SMB password:
Retype new SMB password:
Added user aminesoftuser.

Now  restart  your  samba  server

sudo /etc/init.d/samba   restart

Now if you have another computer with windows machine installed, test if it is working:

In your windows go to :

Start  —->   run    and insert   //ip or  //hostname

and

write your  login and  samba password
P.S: NOW you can Subscribe to Am!NeS0Ft’s blog by Email
Have Fan 😉

Advertisements

About abdessemed mohamed amine

DZ-SECURITY

Discussion

No comments yet.

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

Facebook

November 2009
S M T W T F S
« Oct   Dec »
1234567
891011121314
15161718192021
22232425262728
2930  

Twitter

Error: Twitter did not respond. Please wait a few minutes and refresh this page.

  • 364,474 Visit !
%d bloggers like this: