Форум русскоязычного сообщества Ubuntu


Следите за новостями русскоязычного сообщества Ubuntu в Twitter-ленте @ubuntu_ru_loco

Автор Тема: SAMBA  (Прочитано 926 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн streem

  • Автор темы
  • Новичок
  • *
  • Сообщений: 3
    • Просмотр профиля
SAMBA
« : 06 Марта 2008, 12:55:13 »
Добрый День!
У меня сеть (домен), установил Ubuntu поднял Samba.
Можно ли получить доступ к ресурсам на Ubuntu не вводя его в домен? 

Оффлайн Brun

  • Любитель
  • *
  • Сообщений: 59
    • Просмотр профиля
Re: SAMBA
« Ответ #1 : 06 Марта 2008, 13:08:49 »
Можно. Вот пример
root@fileserver:/home/samba/admin# cat /etc/samba/smb.conf
# Samba config file created using SWAT
# from 192.168.1.26 (192.168.1.26)
# Date: 2008/02/13 17:59:17

[global]
        workgroup = WORKGROUP
        realm = WORKGROUP
        server string = Brun`s FileServer

[student]
        comment = student`s share folder
        path = /home/samba/student
        read only = No

[teachers]
        path = /home/samba/teacher
        invalid users = stud
        valid users = teacher
        read only = No

[admin]
        path = /home/samba/admin
        invalid users = stud, teacher
        valid users = admins
        admin users = admins
        write list = admins
        read only = No
Доступ по паролям. Для каждого свои папки для доступа =)

Оффлайн streem

  • Автор темы
  • Новичок
  • *
  • Сообщений: 3
    • Просмотр профиля
Re: SAMBA
« Ответ #2 : 06 Марта 2008, 14:47:23 »
#======================= Global Settings =======================

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = REG
   netbios name = Linux
   interfaces = eth0 192.168.4.7/24
   security = user

   hosts allow = 192.168.4.
# server string is the equivalent of the NT Description field
   server string = %h server (Samba, Ubuntu)


;   wins server = w.x.y.z

;   name resolve order = lmhosts host wins bcast

#### Networking ####


;   bind interfaces only = true



#### Debugging/Accounting ####

   max log size = 1000

;   syslog only = no



####### Authentication #######

# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.
   

# You may wish to use password encryption.  See the section on
# 'encrypt passwords' in the smb.conf(5) manpage before enabling.
   encrypt passwords = true
   ;smb passwd file=/etc/samba/smbpasswd
# If you are using encrypted passwords, Samba will need to know what
# password database type you are using. 
   passdb backend = tdbsam

   obey pam restrictions = yes

   guest account = nobody
   invalid users = root
   client code page=866
   character set = utf8
   map to guest = bad user

;   unix password sync = no

   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .

;   pam password change = no

########## Domains ###########

#
   domain logons = yes
#
;   logon path = \\%N\profiles\%U
;   logon path = \\%N\%U\profile

;   logon drive = H:
;   logon home = \\%N\%U


;   logon script = logon.cmd

; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u



   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_RNDBUF=8192

# The following parameter is useful only if you have the linpopup package
# installed. The samba maintainer and the linpopup maintainer are
# working to ease installation and configuration of linpopup and samba.
;   message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &

   domain master = auto

# Some defaults for winbind (make sure you're not using the ranges
# for something else.)
;   idmap uid = 10000-20000
;   idmap gid = 10000-20000
;   template shell = /bin/bash

#======================= Share Definitions =======================

;[profiles]
;   comment = Users profiles
;   path = /home/samba/profiles
;   guest ok = no
;   browseable = no
;   create mask = 0600
;   directory mask = 0700

[printers]smbpasswd
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   public = no
   writable = no
   create mode = 0700

;   write list = root, @ntadmin

# A sample share for sharing your CD-ROM with others.
;[cdrom]
;   comment = Samba server's CD-ROM
;   writable = no
;   locking = no
;   path = /cdrom
;   public = yes

# The next two parameters show how to auto-mount a CD-ROM when the
#   cdrom share is accesed. For this to work /etc/fstab must contain
#   an entry like this:
#
#       /dev/scd0   /cdrom  iso9660 defaults,noauto,ro,user   0 0
#
# The CD-ROM gets unmounted automatically after the connection to the
#
# If you don't want to use auto-mounting/unmounting make sure the CD
#   is mounted on /cdrom
#
;   preexec = /bin/mount /cdrom
;   postexec = /bin/umount /cdrom
   

[public]
comment=Public Directory
path= /var/samba
read only= no
writeable= yes
guest ok= yes
browseable= yes
valid users = neo

не получается где ошибка?

 

Страница сгенерирована за 0.025 секунд. Запросов: 20.