Author Topic: Samba Problem: PCLOS can access WIN XP but WIN XP can not access PCLOS (SOLVED)  (Read 2352 times)

Offline pb100

  • Jr. Member
  • **
  • Posts: 37
I can access the Win XP box from Linux with no problems. I just can not access my Linux box from WinXP. I can see the Linux computer from my windows box but I can't access the drive.

[root@localhost ~]# fdisk -l

Disk /dev/sda: 122.9 GB, 122942324736 bytes
16 heads, 63 sectors/track, 238216 cylinders, total 240121728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63    16383023     8191480+  83  Linux
/dev/sda2        16383024   240121727   111869352    5  Extended
/dev/sda5        16383087    24574031     4095472+  82  Linux swap / Solaris
/dev/sda6        24574095   240121727   107773816+  83  Linux

Disk /dev/sdb: 41.2 GB, 41174138880 bytes
255 heads, 63 sectors/track, 5005 cylinders, total 80418240 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *          63     8177084     4088511    b  W95 FAT32
/dev/sdb2         8177085    80405324    36114120    f  W95 Ext'd (LBA)
/dev/sdb5         8177148    80405324    36114088+   b  W95 FAT32

[root@localhost ~]# smbtree
Enter root's password:
PDS
        \\MINIHP0307                    Mini HP
                \\MINIHP0307\Printer            Quicken PDF Printer
                \\MINIHP0307\Pic II        
                \\MINIHP0307\Printer2           Microsoft Office Document Image Writer
                \\MINIHP0307\Printer9           MFC-6490CW LAN
                \\MINIHP0307\Printer5           PaperPort Image Printer
                \\MINIHP0307\Printer8           MFC-6490CW LAN
                \\MINIHP0307\Printer6           Microsoft XPS Document Writer
                \\MINIHP0307\SharedDocs    
                \\MINIHP0307\print$             Printer Drivers
                \\MINIHP0307\IPC$               Remote IPC
                \\MINIHP0307\PDFCreator         eDoc Printer

[root@localhost ~]# testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[pdf-gen]"
Processing section "[Home]"
Processing section "[print$]"
Processing section "[printers]"
Processing section "[DATA]"
Loaded services file OK.
Warning: Service printers defines a print command, but rameter is ignored when using CUPS libraries.
Server role: ROLE_STANDALONE
[global]
        workgroup = PDS
        netbios name = PCLOS
        server string = %h
        security = SHARE
        map to guest = Bad User
        guest account =
        log file = /var/log/samba/%m.log
        max log size = 50
        printcap cache time = 60
        printcap name = cups
        dns proxy = No
        hosts allow = 192.168.0.

[pdf-gen]
        comment = PDF Generator (only valid users)
        path = /var/tmp
        printable = Yes
        printing = bsd
        print command = /usr/share/samba/scripts/print-pdf "%s" "%H" "//%L/%u" "%m" "%I" "%J" &
        lpq command = /bin/true
        lprm command = lprm -P'%p' %j

[Home]
        comment = Documents
        path = /root/Documents
        read only = No
        guest ok = Yes

[print$]
        comment = printer
        path = /var/lib/samba/printers
        write list = @adm, root
        read only = No
        inherit permissions = Yes
        guest ok = Yes
        printable = Yes

[printers]
        comment = All Printers
        path = /var/spool/samba
        read only = No
        create mask = 0700
        guest ok = Yes
        printable = Yes
        print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
        use client driver = Yes
        browseable = No

[DATA]
        comment = comment
        path = /media/DATA/Brokerage
        read only = No
        guest ok = Yes

[root@localhost ~]# smbclient -V
Version 3.5.14

[root@localhost ~]# cat /etc/hosts
# generated by drakhosts
127.0.0.1 PCLOS.2012 localhost

/dev/sdb5 on /media/DATA type vfat (rw,nosuid,nodev,uhelper=hal,uid=0,utf8,shortname=mixed,flush)
is the drive I want to read/write access from Win XP (MINIHP0307)

I followed the instructions at http://74.54.219.50/~lxgator/gnome/forum/viewtopic.php?f=15&t=3004&sid=901213c8353e64102646a36fa5ff210a

No Luck!
« Last Edit: June 26, 2012, 04:19:47 PM by pb100 »

Online muungwana

  • Hero Member
  • *****
  • Posts: 6246

try to remove the line below in your global section.You should add these kind of things after things work.

hosts allow = 192.168.0.

when you are done removing the line, restart samba server by running the following command as root

service smb restart

then run this command and post your output.

smbtree -N -d2

do you have a firewall running on pclinuxos? if yes then turn it off first.Its another ones of those things that should be setup after things are working.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline pb100

  • Jr. Member
  • **
  • Posts: 37
Removed the hosts allow line and restarted Samba

I don't think a firewall is running as I never set one up.

Code: [Select]
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
added interface eth0 ip=fe80::280:adff:fe71:2444%eth0 bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=192.168.0.8 bcast=192.168.0.255 netmask=255.255.255.0
Got a positive name query response from 192.168.0.5 ( 192.168.0.5 )
Got a positive name query response from 192.168.0.5 ( 192.168.0.5 )
PDS
        \\PCLOS                         localhost
Got a positive name query response from 192.168.0.8 ( 192.168.0.8 )
Error connecting to 192.168.0.8 (Connection refused)
cli_start_connection: failed to connect to PCLOS<20> (0.0.0.0). Error NT_STATUS_CONNECTION_REFUSED
        \\MINIHP0307                    Mini HP
