A
A
Anton Pavlov2014-07-25 06:53:51
linux
Anton Pavlov, 2014-07-25 06:53:51

How to set up samba on debian 7?

Essence:
There is a server with the screw in 250 giktar and RAID6 4.5tb. I picked up Debian 7 on it, installed samba 3.6.6, read the sea of ​​configuration manuals, about the maximum. what happened. this is through the Windows Explorer, go to the server by ip address and see the shared folder, which I can’t get into.
452e5bdce89843caa85fc0bd2e388650.PNG

[global]

workgroup = WORKGROUP
netbios name = ftp
server string = %h server
dns proxy = no

log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d

security = share
encrypt passwords = true
passdb backend = tdbsam

obey pam restrictions = no

unix password sync = no
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes

[homes]
comment = Home Directories
browseable = no
read only = no
create mask = 0700
directory mask = 0700
valid users = %S

[MediaContent]
path = /media/ftp-data/MediaContent
readonly = yes
writable = yes
guest ok = yes 
create mask = 777 
directory mask = 777

This is the content of smb.conf
It is believed that this is due to poor synchronization of accounts and passwords.
And in general, explain to me dark. how to create accounts for samba.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
A
Alexander, 2014-07-29
@13KOLDUN

Here is my config, if you need anything.

[Global]  
  workgroup = VLG SERVER34
  netbios name = Server
  server string = 
  security = share
  browseable = Yes

[all]
 path = "/"
 force user = root
 force group = users
 read only = no
 create mask = 0777
 direcrory mask = 0777
 guest ok = Yes

[file]
 path = "/home/server/"
 force user = server
 force group = users
 read only = no
 create mask = 0777
 direcrory mask = 0777
 guest ok = Yes

[SERVERWEB]
 path = "/media/serverweb/"
 force user = root
 force group = users
 read only = no
 create mask = 0777
 direcrory mask = 0777
 guest ok = Yes

[HOSTING]
 path = "/media/hosting/"
 force user = server
 force group = users
 read only = no
 create mask = 0777
 direcrory mask = 0777
 guest ok = Yes

[Log]
 path = "/var/log/"
 force user = root
 force group = users
 read only = no
 create mask = 0777
 direcrory mask = 0777
 guest ok = Yes

[WWW]
 path = "/media/serverweb/www/webserver/data/"
 force user = webserver
 force group = webserver
 read only = no
 create mask = 0777
 direcrory mask = 0777
 guest ok = Yes

S
Sergey Petrikov, 2014-07-25
@RicoX

A very short, simple and understandable manual for your...

S
Sergey, 2014-07-25
@bk0011m

The user needs to be added.
smbpasswd -a user

D
Dmitry, 2014-07-25
@zmitrok62

en.wikipedia.org/wiki/Samba-SWAT

I
Igor, 2014-07-25
@merryjane

readonly = yes
writable = yes

Nothing here bothers you?
Check your config with the command testparm
Try this config:
[global]
  workgroup = MYGROUP
  server string = Samba Server Version %v
  
  log file = /var/log/samba/log.%m
  max log size = 50
  
  security = user
  passdb backend = tdbsam
  map to guest = Bad User
  
  load printers = yes
  cups options = raw
  
[share]
  comment = Public Stuff
  path = /media/ftp-data/MediaContent
  public = yes
  writable = yes
  printable = no
  guest ok = yes

D
dth, 2014-07-28
@dth

samba user has read permissions to /media/ftp-data/MediaContent

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question