Re[2]: [Comm] ALT Junior и сеть с ВЫНЬ машинами.

Дмитриев М.Н. =?iso-8859-1?q?dmitriev=2Emsc_=CE=C1_mtu-net=2Eru?=
Чт Авг 7 15:50:51 MSD 2003


Hello Mihail,

Thursday, August 7, 2003, 1:46:04 PM, you wrote:
MM> smb.conf - в студию
Вот он родимый:

#======================= Global Settings =====================================
[global]

# 1. Server Naming Options:
    workgroup = ALTDOMAIN
 ;  netbios name = <name_of_this_server>
     server string =  Samba server on %h (v. %v)
  ; message command = /usr/bin/linpopup "%f" "%m" %s; rm %s
# 2. Printing Options:
    printcap name = lpstat
   load printers = yes
    printing = cups
;   printer admin = @adm
# 3. Logging Options:
   log file = /var/log/samba/log.%m
   max log size = 50
; log level = 3
# 4. Security and Domain Membership Options:
;   hosts allow = 192.168.1. 192.168.2. 127.
;  guest account = pcguest
   security = user
;   password server = <NT-Server-Name>
;   password server = *
;  password level = 8
;  username level = 8
  encrypt passwords = yes
  smb passwd file = /etc/samba/smbpasswd
;  unix password sync = Yes
;  passwd program = /usr/bin/passwd %u
;  passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n
;*passwd:*all*authentication*tokens*updated*successfully*
;  username map = /etc/samba/smbusers
 ;   include = /etc/samba/smb.conf.%m
 ;  winbind uid = 10000-20000
;  winbind gid = 10000-20000
;  winbind separator = +
;  winbind use default domain = True
;  template homedir = /home/%D/%U
;  template shell = /bin/bash

# 5. Browser Control and Networking Options:
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
;   interfaces = 192.168.12.2/24 192.168.13.2/24
;   remote browse sync = 192.168.3.25 192.168.5.255
;   remote announce = 192.168.1.255 192.168.2.44
;   local master = no
;   os level = 33
;   domain master = yes
;   preferred master = yes
# 6. Domain Control Options:
;   domain logons = yes
;   logon script = %m.bat
;   logon script = %U.bat
;   logon path = \\%L\Profiles\%U
 ; logon home = \\%L\%U\.profile
; add user script = /usr/sbin/useradd -d /dev/null -g machines -c 'Machine Account' -s /bin/false -M %u
; add user script = /usr/sbin/useradd -s /bin/false %u
# Domain groups:
; domain admin group = root @wheel
; domain guest group = nobody @guest
# 7. Name Resolution Options:
; name resolve order = wins lmhosts bcast
;   wins support = yes
;   wins server = w.x.y.z
;   wins proxy = yes
   dns proxy = no
# 8. File Naming Options:
;  preserve case = no
;  short preserve case = no
;  default case = lower
 ;  case sensitive = no
 ;   client code page = 866
;   character set = KOI8-R


#============================ Share Definitions ==============================
[homes]
   comment = Home Directory for '%u'
   browseable = yes
   writable = yes
; [netlogon]
;   comment = Network Logon Service
;   path = /var/lib/samba/netlogon
;   guest ok = yes
;   writable = no
;root preexec = /usr/bin/ntlogon -u %U -g %G -o %a -d /var/lib/samba/netlogon
;root postexec = rm -f /var/lib/samba/netlogon/%U.bat
;[Profiles]
;    path = /var/lib/samba/profiles
;    browseable = no
;    guest ok = yes

[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
   guest ok = yes
   writable = no
   printable = yes
   create mode = 0700
   print command = lpr-cups -P %p -o raw %s -r   # using client side printer drivers.
;   print command = lpr-cups -P %p %s # using cups own drivers (use generic PostScript on clients).
 ;   lpq command = lpq -P %p
;   lprm command = cancel %p-%j
[print$]
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   write list = @adm root
 ;[tmp]
;   comment = Temporary file space
;   path = /tmp
;   read only = no
;   public = yes
;[public]
;   comment = Public Stuff
;   path = /home/samba/public
;   public = yes
;   writable = no
;   write list = @staff
;[fredsprn]
;   comment = Fred's Printer
;   valid users = fred
;   path = /homes/fred
;   printer = freds_printer
;   public = no
;   writable = no
;   printable = yes
;[fredsdir]
;   comment = Fred's Service
;   path = /usr/somewhere/private
;   valid users = fred
;   public = no
;   writable = yes
;   printable = no
;[pchome]
;  comment = PC Directories
;  path = /usr/pc/%m
;  public = no
;  writable = yes
[public]
   path = /mnt/windows
   public = yes
   only guest = yes
   writable = yes
   printable = no
 [myshare]
   comment = Mary's and Fred's stuff
   path = /mnt/windows
;   valid users = mary fred
   public = yes
   writable = yes
   printable = no
   create mask = 0765
  



-- 
Best regards,
 Дмитриев                            mailto:dmitriev.msc на mtu-net.ru




Подробная информация о списке рассылки community