Author Topic: Reading pclos shares from windows  (Read 967 times)

Olmy

  • Guest
Reading pclos shares from windows
« on: April 28, 2010, 07:57:33 AM »
I just can't get it to work!

I've looked at a load of how-to pages and I think I've setup everything (although I must have missed something).

I can browse to windows shares from pclos OK and my windoze machine can see the linux share (it pops up in 'my network places') - it just can't access it. If I browse to the (pclos) share on its own machine, using dolphin via network, it says the folder doesn't exist.

I've tried creating it both from configure and via the folder share property.

Any ideas would be appreciated....

Offline seaplane_tux

  • Full Member
  • ***
  • Posts: 102
Re: Reading pclos shares from windows
« Reply #1 on: April 28, 2010, 09:50:32 AM »
   I'm having the same problem. I can see the folders and files but have only limited access. The Public folder in Vista is sharable and I move files to it them move them back and forth to keep things up to date.

   I hope someone can answer give a little in site  ???
Acer Aspire 5102WLMi
AMD Turion 64x2  1.5GHz, 2 GB RAM
15.4 1280 x 800, ATI Radeon Xpress 1100
Dual Boot PCLinuxOS 2013 and Win XP

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15283
  • ┌∩┐(◕_◕)┌∩┐
Re: Reading pclos shares from windows
« Reply #2 on: April 28, 2010, 10:51:20 AM »
You could try going to PCC (Control Centre) Local Disks > Share your hard disk partitions > and select the "Allow all Users" or the "Custom" one.

That MAY then offer to install Samba and/or NFS (choose what you want) and allow it to do its work.

When thats finished, Open Dolphin and go to the /home folder you want to share and right click on it and choose the Share Tab > Configure File Sharing (it will prompt for password) and set your folders up as required.

Not certain if I'm reading your post correctly, but see if that helps

Note: in another post  I also mentioned using Network Neighbourhood in smb4k  http://www.pclinuxos.com/forum/index.php/topic,71720.msg589214.html#msg589214
« Last Edit: April 28, 2010, 11:05:36 AM by menotu »
PCLinuxOS 32bit KDE 4.10.1; kernel-3.4.11-pclos1.bfs & 64bit 3.2.18bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000

Online muungwana

  • Hero Member
  • *****
  • Posts: 6216
Re: Reading pclos shares from windows
« Reply #3 on: April 28, 2010, 11:01:00 AM »

seaplane_tux,
can you open your own thread and specify your problem there? Talking about your problem here will essentially high jack the OP thread and will lead to confusion.

Olmy,
Do you use pclinuxos2010? what version of windows are you using?

can you try to access those shares using "smb4k"? This program works reliably and should be the default program for accessing samba network shares.

how did you set up your shares? If you used PCC, there is a stage where you are asked something and you are given a choice btw "user" and "share", did you choose "share"?, if yes, redo it agains and choose "user" then go to pcc services area and restart "smb" process, wait for a minute or two and then try to access your linux box from windows
.. 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 old_guy

  • Hero Member
  • *****
  • Posts: 706
Re: Reading pclos shares from windows
« Reply #4 on: April 28, 2010, 12:05:10 PM »
Olmy

See if this helps:

New install of PCLOS2010 setup for local network.

Existing network linux and windows98 (yes I still use it) - network name is lab.
After initial install I ran update.

Open terminal (Konsole) see yourname@localhost - no good for a network name, so easiest way to change for me.
PCC > Network & Internet > Remove a connection
  next
  finish
Back at PCC > Network & Internet > Set up a new network...
  next
  next
  next
you will see Host name - change to name you want for machine - I used pclos
  next
  next
  finish
Reopen a terminal (Konsole) I see earl@pclos -good.

Now for some folders to share:

Open Dolphin goto /mnt
Tools > open terminal
In terminal type su
enter password
then type md and names of folders to create
  I did --- md data myshare (created 2 folders)
Now you need to change permissions
Still in the su terminal at /mnt type chmod 777 names of your folders
  I did chmod 777 data myshare


Now for the network:

PCC > Network Sharing > Share drives and directories with windows (SMB) systems
You will see -- First time ... Samba Server --OK
  Stand alone -- OK
  Workgroup -- name you use - I put -- lab
  Security Mode - user -- OK
  Banner - %h -- OK
  Logs ... -- OK
  Summary -- OK
