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.

cuda 12-14-2007 12:21 PM

ok this is what i get
Quote:

[cuda@localhost ~]$ /sbin/chkconfig
chkconfig version 1.3.36 - Copyright (C) 1997-2000 Red Hat, Inc.
This may be freely redistributed under the terms of the GNU Public License.

usage: chkconfig --list [name]
chkconfig --add <name>
chkconfig --del <name>
chkconfig --override <name>
chkconfig [--level <levels>] <name> <on|off|reset|resetpriorities>

cuda 12-14-2007 05:38 PM

yeah that works
[cuda@localhost ~]$ /sbin/chkconfig
chkconfig version 1.3.36 - Copyright (C) 1997-2000 Red Hat, Inc.
This may be freely redistributed under the terms of the GNU Public License.

usage: chkconfig --list [name]
chkconfig --add <name>
chkconfig --del <name>
chkconfig --override <name>
chkconfig [--level <levels>] <name> <on|off|reset|resetpriorities>
[cuda@localhost ~]$

Glennzo 12-14-2007 05:46 PM

OK, time for /sbin/chkconfig --level35 smb on and /sbin/chkconfig --level35 nmb on, then see what's up with your browsing.

cuda 12-15-2007 06:33 AM

[root@localhost cuda]# /sbin/chkconfig --level35 nmb on
--level35: unknown option
[root@localhost cuda]# /sbin/chkconfig --level35 smb on
--level35: unknown option
[cuda@localhost ~]$ /sbin/chkconfig nmb on
failed to make symlink /etc/rc2.d/S91nmb: Permission denied
failed to make symlink /etc/rc3.d/S91nmb: Permission denied
failed to make symlink /etc/rc4.d/S91nmb: Permission denied
failed to make symlink /etc/rc5.d/S91nmb: File exists
[cuda@localhost ~]$ su
Password:
[root@localhost cuda]# /sbin/chkconfig nmb on
[root@localhost cuda]# /sbin/chkconfig smb on

I would l like to keep trying to fix this but if its to big of a pain in I can just go back to fedora 7 IM not in any hurry

Glennzo 12-15-2007 06:45 AM

Nah. My bad there. You need to use sudo, sudo /sbin/chkconfig --level 35 smb on or run the command as root. Same for nmb. Sorry. Also, there's a space between the word level and the numbers 35.

cuda 12-15-2007 06:06 PM

ok this is wild if I use the command sudo /sbin/chkconfig --level 35 smb on
it asks for my password and it wont accept it is says thais incorrect
then if I log in to root and use the command sudo /sbin/chkconfig --level 35 smb on
nothing happens

Quote:

[cuda@localhost ~]$ sudo /sbin/chkconfig --level 35 smb on
Password:
Sorry, try again.
Password:
Sorry, try again.
Password:
Sorry, try again.
sudo: 3 incorrect password attempts
[cuda@localhost ~]$ su
Password:
[root@localhost cuda]# sudo /sbin/chkconfig --level 35 smb on
[root@localhost cuda]# sudo /sbin/chkconfig --level 35 nmb on
[root@localhost cuda]# exit
exit

Glennzo 12-15-2007 06:24 PM

Nothing happens because running the command as root worked. Try, as root, /sbin/chkconfig --list smb. It should show on for level 3 and 5.

jschiwal 12-16-2007 12:24 AM

One thing you also need to do is to run "smbpasswd -a <username>" to add the same username and password that exists in windows. There needs to be a one-to-one mapping between the windows user and the samba user.

Also, check your logs for selinux. You may want to check what it's configuration says for samba.

cuda 12-16-2007 07:44 PM

yeah it did
Quote:

[root@localhost cuda]# /sbin/chkconfig --list smb
smb 0: off 1: off 2: on 3: on 4: on 5: on 6: off

and I added a new user it had no effect

I got windows to tell me that "you were not connected because a duplicate name exists"
I changed the name of my win box with no help but when I changed the name of my fedora box it made it so that I can access my shared files from windows on my fedora box
so I ca live with it this way however I like it when I can access my win box from fedora I will check windows again and see if its something there will update if I find something

cpblake 12-23-2007 02:10 AM

I was having the same problem with the latest version of Solaris 10. The fix for me was to put the netbios name and IP address of the workgroup master browser into the /etc/hosts file of the Solaris machine.

I have several PCs, running various versions of Linux, Solaris and Windows, on my home network. I'm connected to the Internet through a DSL router that does NAT and acts as a DHCP server. It gives it's own address to it's clients as a DNS server. Then, forwards lookup requests to my ISP's DNS servers. Unfortunately, it doesn't resolve the names of the machines on my local network. It passes queries to my ISP even if one of my computers is looking for the address of another. Of course, my ISP knows knows nothing of my internal network and the lookup fails.

What appears to be happening with this version of Samba is that it's using DNS to get the IP address of the workgroup master browser after finding the name. If that fails, you get the error message.

All my PCs showed up in the Nautilus browser after I put the master browser's address into the /etc/hosts file. Since it's possible for any of the Windows PCs to be the master browser I reserved all their addresses and put them all in the /etc/hosts file.

surverma 01-07-2008 12:09 AM

linux machines are not connecting to local running websites
 
hello friends
I have 10 linux machines and 40 windows machines in my office. I have install a new share-point server in my office. problem is this that my share-point sites is not opening in linux machines, like as I open that in windows machine by http://share-point:8080/projects ,its working fine but when I open it with my linux firefox browser then it directly goes to my squid server which unable to resolve the address for this local running share-point site, and by auto detect proxy that is also not working .
any help please............


All times are GMT -5. The time now is 09:28 AM.