Add

Installing and configuring Samba


Samba is an open source software that allows UNIX-based operating systems to "see" the network with Windows PCs. Samba is actually the implementation of several protocols in one software able to communicate simultaneously with these protocols: SMB, TCP / IP, NetBIOS (protocol implemented in the Network Neighborhood in Windows), WINS and Active Directory (this should be set for Kerberos ).

First, to successfully set Samba to be the car that runs on Linux to have static IP. Otherwise, it will not be able to use WINS ...

Install Samba:

# Sudo apt-get install samba

After installation, you must make sure that Samba is not running:

# Sudo / etc / init.d / samba stop

smb.conf is the configuration file of Samba. We rename this file in the following:

# Sudo mv / etc / samba / smb.conf / etc / samba / smb.conf.template

The following command will create a new file:

# Sudo touch / etc / samba / smb.conf

Then we edit the new file in your favorite editor:

# Sudo gedit / etc / samba / smb.conf

That's should be put in the new file:

[Global]

; General server settings

netbios name = YOUR_HOSTNAME

server string =

workgroup = YOUR_WORKGROUP

announce version = 5.0

socket options = TCP_NODELAY SO_KEEPALIVE SO_RCVBUF = 8192 SO_SNDBUF IPTOS_LOWDELAY = 8192

passdb backend = tdbsam

security = user

null passwords = true

username map = / etc / samba / smbusers

name resolve order = hosts wins bcast

wins support = yes

printing = CUPS

printcap name = CUPS

syslog = 1

syslog only = yes

; NOTE: If You Need access to the user home directories uncomment the

; Lines Adjust the settings Below and to your hearts content.

; [Homes]

; Valid users =% S

; Create mode = 0600

; Directory mode = 0755

; Browseable = no

; Read only = no

; Veto files = /*.{*}/.*/ mail / bin /

; NOTE: Only Needed if you run samba as a primary domain controller.

; Not this config I Needed That Does not cover matter.

; [NETLOGON]

; Path = / var / lib / samba / NETLOGON

; Admin users = Administrator

; Valid users =% U

; Read only = no

; NOTE: Again - only if you're running a Needed primary domain controller.

; [Profiles]

; Path = / var / lib / samba / profiles

; Valid users =% U

; Create mode = 0600

; Directory mode = 0700

; Writeable = yes

; Browseable = no

; NOTE: Inside this place you build a printer driver repository May for

; Windows - I'll cover this topic in Another HOWTO.

[Print $]

path = / var / lib / samba / printers

browseable = yes

guest ok = yes

read only = yes

write list = root

create mask = 0664

directory mask = 0775

[Printers]

path = / tmp

printable = yes

guest ok = yes

browseable = no

; Uncomment if You Need to share your CD-/DVD-ROM Drive

; [DVD-ROM Drive]

; Path = / media / cdrom

; Browseable = yes

; Read only = yes

; Guest ok = yes

[MyFiles]

path = / media / samba /

browseable = yes

read only = no

guest ok = no

create mask = 0644

directory mask = 0755

force user = YOUR_USERNAME

force group = YOUR_USERGROUP

Sure, a few small changes to be made:

netbios name = HOSTNAME YOUR_HOSTNAME be replaced with your

workgroup = Workgroup YOUR_WORKGROUP be replaced with your (who is set on Windows). Generally, on Windows, workgrupului name is Workgroup or MSHOME.

wins support = yes

If you do not have static IP, or IP using a variety of reasons Dimana the option should be set above the "no" instead of "yes".

[MyFiles] is the name share ului.Poate be renamed anyway, but should be avoided spaces (as do the other names).

path = / media / samba / assume that this path is a hard drive or another partition mounted, and is where files are saved share look.

If not available another hard drive or another partition, you can create a Home folder for example, where you can share your files look:

# Sudo mkdir / home / samba

In this case, the path will be:

# Path = / home / samba /

Because / home / samba will be a folder where you have to write more and more people, we will grant the correct permissions:

# Sudo chmod 0777 / home / samba

About these settings would have to pormin service now:

# Sudo / etc / init.d / samba start

We must add users.

Samba is an open source software that allows UNIX-based operating systems to "see" the network with Windows PCs. Samba is actually the implementation of several protocols in one software able to communicate simultaneously with these protocols: SMB , TCP / IP, NetBIOS (protocol implemented in the Network Neighborhood in Windows), WINS and Active Directory (this should be set for Kerberos ).

First, to successfully set Samba to be the car that runs on Linux to have static IP. Otherwise, you can not use WINS ...

Install Samba:

# Sudo apt-get install samba

After installation, you must make sure that Samba is not running:

