nixp.ru v3.0

28 марта 2024,
четверг,
20:52:44 MSK

NTDemon написал 4 марта 2006 года в 17:59 (994 просмотра) Ведет себя неопределенно; открыл 3 темы в форуме, оставил 19 комментариев на сайте.

хотел бы узнать все опции файла Smb.conf

И может кто нибуть подскажт програмки для настройки samba, кроме Swat какие нибудь есть у меня Fedora core!

Genie

а что, в твоей Fedora Core нет man smb.conf ?

почитай его. оно довольно большое…

$ man smb.conf|wc -l
Reformatting smb.conf(5), please wait...
6100

а если его нет, то поищи другой дистрибутив…

NTDemon
Genie
а что, в твоей Fedora Core нет man smb.conf ?

почитай его. оно довольно большое…

$ man smb.conf|wc -l
Reformatting smb.conf(5), please wait...
6100

а если его нет, то поищи другой дистрибутив…

У меня с английским хренова, мнеб этот ман по русски, или книжку где скачать!

DimkaS

А <font color=«blue»>google</font> тебе на что дан? А зайти на <font color=«blue»>www.opennet.ru</font> сам не можешь?

NTDemon
DimkaS
А <font color=«blue»>google</font> тебе на что дан? А зайти на  <font color=«blue»>www.opennet.ru</font> сам не можешь?

Спасиба огромное что ответил! Сейчас посмотрю!

Kud-zu

А вот у меня вопрос по самбо

КАкие есть достойные альтернативы? и есть ли вобще?

fly4life
Kud-zu
А вот у меня вопрос по самбо

КАкие есть достойные альтернативы? и есть ли вобще?

Смотря что тебе от этих альтернатив надо.

NTDemon

Проблемма то у меня во какая, у меня все видиться, все зашарилось! Только проблем а втом что в эту папку я не могу ничо записать по сетке хотя права 777 стоят(всмысле локально изменяю все ОК!), почему такое тоесть проблема где то в сембе! А тут мне подсказали что нужно установить NetBUI! Действительно может надо? У меня ща клиент Micros, служба файлов и принтеров, и TCP/IP стоят!

Kud-zu

2флай: я онли поинтерисовался вопросом

NTDemon

Да походу в этом форуме фантазия иссякла!

NTDemon

Да кстати с виндовой машины когда захожу на linux-овую в свойствах папки вижу галку только для чтения! Почему? Хотя writeable = yes и владелеци все права у этого юзера, локально из под этого юзера все создаю!

fly4life
NTDemon
Да походу в этом форуме фантазия иссякла!

Ты б не на форум ругался, а показал конфиг самбы чтоли.

NTDemon

ОК! Конфиг подкину! но не в конфиге дело мне кажеться!

Genie
Только проблем а втом что в эту папку я не могу ничо записать по сетке хотя права 777 стоят(всмысле локально изменяю все ОК!), почему такое тоесть проблема где то в сембе!

ага… возможно, в том, что для ресурса не указано writable = yes

fly4life
Genie
ага… возможно, в том, что для ресурса не указано writable = yes

Хм.. говорит, что эта опция есть (парой ответами выше). И даже со значением «yes». Хотя, да, конфигурационный файл я бы всё-таки посмотрел.

Genie
fly4life
Хм.. говорит, что эта опция есть (парой ответами выше). И даже со значением «yes». Хотя, да, конфигурационный файл я бы всё-таки посмотрел.

а ты уверен, что там прописана правильная опция? ;))

лично я что-то, сверившись с маном, сильно в этом сомневаюсь.

fly4life
Genie
а ты уверен, что там прописана правильная опция? ;))

лично я что-то, сверившись с маном, сильно в этом сомневаюсь.

Правильная или неправильная — это мы убедимся, когда он конфиг приведёт ;). А то, как он написал эту опцию здесь («writeable = yes»), — верно.

NTDemon

не ребят, конфиг нормальный! Это 100%! Я проблему нашел, а как от нее избавиться я не знаю! Вот захожу я допустим под юзером на комп с Linux (локально), и вижу что та папка к которой я обращаюсь с параветрами владелец-->пользоватеть, и атрибуты все 7! Так вот это локально, а через сеть: я захожу под этим юзером через сеть samba принимает пароли, смотрю права на эту же папку и вижу что владелец root, и все права имеет только он, а юзер имеет право только на чтение! Вот по этому у меня и Writeable=yes и не пишет так как локально у меня одни права, а через сеть совершенно другие! В чем могет быть проблема?

Genie

ну ты хотябы кусочек конфига для ресурса этого покажи, а?

мы тебе что, тебепаты, чтобы прочитать этот твой конфиг на твоём компе?