You should see -- Congratulations ...
Then you wil be at -- DrakSamba manage Samba shares
I highlight homes and Remove
Then -- Add
  Name   myshare (**use your folder name here and below**)
  Comment myshare
  Directory /mnt/myshare -- OK
Add for all the folders you set up
Then Ok to leave (I found it works best if you go out then back in)
So after all of your folders were created and you hit OK to get out
Select Share drives and directories with windows (SMB) systems again
Highlight your first folder (myshare) and Modify
  Public: yes
  Writable: yes
  Browseable: yes
      OK
The next folder is highlighted - so Modify and repeat for each folder.
      OK
and out
Now select -- Access Windows (SMB) shared drives and directories.
Search servers
Should see machines on the network
I click just to the left of the names of the machines and click on the arrow that appears and can see the folders on the machines listed.

click Done

Now back at PCC select System
Then Manage system services by enabling or disabling them
Down to smb -- check on boot -- if it is running Stop then Start if not running Start -- OK

Leave PCC

Open terminal (Konsole) again and type: testparm
You should see something like:

[earl@new ~]$ testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[data]"
Processing section "[myshare]"
Loaded services file OK.
Warning: Service printers defines a print command, but rameter is ignored when using CUPS libraries.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

Hit ENTER and see:

[global]
        workgroup = LAB
        server string = %h
        map to guest = Bad User
        log file = /var/log/samba/%m.log
        max log size = 50
        printcap cache time = 60
        printcap name = cups
        dns proxy = No
...

You should be good to go.
Go to Dolphin > Network > Samba Shares > (Hopefully you will see your network -- I see  -- Lab
click it and see your machines.


This has worked for me.
Earl

Never too old to learn.

Olmy

  • Guest
Re: Reading pclos shares from windows
« Reply #5 on: April 29, 2010, 01:30:01 AM »
Thanks for all the suggestions.

Nothing has made a difference yet. The system is a new MiniMe. I'm trying to access from WinXP.

I tried smb4k (after installing it) - it says the share could not be mounted (why did it keep asking be to setup kwallet?).

My host name has been changed - the output from testparm looks right.

The problem remains; I can see the winxp machine and access its shares from pclos but not the other way around. Dolphin (and smb4k) on the machine itself cannot open the directory from the network.

My shared folder is under home (not mnt) - I tried one under mnt and couldn't even see it to attempt to access it.

I'd tried both 'user' and 'share' in the setup - it's now on 'user'.

Interestingly, if I go to the folder properties->share and try the 'configure' button under the shared.not shared options (don't know what this is supposed to do), it asks for root password and then does nothing at all.

Any further thoughts appreciated.




Online muungwana

  • Hero Member
  • *****
  • Posts: 6216
Re: Reading pclos shares from windows
« Reply #6 on: April 29, 2010, 02:39:55 AM »
can you attach your "/etc/samba/smb.conf" file?
.. 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 kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3980
Re: Reading pclos shares from windows
« Reply #7 on: April 29, 2010, 03:08:09 AM »
Is the user samba runs as permitted to access your home directory? In 2010 users' home directories have very tight permissions (700 - enforced by rc.local at boot) which forbid all access to the subdirectories below them except by the owner. This will stop samba seeing your shared folders.

To test, set the permission on your home directory to 755 temporarily. If that solves the problem you probably need to add the samba user (which depends on your samba configuration and log-in) to your group and set the home directory to 750 or 710. You will have to do this every time you want to use samba after rebooting unless you remove the command from rc.local.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Olmy

  • Guest
Re: Reading pclos shares from windows
« Reply #8 on: April 29, 2010, 04:05:40 AM »
Thanks kjpetrie, changing the permissions on my home worked!

I don't have any samba users set up, so I actually have another problem: When I copy a file from xp, it ends up owned by 'nobody' so I only get read only access as a normal user.

I'd rather this worked every time I booted. Can you (or others) recommend a way forward? Can I make my normal user the samba user (and login from windows)?

Should I edit this rc.local (where is it)?

This is a single user netbook.

Ta

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3980
Re: Reading pclos shares from windows
« Reply #9 on: April 29, 2010, 05:22:13 AM »
/etc/init.d/rc.local

You could set samba up to log in as your usual user, but I don't really know how in detail. There is extensive documentation in the man pages for doing it by editing files, but it should be possible through the GUI in PCC as well. If samba uses your normal user you shouldn't need to change permissions or touch rc.local.

At least you know the problem is with file permissions, not samba.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf