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


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

Автор Тема: Ubuntu перестал видеться в сети Windows  (Прочитано 1566 раз)

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

Оффлайн olex1984

  • Автор темы
  • Новичок
  • *
  • Сообщений: 18
    • Просмотр профиля
Ubuntu перестал видеться в сети Windows
« : 02 Сентября 2010, 12:30:25 »
Решил вступить в сообщество Ubuntu Linux.  ;) Снес Windows. Установил ubuntu 10.4.  Не нарадуюсь. Пока что все траблы решал, не без помощи данного ресурса конечно  :). Но вот проблема и решить не могу. С машины под Windows пытаюсь увидеть шары и вот что выдает Windows "не наиден сетевой путь \\192.168.10.xxx". А ведь сначала все работало пока я не установил GADMIN-SAMBA и вроде я только по вносил туда шары(точно щас не вспомню). И вот теперь не могу увидеть свою машину в сети. Уже и конфиги smb.conf пробовал - здесь выкладывали. но все безтолку.
P.S. : IP пингуется. по ftp и http доступ есть - все нормально. И сама Ubuntu все винловые шары видит нормально. Помогите люди !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Перехожу c окон на Ubuntu

Оффлайн fisher74

  • Заслуженный пользователь
  • Старожил
  • *
  • Сообщений: 13761
    • Просмотр профиля
Re: Ubuntu перестал видеться в сети Windows
« Ответ #1 : 02 Сентября 2010, 12:41:48 »
Ну тогда свой конфиг показывай.

Оффлайн olex1984

  • Автор темы
  • Новичок
  • *
  • Сообщений: 18
    • Просмотр профиля
Re: Ubuntu перестал видеться в сети Windows
« Ответ #2 : 02 Сентября 2010, 13:03:40 »
Вот, я уже с ним сам игрался  :) так что может вобще смеяться будете, ну уж сжальтесь над новичком.

[global] # общие настройки
   
        workgroup = SERVER #рабочая группа
        server string = server
        bind interfaces only = yes
        interfaces = eth0 192.168.0.1 # привязывает к конкретным интерфейсам
       # hosts deny = ALL
        hosts allow = 192.168.0.0/24 127.0.0.1 # пускает только конкретные IP #адреса с сетки
        security = share
        encrypt passwords = true
        socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
        local master = yes
        preferred master = yes
        domain master = no
        wins support = no
        dns proxy = no
        guest ok = yes
        guest account = nobody
        unix charset = utf8
        dos charset = cp1251
        display charset = cp1251

   [foto] # это настройки конкретного расшаренного каталога

   writeable = yes
   path = /home/files/foto
   strict locking = yes
   force directory mode = 777
   force group = users
   force create mode = 777
   comment = Server
   browsable = yes
   create mode = 777
   directory mode = 777

Пользователь решил продолжить мысль 02 Сентября 2010, 13:05:39:
А вот который был изначально с GADMIN-SAMBA


[global]
netbios name = oleg
server string = Samba file and print server
workgroup = Workgroup
security = user
hosts allow = 127. 192.168.0.
interfaces = 127.0.0.1/8 192.168.0.0/24
bind interfaces only = yes
remote announce = 192.168.0.255
remote browse sync = 192.168.0.255
printcap name = cups
load printers = yes
cups options = raw
printing = cups
guest account = smbguest
log file = /var/log/samba/samba.log
max log size = 1000
null passwords = no
username level = 6
password level = 6
encrypt passwords = yes
unix password sync = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
local master = no
domain master = no
preferred master = no
domain logons = no
os level = 33
logon drive = m:
logon home = \%Lhomes\%u
logon path = \%Lprofiles\%u
logon script = %G.bat
time server = no
name resolve order = wins lmhosts bcast
wins support = no
wins proxy = no
dns proxy = no
preserve case = yes
short preserve case = yes
client use spnego = no
client signing = no
client schannel = no
server signing = no
server schannel = no
nt pipe support = yes
nt status support = yes
allow trusted domains = no
obey pam restrictions = yes
enable spoolss = yes
client plaintext auth = no
disable netbios = no
follow symlinks = no
update encrypted = yes
pam password change = no
passwd chat timeout = 120
hostname lookups = no
username map = /etc/samba/smbusers
smb passwd file = /etc/samba/smbpasswd
passwd program = /usr/bin/passwd '%u'
passwd chat = *New*password* %n
 *ReType*new*password* %n
 *passwd*changed*

add user script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null '%u'
add user to group script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null -g '%g' '%u'
add group script = /usr/sbin/groupadd '%g'
delete user script = /usr/sbin/userdel '%u'
delete user from group script = /usr/sbin/userdel '%u' '%g'
delete group script = /usr/sbin/groupdel '%g'
add machine script = /usr/sbin/useradd -d /dev/null -g sambamachines -c 'Samba Machine Account' -s /dev/null -M '%u'
machine password timeout = 120
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /dev/null
winbind use default domain = yes
winbind separator = @
winbind cache time = 360
winbind trusted domains only = yes
winbind nested groups = no
winbind nss info = no
winbind refresh tickets = no
winbind offline logon = no

[homes]
comment = Home Directories
path = /home
read only = no
available = yes
browseable = yes
writable = yes
guest ok = no
public = no
printable = no
locking = no
strict locking = no

[netlogon]
comment = Network Logon Service
path = /home/netlogon
read only = no
available = yes
browseable = yes
writable = no
guest ok = no
public = no
printable = no
locking = no
strict locking = no

[profiles]
comment = User Profiles
path = /var/samba/profiles
read only = no
available = yes
browseable = no
writable = yes
guest ok = no
public = no
printable = no
create mode = 0600
directory mask = 0700
locking = no
strict locking = no

[printers]
comment = All Printers
path = /var/spool/samba
browseable = yes
writable = no
guest ok = no
public = no
printable = yes
locking = no
strict locking = no

[pdf-documents]
path = /home/pdf-documents
comment = Converted PDF Documents
available = yes
browseable = yes
writeable = yes
guest ok = yes
locking = no
strict locking = no

[pdf-printer]
path = /tmp
comment = PDF Printer Service
printable = yes
guest ok = yes
use client driver = yes
printing = bsd
print command = /usr/bin/gadmin-samba-pdf %s %u
lpq command =
lprm command =

[soft]
path = /media/Distr/soft
comment = No comment
read only = no
available = yes
browseable = yes
writable = no
guest ok = no
public = no
printable = no
locking = no
strict locking = no


Пользователь решил продолжить мысль 02 Сентября 2010, 15:49:22:
Прошу прощения. Действительно сам затупил. Сам маску не ту поставил да и сеть. Вобщем закоментировал строчки:
#interfaces = eth0 192.168.0.1 # привязывает к конкретным интерфейсам
# hosts deny = ALL
#hosts allow = 192.168.0.0/24 127.0.0.1 # пускает только конкретные IP #адреса с сетки
и все пошло.

P.S. : почему для перезапуска самбы в нете везде пишут команду /etc/init.d/samba restart (там же и start и т.д.) А вот у меня в ну нет такой команды ругается консоль. Ну не может же нет врать, ну и я вроде тоже набираю правильно. Кто подскажет что не так?

@desktop:~$ sudo -i
root@desktop:~# /etc/init.d/samba restart
-bash: /etc/init.d/samba: Нет такого файла или каталога
root@desktop:~# /etc/init.d/smbd restart
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service smbd restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart smbd
smbd start/running, process 6791
root@desktop:~#


А вобще всем СПАСИБО !!!!!!!!!!!!!!!!!!!!
« Последнее редактирование: 02 Сентября 2010, 15:49:23 от olex1984 »
Перехожу c окон на Ubuntu

Оффлайн gmz

  • Новичок
  • *
  • Сообщений: 36
    • Просмотр профиля
Re: Ubuntu перестал видеться в сети Windows
« Ответ #3 : 02 Сентября 2010, 16:44:43 »
sudo service smbd restart

Оффлайн olex1984

  • Автор темы
  • Новичок
  • *
  • Сообщений: 18
    • Просмотр профиля
Re: Ubuntu перестал видеться в сети Windows
« Ответ #4 : 03 Сентября 2010, 07:16:05 »
Спасибо !!!!!!!!!!
Перехожу c окон на Ubuntu

 

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