и надо ли оно нам, если мы не телепаты, идти к оным, чтобы узнать этот твой конфиг?

ну, долго будешь ещё из себя недотрогу строить?

я понимаю, чтотебе хочется разобраться. разбирайся либо сам, либо предоставляй ту инфу, которую спрашивают.

NTDemon

народ а можно с кем нить пообщаться в реальном времени? Мой ICQ 4333878, в течении рабочего времени, точнее в будни всегда в on-line! А то с форумом я эту херню долго разгребать буду!

fly4life
NTDemon
народ а можно с кем нить пообщаться в реальном времени? Мой ICQ 4333878, в течении рабочего времени, точнее в будни всегда в on-line! А то с форумом я эту херню долго разгребать буду!

Нда. Нечасто такие трудные попадаются. Если ты и в ICQ будешь также страдать хернёй, то и там «долго разгребать будешь». Или ты думаешь, что при общении «в реальном времени» можно будет понять твои нечленораздельные вопросы и без конфигурационного файла самбы? Да?! Ты ещё глупее, чем кажешься.

Хотя… я могу взяться за решение твоей проблемы с любыми предоставленными тобой данными (хочешь, с конфигами, хочешь — без). $75/час. Оплата перед каждым часом. Если тебя так устраивает, то номер кошелька скажу по ICQ, номер которой ты найдёшь на 'about’-странице данного форума.

Genie

чтобы не повторяться: NTDaemon, прочти

да и всю тему не помешает.

NTDemon

[global]

# workgroup = NT-Domain-Name or Workgroup-Name

workgroup = OFFICE

# server string is the equivalent of the NT Description field

server string =

# This option is important for security. It allows you to restrict

# connections to machines which are on your local network. The

# following example restricts access to two C class networks and

# the «loopback» interface. For more examples of the syntax see

# the smb.conf man page

hosts allow = 192.168.42. 192.168.2. 192.

# if you want to automatically load your printer list rather

# than setting them up individually then you’ll need this

printcap name = /etc/printcap

NTDemon

# It should not be necessary to spell out the print system type unless

# yours is non-standard. Currently supported print systems include:

# bsd, sysv, plp, lprng, aix, hpux, qnx

; printing = cups

# This option tells cups that the data has already been rasterized

cups options = raw

# Uncomment this if you want a guest account, you must add this to /etc/passwd

# otherwise the user «nobody» is used

; guest account = pcguest

# this tells Samba to use a separate log file for each machine

# that connects

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

# all log information in one file

# log file = /var/log/samba/log.smbd

# Put a capping on the size of the log files (in Kb).

max log size = 50

# Security mode. Most people will want user level security. See

# security_level.txt for details.

security = user

# Use password server option only with security = server

; password server =

# Password Level allows matching of n characters of the password for

# all combinations of upper and lower case.

; password level = 8

; username level = 8

NTDemon

# You may wish to use password encryption. Please read

# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.

# Do not enable this option unless you have read those documents

encrypt passwords = yes

; smb passwd file = /etc/samba/smbpasswd

# The following are needed to allow password changing from Windows to

# update the Linux system password also.

# NOTE: Use these with 'encrypt passwords' and ’smb passwd file' above.

# NOTE2: You do NOT need these to allow workstations to change only

# the encrypted SMB passwords. They allow the Unix password

# to be kept in sync with the SMB password.

; 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

# Unix users can map to different SMB User names

; username map = /etc/samba/smbusers

# Using the following line enables you to customise your configuration

# on a per machine basis. The %m gets replaced with the netbios name

# of the machine that is connecting

; include = /etc/samba/smb.conf.%m

# Most people will find that this option gives better performance.

# See speed.txt and the manual pages for details

socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192

# Configure Samba to use multiple interfaces

# If you have multiple network interfaces then you must list them

# here. See the man page for details.

interfaces = 192.168.42.

# Configure remote browse list synchronisation here

# request announcement to, or browse list sync from:

# a specific host or from / to a whole subnet (see below)

; remote browse sync = 192.168.3.25 192.168.5.255

# Cause this host to announce itself to local subnets here

; remote announce = 192.168.1.255 192.168.2.44

# Browser Control Options:

# set local master to no if you don’t want Samba to become a master

# browser on your network. Otherwise the normal election rules apply

; local master = no

# OS Level determines the precedence of this server in master browser

# elections. The default value should be reasonable

; os level = 33

# Domain Master specifies Samba to be the Domain Master Browser. This

# allows Samba to collate browse lists between subnets. Don’t use this

# if you already have a Windows NT domain controller doing this job

; domain master = yes

# Preferred Master causes Samba to force a local browser election on startup

# and gives it a slightly higher chance of winning the election

