LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   need help with samba-windoz network (https://www.linuxquestions.org/questions/fedora-35/need-help-with-samba-windoz-network-606136/)

cuda 12-11-2007 04:57 PM

need help with samba-windoz network
 
I just installed fedora 8 (had fc7)
now I cant connect to my windoz machines it worked fine with fedora 7

Glennzo 12-11-2007 05:53 PM

Make sure smb and nmb are started in system services.

cuda 12-12-2007 12:50 PM

its running

Glennzo 12-12-2007 01:04 PM

What do these get you? (press enter when prompted for password)
smbclient -L <nameofwindowscomputer>
Mine:
[glenn@toshiba ~]$ smbclient -L dad
Password:
Anonymous login successful
Domain=[JOHNSON] OS=[Unix] Server=[Samba 3.0.27a-0.fc8]

Sharename Type Comment
--------- ---- -------
homes Disk Home Directories
temp Disk Public Stuff
IPC$ IPC IPC Service (Samba Server Version 3.0.27a-0.fc8)
Anonymous login successful
Domain=[JOHNSON] OS=[Unix] Server=[Samba 3.0.27a-0.fc8]

Server Comment
--------- -------
DAD Samba Server Version 3.0.27a-0.fc8
LONGBOTTOM Neville's Old Computer
TOSHIBA Samba Server Version 3.0.28-0.fc8

Workgroup Master
--------- -------
JOHNSON DAD

smbtree
Mine:
[glenn@toshiba ~]$ smbtree
Password:
JOHNSON
\\TOSHIBA Samba Server Version 3.0.28-0.fc8
\\TOSHIBA\IPC$ IPC Service (Samba Server Version 3.0.28-0.fc8)
\\TOSHIBA\temp Public Stuff
\\LONGBOTTOM Neville's Old Computer
\\LONGBOTTOM\C$ Default share
\\LONGBOTTOM\ADMIN$ Remote Admin
\\LONGBOTTOM\temp
\\LONGBOTTOM\My Pictures
\\LONGBOTTOM\D
\\LONGBOTTOM\C
\\LONGBOTTOM\D$ Default share
\\LONGBOTTOM\IPC$ Remote IPC
\\LONGBOTTOM\My Documents
\\DAD Samba Server Version 3.0.27a-0.fc8
\\DAD\IPC$ IPC Service (Samba Server Version 3.0.27a-0.fc8)
\\DAD\temp Public Stuff
\\DAD\homes Home Directories

cuda 12-13-2007 08:27 AM

[cuda@localhost ~]$ smbclient -L cyclone
Connection to cyclone failed (Error NT_STATUS_BAD_NETWORK_NAME)
[cuda@localhost ~]$


[cuda@localhost ~]$ smbtree
Password:
[cuda@localhost ~]$

I get a whole bunch of nothing

Glennzo 12-13-2007 08:33 AM

Quote:

Originally Posted by cuda (Post 2989383)
[cuda@localhost ~]$ smbclient -L cyclone
Connection to cyclone failed (Error NT_STATUS_BAD_NETWORK_NAME)
[cuda@localhost ~]$


[cuda@localhost ~]$ smbtree
Password:
[cuda@localhost ~]$

I get a whole bunch of nothing

I assume that cyclone is the Windows box? Please post the output of rpm -q samba, chkconfig --list smb and chkconfig --list nmb . Also, have you done any editing to /etc/samba/smb.conf? Are you positive that the Windows folder is shared?

cuda 12-13-2007 11:19 AM

[cuda@localhost ~]$ rpm -q samba, chkconfig --list smb
package samba, is not installed
/etc/alternatives
/etc/init.d
/etc/rc.d/init.d
/etc/rc.d/rc0.d
/etc/rc.d/rc1.d
/etc/rc.d/rc2.d
/etc/rc.d/rc3.d
/etc/rc.d/rc4.d
/etc/rc.d/rc5.d
/etc/rc.d/rc6.d
/etc/rc0.d
/etc/rc1.d
/etc/rc2.d
/etc/rc3.d
/etc/rc4.d
/etc/rc5.d
/etc/rc6.d
/sbin/chkconfig
/usr/sbin/alternatives
/usr/sbin/update-alternatives
/usr/share/doc/chkconfig-1.3.36
/usr/share/doc/chkconfig-1.3.36/COPYING
/usr/share/locale/ar/LC_MESSAGES/chkconfig.mo
/usr/share/locale/as/LC_MESSAGES/chkconfig.mo
/usr/share/locale/be/LC_MESSAGES/chkconfig.mo
/usr/share/locale/bg/LC_MESSAGES/chkconfig.mo
/usr/share/locale/bn/LC_MESSAGES/chkconfig.mo
/usr/share/locale/bn_IN/LC_MESSAGES/chkconfig.mo
/usr/share/locale/bs/LC_MESSAGES/chkconfig.mo
/usr/share/locale/ca/LC_MESSAGES/chkconfig.mo
/usr/share/locale/cs/LC_MESSAGES/chkconfig.mo
/usr/share/locale/cy/LC_MESSAGES/chkconfig.mo
/usr/share/locale/da/LC_MESSAGES/chkconfig.mo
/usr/share/locale/de/LC_MESSAGES/chkconfig.mo
/usr/share/locale/el/LC_MESSAGES/chkconfig.mo
/usr/share/locale/en_GB/LC_MESSAGES/chkconfig.mo
/usr/share/locale/es/LC_MESSAGES/chkconfig.mo
/usr/share/locale/et/LC_MESSAGES/chkconfig.mo
/usr/share/locale/fi/LC_MESSAGES/chkconfig.mo
/usr/share/locale/fr/LC_MESSAGES/chkconfig.mo
/usr/share/locale/gl/LC_MESSAGES/chkconfig.mo
/usr/share/locale/gu/LC_MESSAGES/chkconfig.mo
/usr/share/locale/he/LC_MESSAGES/chkconfig.mo
/usr/share/locale/hi/LC_MESSAGES/chkconfig.mo
/usr/share/locale/hr/LC_MESSAGES/chkconfig.mo
/usr/share/locale/hu/LC_MESSAGES/chkconfig.mo
/usr/share/locale/hy/LC_MESSAGES/chkconfig.mo
/usr/share/locale/id/LC_MESSAGES/chkconfig.mo
/usr/share/locale/is/LC_MESSAGES/chkconfig.mo
/usr/share/locale/it/LC_MESSAGES/chkconfig.mo
/usr/share/locale/ja/LC_MESSAGES/chkconfig.mo
/usr/share/locale/ka/LC_MESSAGES/chkconfig.mo
/usr/share/locale/kn/LC_MESSAGES/chkconfig.mo
/usr/share/locale/ko/LC_MESSAGES/chkconfig.mo
/usr/share/locale/ku/LC_MESSAGES/chkconfig.mo
/usr/share/locale/lo/LC_MESSAGES/chkconfig.mo
/usr/share/locale/lv/LC_MESSAGES/chkconfig.mo
/usr/share/locale/mk/LC_MESSAGES/chkconfig.mo
/usr/share/locale/ml/LC_MESSAGES/chkconfig.mo
/usr/share/locale/mr/LC_MESSAGES/chkconfig.mo
/usr/share/locale/ms/LC_MESSAGES/chkconfig.mo
/usr/share/locale/my/LC_MESSAGES/chkconfig.mo
/usr/share/locale/nb/LC_MESSAGES/chkconfig.mo
/usr/share/locale/nl/LC_MESSAGES/chkconfig.mo
/usr/share/locale/nn/LC_MESSAGES/chkconfig.mo
/usr/share/locale/or/LC_MESSAGES/chkconfig.mo
/usr/share/locale/pa/LC_MESSAGES/chkconfig.mo
/usr/share/locale/pl/LC_MESSAGES/chkconfig.mo
/usr/share/locale/pt/LC_MESSAGES/chkconfig.mo
/usr/share/locale/pt_BR/LC_MESSAGES/chkconfig.mo
/usr/share/locale/ro/LC_MESSAGES/chkconfig.mo
/usr/share/locale/ru/LC_MESSAGES/chkconfig.mo
/usr/share/locale/si/LC_MESSAGES/chkconfig.mo
/usr/share/locale/sk/LC_MESSAGES/chkconfig.mo
/usr/share/locale/sl/LC_MESSAGES/chkconfig.mo
/usr/share/locale/sq/LC_MESSAGES/chkconfig.mo
/usr/share/locale/sr/LC_MESSAGES/chkconfig.mo
/usr/share/locale/sr@Latn/LC_MESSAGES/chkconfig.mo
/usr/share/locale/sv/LC_MESSAGES/chkconfig.mo
/usr/share/locale/ta/LC_MESSAGES/chkconfig.mo
/usr/share/locale/te/LC_MESSAGES/chkconfig.mo
/usr/share/locale/tr/LC_MESSAGES/chkconfig.mo
/usr/share/locale/uk/LC_MESSAGES/chkconfig.mo
/usr/share/locale/ur/LC_MESSAGES/chkconfig.mo
/usr/share/locale/vi/LC_MESSAGES/chkconfig.mo
/usr/share/locale/zh_CN/LC_MESSAGES/chkconfig.mo
/usr/share/locale/zh_TW/LC_MESSAGES/chkconfig.mo
/usr/share/man/man8/alternatives.8.gz
/usr/share/man/man8/chkconfig.8.gz
/usr/share/man/man8/update-alternatives.8.gz
/var/lib/alternatives
package smb is not installed
[cuda@localhost ~]$ chkconfig --list nmb
bash: chkconfig: command not found
[cuda@localhost ~]$

smbd (pid 2349 2334) is running...
so ho could it be running if it isnt installed

cuda 12-13-2007 12:11 PM

samba is installed i didnt change samba in any way an I have 2 windoz boxes and both have shared files they talk to each
other and fc7 did to

jschiwal 12-13-2007 12:27 PM

Check the "workgroup = " line in your smb.conf file. You may not have changed it from the default.
Also, check the samba log. It may give a non-generic error message pinpointing the problem.

You might also want to look at this thread: http://www.linuxquestions.org/questi...pgrade-335899/

Glennzo 12-13-2007 03:40 PM

Each one of those commands were meant to be run one at a time. If samba is not installed then install it with yum install samba. Afterwards, as jschiwal says, edit the workgroup line in /etc/samba/smb.conf. It needs to reflect the name of your workgroup. Then chkconfig --level 35 smb on and chkconfig --level 35 nmb on. Now browse for your windows share. smbtree should also show cyclone.

cuda 12-13-2007 08:10 PM

I did do them one at a time
and the workgroup matches windows
and chkconfig: command not found

[root@localhost cuda]# yum install samba
livna 100% |=========================| 2.1 kB 00:00
fedora 100% |=========================| 2.1 kB 00:00
updates 100% |=========================| 2.3 kB 00:00
Setting up Install Process
Parsing package install arguments
Package samba - 3.0.28-0.fc8.i386 is already installed.
Nothing to do
under system/services/smb and/nmb are running

cuda 12-13-2007 08:14 PM

and smbtree
[cuda@localhost ~]$ smbtree
Password:
WORKGROUP
MYGROUP
\\LOCALHOST Samba Server Version 3.0.28-0.fc8
\\LOCALHOST\IPC$ IPC Service (Samba Server Version 3.0.28-0.fc8)
\\LOCALHOST\Music
\\CYCLONE
cli_start_connection: failed to connect to CYCLONE<20> (0.0.0.0). Error NT_STATUS_BAD_NETWORK_NAME

Glennzo 12-14-2007 03:26 AM

OK, change /etc/samba/smb.conf so the workgroup says whatever your workgroup is. Mine is JOHNSON, my last name. Here's my smb.conf:
Code:

[glenn@toshiba ~]$ cat /etc/samba/smb.conf
#======================= Global Settings =====================================
[global]
        workgroup = JOHNSON
        server string = Samba Server Version %v
        netbios name = TOSHIBA
        log file = /var/log/samba/log.%m
        max log size = 50
        security = user

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

[temp]
        Comment = Public Stuff
        path = /tmp
        public = yes
        writable = yes
        printable = no
        browseable = yes

After you make the change restart smb and nmb. Since you can't seem to use chkconfig try /sbin/service smb restart and /sbin/service nmb restart. Next time, with chkconfig, use the full path /sbin/chkconfig. /sbin/chkconfg --list smb for example.

cuda 12-14-2007 09:48 AM

my windows workgroup is MYGROUP
they match
do you think could be the same reason the chkconfig isnt working
if I go to my network I can see my windows box and in windows I can see my linux box just cant access them
the windows error message is cant access might not have permission in linux Sorry, couldn't display all the contents of "Windows Network: cyclone".

Glennzo 12-14-2007 11:47 AM

Try /sbin/chkconfig. If that doesn't work try it as root.


All times are GMT -5. The time now is 10:34 PM.