Got a positive name query response from 192.168.0.5 ( 192.168.0.5 )
                \\MINIHP0307\Printer            Quicken PDF Printer
                \\MINIHP0307\Pic II
                \\MINIHP0307\Printer2           Microsoft Office Document Image Writer
                \\MINIHP0307\Printer9           MFC-6490CW LAN
                \\MINIHP0307\Printer5           PaperPort Image Printer
                \\MINIHP0307\Printer8           MFC-6490CW LAN
                \\MINIHP0307\Printer6           Microsoft XPS Document Writer
                \\MINIHP0307\SharedDocs
                \\MINIHP0307\print$             Printer Drivers
                \\MINIHP0307\IPC$               Remote IPC
                \\MINIHP0307\PDFCreator         eDoc Printer

Online muungwana

  • Hero Member
  • *****
  • Posts: 6246

"connection refused" is networking speak for "nobody is on the other end of the connection".

what does these commands give you? run them from root account.

cat /etc/samba/smb.conf | grep interfaces

cat /etc/samba/smb.conf | grep 192.168
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline pb100

  • Jr. Member
  • **
  • Posts: 37

Quote
[root@localhost ~]# cat /etc/samba/smb.conf | grep interfaces
    # Configure Samba to use multiple interfaces
    # If you have multiple network interfaces then you must list them
    #   interfaces = 192.168.12.2/24 192.168.13.2/24

Quote
[root@localhost ~]# cat /etc/samba/smb.conf | grep 192.168
    #   hosts allow = 192.168.1. 192.168.2. 127.
    #   interfaces = 192.168.12.2/24 192.168.13.2/24
    #   remote browse sync = 192.168.3.25 192.168.5.255
    #   remote announce = 192.168.1.255 192.168.2.44

Online muungwana

  • Hero Member
  • *****
  • Posts: 6246

can you post the entire content of /etc/samba/smb.conf

.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline pb100

  • Jr. Member
  • **
  • Posts: 37
Here is the entire file:

http://pastebin.com/YFdQLQV0


Online muungwana

  • Hero Member
  • *****
  • Posts: 6246

can you comment out the line 76, the "guest account =" line. It shouldnt be cause of your problem but leaving the line that could cause problems.

I dont see anything wrong with your samba config file.

Can you turn off the firewall on your windows xp computer
restart your winxp computer afterwards.

When its up, rerun "smbtree -N -d2" command and post your result.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline pb100

  • Jr. Member
  • **
  • Posts: 37
Now can read (not write) /dev/sdb5 on /media/DATA from Win XP  and still can access Win XP from PCLOS !!

After re-boot of PCLOS box, could not access DATA (sbd5) from Win XP until I opened it with Dolphin AND reran "service smb restart" command

Quote
[root@localhost ~]# smbtree -N -d2
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
added interface eth0 ip=fe80::280:adff:fe71:2444%eth0 bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=192.168.0.8 bcast=192.168.0.255 netmask=255.255.255.0
Got a positive name query response from 192.168.0.8 ( 192.168.0.8 )
Error connecting to 192.168.0.8 (Connection refused)
cli_start_connection: failed to connect to 192.168.0.8<20> (192.168.0.8). Error NT_STATUS_CONNECTION_REFUSED
Error connecting to 192.168.0.8 (Connection refused)
cli_start_connection: failed to connect to PCLOS<20> (192.168.0.8). Error NT_STATUS_CONNECTION_REFUSED
« Last Edit: June 26, 2012, 12:18:20 AM by pb100 »

Offline pb100

  • Jr. Member
  • **
  • Posts: 37
going off-line for 10 hours...  Thanks for your help to get me to this point, muungwana !

Online muungwana

  • Hero Member
  • *****
  • Posts: 6246
progress  :D ..atleast he share shows up.

The problem is probably a shared folder permission issue

what does this command give you?

ls -l /media/DATA/Brokerage
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline pb100

  • Jr. Member
  • **
  • Posts: 37
From a cold boot:

ls -l /media/DATA/Brokerage
ls: cannot access /media/DATA/Brokerage: No such file or directory

Once I open Dolphin and click on DATA in Places
ls -l /media/DATA/Brokerage gives a list of files:

total 15424
-rwxr-xr-x   1 root root   20480 Aug 29  2006 filename1*
-rwxr-xr-x   1 root root   22016 Jun 26  2006 filename2*
-rwxr-xr-x   1 root root   30720 Oct  1  2004 filename3*
-rwxr-xr-x   1 root root   31744 May  5  2004 filename4

and so on...

Online muungwana

  • Hero Member
  • *****
  • Posts: 6246
wrong command,
it should have being:

ls -dl /media/DATA/Brokerage

but as you can see, those files are owned by root and only root have writing access to them, thats why you have read only access from the network.

what file system does the drive use?

while the drive is mounted( once clicked in dolphin's places )

run this command and give your output

cat /etc/mtab
« Last Edit: June 26, 2012, 09:15:18 AM by muungwana »
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline pb100

  • Jr. Member
  • **
  • Posts: 37

[root@localhost ~]# ls -dl /media/DATA/Brokerage
drwxr-xr-x 17 root root 32768 Jun 20 23:49 /media/DATA/Brokerage/