Gå til innhold

Smb.conf - debian


Joakim87

Anbefalte innlegg

Heisann

 

Jeg skal sette opp en bilde server hjemme, med et mappe for hver bruker og en felles mappe...

Når man logger inn skal man altså få tilgang til sin mappe (Område) og felles mappen(område).

 

Men når man logger inn så får man tilgang til sin egen mappe men IKKE felles mappen, feil meldingen lyder som følger:

" \\debianserver\Felles is not accessible. You might not have permission to use this network resource, bla bla bla, Network accsess is denied"

 

min smb.conf ser ut som følger:

 

[global]

# The domain name

workgroup = Idunsvei

 

# The server's name

netbios name = debianserver

 

# Comment describing what the machine is

server string = debianserver

 

# Workstations will set their time by this server

time server = yes

 

# SECURITY AND LOGGING SETTINGS

 

this must be 'user' on a PDC

security = user

 

# Allow connections only from the local machine and the 10.0.0.* address range:

# (you'll want to change this if your network uses a different addressing range)

hosts allow = 127.0.0.1 192.168.0.

 

# Don't allow connections from any other IP address ranges than defined by 'hos$

hosts deny 0.0.0.0/0

 

# Only allow connections from ethernet cards and the loopback address:

interfaces = eth* lo

bind interfaces only = yes

 

# For Windows 2000/XP encrypted passwords

encrypt passwords = yes

 

# Provide logon scripts, home directories, etc as well as authentication

domain logons = yes

 

log file = /var/log/samba/log.%m

 

# log level = 2

 

# Put a capping on the size (in kB) of the log file

max log size = 100

 

# PDC and master browser settings

os level = 64 ; ensure this machine is consulted 1st regarding current browse l$

preferred master = yes

local master = yes

domain master = yes ; This defines it as the Primary Domain Controller

 

# User profiles and home directory.

# the local path to which the home ([HOMES]) directory will be connected

logon drive = H:

 

# Where 'profiles' = [profiles] further on

logon path = \\%L\profiles\%U

 

logon script = netlogon.bat ; the logon script, whose location is defined in [N$

 

# Define user mappings between this system and Windows systems.

# Without this you get asked for a password even if none is required

# username map = /etc/samba/users.map

# but if you've created SMB users on here you don't need it

 

# Fine-tuning Samba for increased speed on Linux systems

# SO_KEEPALIVE - sends a probe every 4 hours to check that a connection is stil$

# TCP_NODELAY -

# IPTOS_LOWDELAY -

# SO_SNDBUF=14596 - 14596 is roughly the best in most ciscumstances, it may be $

# SO_RCVBUF=14596 - same reason as above

socket options = TCP_NODELAY, IPTOS_LOWDELAY, SO_KEEPALIVE, SO_SNDBUF=14596, SO$

 

# Keep the case in file/directory names; when looking for a file

# matching is done without regard to case, as expected by Windows

preserve case = yes

short preserve case = yes

case sensitive = no

 

# (allows users to change their passwords)

unix password sync = yes

pam password change = yes

 

 

# --- shares ---

 

[profiles]

comment = Windows user profile directories

path = /home/samba/profiles

read only = no

browseable = no

create mode = 0600 ; rwx-xxx-xxx - only the user can read/write files

directory mode = 0700 ; rwx-xxx-xxx - directories must be executable if they ar$

 

[root]

# For administration purposes

path = /

browseable = yes

writeable = yes

valid users = joakim

 

 

[homes]

# 'logon drive' won't work without this section

 

# If you want to set the home directory somewhere other than the Unix home:

# path =

 

volume = HOME

comment = home directories

read only = no

# Don't display a 'homes' share as well as the '%U' share

browseable = no

public = no

create mode = 0750

 

[Felles]

path = /home/samba/

browseable = yes

writeable = yes

valid users = joakim, inger, jon, mie

 

 

[NETLOGON]

# Required for Windows authentication

 

comment = The domain logon service

path = /home/netlogon

read only = yes

# 'read only' can be changed to 'no' whilst you edit this file

# but revert back to 'yes' for normal secure operation

browseable = no

write list = @admins

 

 

Noen som kan hjelpe meg slik at allusers får accsess til felles?

 

På forhånd takk

Lenke til kommentar
Videoannonse
Annonse

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
×
×
  • Opprett ny...