; preferred master = yes

# Enable this if you want Samba to be a domain logon server for

# Windows95 workstations.

; domain logons = yes

NTDemon

# if you enable domain logons then you may want a per-machine or

# per user logon script

# run a specific logon batch file per workstation (machine)

; logon script = %m.bat

# run a specific logon batch file per username

; logon script = %U.bat

# Where to store roving profiles (only for Win95 and WinNT)

# %L substitutes for this servers netbios name, %U is username

# You must uncomment the [Profiles] share below

; logon path = \\%L\Profiles\%U

# All NetBIOS names must be resolved to IP Addresses

# 'Name Resolve Order' allows the named resolution mechanism to be specified

# the default order is «host lmhosts wins bcast». «host» means use the unix

# system gethostbyname() function call that will use either /etc/hosts OR

# DNS or NIS depending on the settings of /etc/host.config, /etc/nsswitch.conf

# and the /etc/resolv.conf file. «host» therefore is system configuration

# dependant. This parameter is most often of use to prevent DNS lookups

# in order to resolve NetBIOS names to IP Addresses. Use with care!

# The example below excludes use of name resolution for machines that are NOT

# on the local network segment

# — OR — are not deliberately to be known via lmhosts or via WINS.

; name resolve order = wins lmhosts bcast

# Windows Internet Name Serving Support Section:

# WINS Support — Tells the NMBD component of Samba to enable it’s WINS Server

; wins support = yes

# WINS Server — Tells the NMBD components of Samba to be a WINS Client

# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both

; wins server = w.x.y.z

# WINS Proxy — Tells Samba to answer name resolution queries on

# behalf of a non WINS capable client, for this to work there must be

# at least one WINS Server on the network. The default is NO.

; wins proxy = yes

# DNS Proxy — tells Samba whether or not to try to resolve NetBIOS names

# via DNS nslookups. The built-in default for versions 1.9.17 is yes,

# this has been changed in version 1.9.18 to no.

dns proxy = no

idmap uid = 16777216-33554431

idmap gid = 16777216-33554431

username map = /etc/samba/smbusers

restrict anonymous = no

domain master = no

preferred master = no

netbios name = Linux

max protocol = NT

ldap ssl = No

server signing = Auto

; encrypt passwords = yes

; guest ok = no

; guest account = nobody

;[homes]

; comment = Home Directories

; browseable = no

; writeable = yes

# Un-comment the following and create the netlogon directory for Domain Logons

; [netlogon]

; comment = Network Logon Service

; path = /home/netlogon

NTDemon

; 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 = /home/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 = /var/spool/samba

browseable = no

# Set public = yes to allow user 'guest account' to print

; guest ok = no

; writeable = no

printable = yes

# This one is useful for people to share files

;[tmp]

; comment = Temporary file space

; path = /tmp

; read only = no

; public = yes

# A publicly accessible directory, but read only, except for people in

# the «staff» group

;[public]

; comment = Public Stuff

; path = /home/samba

; public = yes

; read only = yes

; 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

[localtemp]

path = /temp/localtemp

writeable = yes

case sensitive = no

msdfs proxy = no

browseable = yes

valid users = user1

fly4life

Хм. Показывай вывод команды:

ls -l /temp | grep localtemp
NTDemon

нашел проблему, говорю же что не в самбе и правах дело …не первый год жиыу! Оказалось что я с firewall SELinux лоханулся он и не давал мне запись и изменение!

Genie

нашёл? рассказывай.

мало ли, вдруг какое поколение на эти самые грабли наступит… ;)

NTDemon

Ну простосто когда я устанавливал Fedore Core там при установке есть этап с брандмауэром и вот у меня были оба включены, там изх два обычнуй линуксовый и SELinux, последний и не давал мне по сетке изменять данные, т.е. права на папку одни а через сетку захожу то вижу другие параметры, настраивать я его не стал пока время нет, просто отключил этот SELinux нафиг, надо будет потом разобраться с ним кстати вот такая история! А мне тут решение за 75$ час предлагают! :-) Уж за бабки я как нить сам! Но недели две мучался с самбой, а проблема не в ней оказалась, я до этого форума человекам 10 отослал всю папку /ets/samba/ и все говорили что все рабочее, переустанови самбу или Linux! Ва время настройки самбы 4 раза переустановил Linux! То Sambu проапдейтить решу, не апдейтиться говорит что зависимости, принудительно, потом вааще не грузиться короче убивал линуху насмерть!

Спасибо ребят кто отозвался и принял в этом участие! Кроме fly4life который $75/час.

Последние комментарии

ecobeingecobeing.ru
Экология и вегетарианство на благо всем живым существам Планеты.