Компьютерный форум OSzone.net  

Компьютерный форум OSzone.net (http://forum.oszone.net/index.php)
-   Программное обеспечение Linux и FreeBSD (http://forum.oszone.net/forumdisplay.php?f=11)
-   -   Linux сервер! (http://forum.oszone.net/showthread.php?t=85604)

voler 19-06-2007 12:54 601229

Linux сервер!
 
Решено в небольшой организации win2003 заменить на сервер Linux, задачи сервера это файловый и интернет раздатчик.

Win 2003 на первых парах решено оставить как мастер, но потом linux сервак после обкатки нужно сделать master, т.е. первичным контролером.

Посоветуйте как лучше сконфигурировать samba, и другие нужные службы Linux сервера.

Дистрибутив Fedora 6.




Flick 19-06-2007 13:26 601240

http://www.opennet.ru/base/net/ldap_spama_pdc.txt.html

Может вот это подойдет

voler 19-06-2007 15:00 601304

Если я правильно понял, это конфигурация статья рассказывает, а том как сконфигурировать Linux сервер как первичный контролер?

Меня на данный момент интересует больше как второстепенный.

Flick 19-06-2007 15:30 601325

А какая версия самбы у вас работает?

voler 19-06-2007 16:19 601358

3.0.23C стоит пока, така я возможно я ее обновлю в скором времени.

Мой файл конфигурации samba.
После перезагрузки сервер Linux видит сеть, но когда заходит на шару просит ввести логин и пароль.
Windows машины не видят Linux сервер.

После правки smb.conf в консоли набрал net join ads -W zevs -S server -n учетка -p пароль
Вошел в домен.

Жду ваших комментариев. Все тестирую на VMware Workstation

smb.conf
HTML код:

[global]
 workgroup = zevs
 server string = Samba Server
 security = domain
;hosts allow = 192.168.1. 192.168.2. 127.
 load printers = yes
;printcap name = /etc/printcap
;printcap name = lpstat
;printing = cups
;cups options = raw
;guest account = pcguest
log file = /var/log/samba/%m.log
max log size = 50
password server = server
admin users = admin vsinyaev
;realm = MY_REALM
;passdb backend = tdbsam
;include = /usr/local/samba/lib/smb.conf.%m
;interfaces = eth0
;local master = no
;os level = 33
;domain master = yes
;preferred master = yes
;domain logons = yes
;logon script = %m.bat
;logon script = %U.bat
;logon path = \\%L\Profiles\%U
;wins support = yes
;wins server = w.x.y.z
;wins proxy = yes
dns proxy = no
;add user script = /usr/sbin/useradd %u
;add group script = /usr/sbin/groupadd %g
;add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
;delete user script = /usr/sbin/userdel %u
;delete user from group script = /usr/sbin/deluser %u %g
;delete group script = /usr/sbin/groupdel %g


#============================ Share Definitions ==============================
[homes]
  comment = Home Directories
  browseable = no
  writable = yes

# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
;  comment = Network Logon Service
;  path = /usr/local/samba/lib/netlogon
;  guest ok = yes
;  writable = no
;  share modes = no


# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;[Profiles]
;    path = /usr/local/samba/profiles
;    browseable = no
;    guest ok = yes


# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
  comment = All Printers
  path = /usr/spool/samba
  browseable = no
# Set public = yes to allow user 'guest account' to print
  guest ok = no
  writable = no
  printable = yes

#This one is useful for people to share files
[tmp]
comment = Temporary file space
path = /tmp
;read only = no
public = yes
browseable = yes
writeable = yes

# A publicly accessible directory, but read only, except for people in
# the "staff" group
;[public]
;  comment = Public Stuff
;  path = /home/samba
;  public = yes
;  writable = yes
;  printable = no
;  write list = @staff

# Other examples.
#
# A private printer, usable only by fred. Spool data will be placed in fred's
# home directory. Note that fred must have write access to the spool directory,
# wherever it is.
;[fredsprn]
;  comment = Fred's Printer
;  valid users = fred
;  path = /homes/fred
;  printer = freds_printer
;  public = no
;  writable = no
;  printable = yes

# A private directory, usable only by fred. Note that fred requires write
# access to the directory.
;[fredsdir]
;  comment = Fred's Service
;  path = /usr/somewhere/private
;  valid users = fred
;  public = no
;  writable = yes
;  printable = no

# a service which has a different directory for each machine that connects
# this allows you to tailor configurations to incoming machines. You could
# also use the %U option to tailor it by user name.
# The %m gets replaced with the machine name that is connecting.
;[pchome]
;  comment = PC Directories
;  path = /usr/pc/%m
;  public = no
;  writable = yes

# A publicly accessible directory, read/write to all users. Note that all files
# created in the directory by users will be owned by the default user, so
# any user with access can delete any other user's files. Obviously this
# directory must be writable by the default user. Another user could of course
# be specified, in which case all files would be owned by that user instead.
;[public]
;  path = /usr/somewhere/else/public
;  public = yes
;  only guest = yes
;  writable = yes
;  printable = no

# The following two entries demonstrate how to share a directory so that two
# users can place files there that will be owned by the specific users. In this
# setup, the directory should be writable by both users and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.
;[myshare]
;  comment = Mary's and Fred's stuff
;  path = /usr/somewhere/shared
;  valid users = mary fred
;  public = no
;  writable = yes
;  printable = no
;  create mask = 0765



Flick 19-06-2007 17:05 601381

М-дя я в растерянности . но лучшее что могу вот

http://samba.rediska.ru/samba/docs/m...samba-bdc.html

подробненько все так.


Время: 23:53.

Время: 23:53.
© OSzone.net 2001-