# Sudo / etc / init.d / samba stop

smb.conf is the configuration file of Samba. We rename this file in the following:

# Sudo mv / etc / samba / smb.conf / etc / samba / smb.conf.template

The following command will create a new file:

# Sudo touch / etc / samba / smb.conf

Then we edit the new file in your favorite editor:

# Sudo gedit / etc / samba / smb.conf

That's should be put in the new file:

[Global]
; General server settings
netbios name = YOUR_HOSTNAME
server string =
workgroup = YOUR_WORKGROUP
announce version = 5.0
socket options = TCP_NODELAY SO_KEEPALIVE SO_RCVBUF = 8192 SO_SNDBUF IPTOS_LOWDELAY = 8192

passdb backend = tdbsam
security = user
null passwords = true
username map = / etc / samba / smbusers
name resolve order = hosts wins bcast

wins support = yes

printing = CUPS
printcap name = CUPS

syslog = 1
syslog only = yes

; NOTE: If You Need access to the user home directories uncomment the
; Lines Adjust the settings Below and to your hearts content.
; [Homes]
; Valid users =% S
; Create mode = 0600
; Directory mode = 0755
; Browseable = no
; Read only = no
; Veto files = /*.{*}/.*/ mail / bin /

; NOTE: Only Needed if you run samba as a primary domain controller.
; Not this config I Needed That Does not cover matter.
; [NETLOGON]
; Path = / var / lib / samba / NETLOGON
; Admin users = Administrator
; Valid users =% U
; Read only = no

; NOTE: Again - only if you're running a Needed primary domain controller.
; [Profiles]
; Path = / var / lib / samba / profiles
; Valid users =% U
; Create mode = 0600
; Directory mode = 0700
; Writeable = yes
; Browseable = no

; NOTE: Inside this place you build a printer driver repository May for
; Windows - I'll cover this topic in Another HOWTO.
[Print $]
path = / var / lib / samba / printers
browseable = yes
guest ok = yes
read only = yes
write list = root
create mask = 0664
directory mask = 0775

[Printers]
path = / tmp
printable = yes
guest ok = yes
browseable = no

; Uncomment if You Need to share your CD-/DVD-ROM Drive
; [DVD-ROM Drive]
; Path = / media / cdrom
; Browseable = yes
; Read only = yes
; Guest ok = yes

[MyFiles]
path = / media / samba /
browseable = yes
read only = no
guest ok = no
create mask = 0644
directory mask = 0755
force user = YOUR_USERNAME
force group = YOUR_USERGROUP

Sure, a few small changes to be made:

netbios name = HOSTNAME YOUR_HOSTNAME be replaced with your
workgroup = Workgroup YOUR_WORKGROUP be replaced with your (who is set on Windows). Generally, on a Windows machine, workgrupului name is Workgroup or MSHOME.

wins support = yes

If you do not have static IP, or IP using a variety of reasons Dimana the option should be set above the "no" instead of "yes".

[MyFiles] is the name share ului.Poate be renamed anyway, but should be avoided spaces (as do the other names).

path = / media / samba / assume that this path is a hard drive or another partition mounted, and is where files are saved share look.

If not available another hard drive or another partition, you can create a Home folder for example, where you can share your files look:

# Sudo mkdir / home / samba

In this case, the path will be:

# Path = / home / samba /

Because / home / samba will be a folder where you have to write more and more people, we will grant the correct permissions:

# Sudo chmod 0777 / home / samba

About these settings would have to pormin service now:

# Sudo / etc / init.d / samba start

Longer need to add users, but this time viitoare.Samba is an open source, which allows UNIX-based operating systems to "see" the network with Windows PCs. Samba is actually the implementation of several protocols in one software able to communicate simultaneously with these protocols: SMB, TCP / IP, NetBIOS (protocol implemented in the Network Neighborhood in Windows), WINS and Active Directory (this should be set for Kerberos).

First, to successfully set Samba to be the car that runs on Linux to have static IP. Otherwise, you can not use WINS ...

Install Samba:

# Sudo apt-get install samba

After installation, you must make sure that Samba is not running:

# Sudo / etc / init.d / samba stop

smb.conf is the configuration file of Samba. We rename this file in the following:

# Sudo mv / etc / samba / smb.conf / etc / samba / smb.conf.template

The following command will create a new file:

# Sudo touch / etc / samba / smb.conf

Then we edit the new file in your favorite editor:

# Sudo gedit / etc / samba / smb.conf

That's should be put in the new file:

[Global]

; General server settings

netbios name = YOUR_HOSTNAME

server string =

workgroup = YOUR_WORKGROUP

announce version = 5.0

socket options = TCP_NODELAY SO_KEEPALIVE SO_RCVBUF = 8192 SO_SNDBUF IPTOS_LOWDELAY = 8192

passdb backend = tdbsam

security = user

null passwords = true

username map = / etc / samba / smbusers

name resolve order = hosts wins bcast

wins support = yes

printing = CUPS

printcap name = CUPS

syslog = 1

syslog only = yes

; NOTE: If You Need access to the user home directories uncomment the

; Lines Adjust the settings Below and to your hearts content.

; [Homes]

; Valid users =% S

; Create mode = 0600

; Directory mode = 0755

; Browseable = no

; Read only = no

; Veto files = /*.{*}/.*/ mail / bin /

; NOTE: Only Needed if you run samba as a primary domain controller.

; Not this config I Needed That Does not cover matter.

; [NETLOGON]

; Path = / var / lib / samba / NETLOGON

; Admin users = Administrator

; Valid users =% U

; Read only = no

; NOTE: Again - only if you're running a Needed primary domain controller.

; [Profiles]

; Path = / var / lib / samba / profiles

; Valid users =% U

; Create mode = 0600

; Directory mode = 0700

; Writeable = yes

; Browseable = no

; NOTE: Inside this place you build a printer driver repository May for

; Windows - I'll cover this topic in Another HOWTO.

[Print $]

path = / var / lib / samba / printers

browseable = yes

guest ok = yes

read only = yes

write list = root

create mask = 0664

directory mask = 0775

[Printers]

path = / tmp

printable = yes

guest ok = yes

browseable = no

; Uncomment if You Need to share your CD-/DVD-ROM Drive

; [DVD-ROM Drive]

; Path = / media / cdrom

; Browseable = yes

; Read only = yes

; Guest ok = yes

[MyFiles]

path = / media / samba /

browseable = yes

read only = no

guest ok = no

create mask = 0644

directory mask = 0755

force user = YOUR_USERNAME

force group = YOUR_USERGROUP

Sure, a few small changes to be made:

netbios name = HOSTNAME YOUR_HOSTNAME be replaced with your

workgroup = Workgroup YOUR_WORKGROUP be replaced with your (who is set on Windows). Generally, on a Windows machine, workgrupului name is Workgroup or MSHOME.

wins support = yes

If you do not have static IP, or IP using a variety of reasons Dimana the option should be set above the "no" instead of "yes".

[MyFiles] is the name share ului.Poate be renamed anyway, but should be avoided spaces (as do the other names).

path = / media / samba / assume that this path is a hard drive or another partition mounted, and is where files are saved share look.

If not available another hard drive or another partition, you can create a Home folder for example, where you can share your files look:

# Sudo mkdir / home / samba

In this case, the path will be:

# Path = / home / samba /

Because / home / samba will be a folder where you have to write more and more people, we will grant the correct permissions:

# Sudo chmod 0777 / home / samba

About these settings would have to pormin service now:

# Sudo / etc / init.d / samba start

Longer need to add users, but that next time.

1 Star2 Stars3 Stars4 Stars5 Stars (14 votes, average: 4.86 out of 5)
Loading ... Loading ...

No comments yet.

Respond

Get in on the action.

* Required

Rumanian flagItalian flagEnglish flagGerman flagFrench flagSpanish flagRussian flagDutch flagDanish flagFinnish flagSwedish flagNorwegian flagHungarian flag        
By N2H

Random Posts Recent Comments

  • admin Says:

    Amigo, formulated your question in English Please If You Really Need Help! Cheers! ...

  • Gonçalves Mauricio Says:

    Boa late Amigo nao consigo me add me ajudar Podere novo user? They pride nao é que a commando ...

  • Flossy Says:

    That's really Zubao0 thinking out of the box. Thanks! ...

  • Michael Esch Says:

    I used this tutorial to install Komodo Edit 6 on Ubuntu 10.10, I rate your tutorial 5 / 5 I hope that ...

  • admin Says:

    @ Dan I run applications created in Visual Basic and fox in wine, so I would not be ...

  • Dan Says:

    I want to tell me if a PRG account under Visual Basic running under Ubuntu with Wine Deo wonder ...

  • admin Says:

    Thank you all for your comments. As I was busy latelly, I haven't answer to your posts. I hope you u. ..

  • tcpdump Says:

    Hello, I faced the error Also "It appears as though you do have permission to view informational note ...

  • Ali Says:

    awesome !!!...

  • Schedule Says:

    You you should make changes to the post subject and join files in Ubuntu Split with lxsplit | EtutsR ...

Tag Cloud