Author Topic: Public folder not so public  (Read 2630 times)

0 Members and 1 Guest are viewing this topic.

Offline Emegra

  • Hero Member
  • *****
  • Posts: 2732
  • Karma: 55
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Public folder not so public
« on: September 06, 2013, 08:01:28 pm »
Hi Guys

I've been trying to get the Public folders on 2 PC's on my network to sync, but I'm obviously misunderstanding the concept of "Public Folder" or I'm doing something wrong

I take it that the point of the Public Folders is that any files I have in the public folder on one PC can be viewed in the public folder of another within the network and visa versa ?

I have 2 PC's on the network I want to share files with which are Linux1 (peppermint4) & Linux2 (Linux Lite) I have samba installed on both machines and set each machine to share the Public Folder via the samba server configuration gui both are set to writable & visible and access is set to "allow access to everyone" and both are set to "workgroup" but I can't get them to share files, any help would be much appreciated



Many Thanks



Graeme
« Last Edit: September 06, 2013, 08:10:20 pm by Emegra »
If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14306
  • Karma: 357
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Public folder not so public
« Reply #1 on: September 06, 2013, 08:39:52 pm »
Are you misunderstanding what the "Public" folder does ?

it's just a folder like any other .. it can be shared, but AFAIK it doesn't "sync" with others.

Can you browse to the shared public folders in pcmanfm>Go>Network Drives> etc. ?
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Emegra

  • Hero Member
  • *****
  • Posts: 2732
  • Karma: 55
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: Public folder not so public
« Reply #2 on: September 06, 2013, 08:56:25 pm »
Quote
Are you misunderstandi ng what the "Public" folder does ?

I must be but if it's a folder like any other in the home directory I fail to see the point in it being there

Quote
Can you browse to the shared public folders in pcmanfm>Go>Network Drives> etc.

in file manager GO>Network Drives I have one choice "Windows Network" then if I open that I only get MSHOME then if I try to open that I get a long wait then an error message " failed to retrieve sharelist from server:
connection timed out"

Then if I click "OK" another error message " specified location is not mounted"

If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

Offline SeZo

  • Hero Member
  • *****
  • Posts: 1552
  • Karma: 123
  • Gender: Male
    • View Profile
    • Awards
Re: Public folder not so public
« Reply #3 on: September 06, 2013, 09:06:07 pm »
Could you show us the samba configuration file?
Code: [Select]
cat /etc/samba/smb.conf

Offline Emegra

  • Hero Member
  • *****
  • Posts: 2732
  • Karma: 55
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: Public folder not so public
« Reply #4 on: September 06, 2013, 09:08:41 pm »
If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

Offline Emegra

  • Hero Member
  • *****
  • Posts: 2732
  • Karma: 55
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: Public folder not so public
« Reply #5 on: September 06, 2013, 09:18:38 pm »
It's dawned on me that i have been misunderstanding the meaning of "Public"

it means public with other accounts on this PC not the network sorry
If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14306
  • Karma: 357
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Public folder not so public
« Reply #6 on: September 06, 2013, 09:22:20 pm »
is this PM3 or 4

have you got smbclient installed ?

have the PC's got static IP's

yup, "Public" is writeable with any account on your PC .. it doesn't "sync" with other PC's
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline SeZo

  • Hero Member
  • *****
  • Posts: 1552
  • Karma: 123
  • Gender: Male
    • View Profile
    • Awards
Re: Public folder not so public
« Reply #7 on: September 06, 2013, 09:25:19 pm »
Any reason you got browseable = yes commented out?
You may want to check your configuration file is correct, you need to run the following command
Code: [Select]
testparm
If that is OK
Is samba running?
Code: [Select]
ps aux | grep smb
« Last Edit: September 06, 2013, 09:42:51 pm by SeZo »

Offline Emegra

  • Hero Member
  • *****
  • Posts: 2732
  • Karma: 55
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: Public folder not so public
« Reply #8 on: September 06, 2013, 09:30:08 pm »
Quote
is this PM3 or 4

PM4

Quote
have you got smbclient installed ?

yes both Pc's have it installed

Quote
have the PC's got static IP's

Yes both are static Linux1 (PM4 192.168.2.2) Linux2 (Linux Lite 192.168.2.3)

Quote
yup, "Public" is writeable with any account on your PC .. it doesn't "sync" with other PC's

Yes that's what I misunderstood so in that case as neither PC has any more than 1 account it's pointless going on because that's not what I was trying to do
« Last Edit: September 06, 2013, 09:39:27 pm by Emegra »
If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14306
  • Karma: 357
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Public folder not so public
« Reply #9 on: September 06, 2013, 09:31:38 pm »
browsable=yes is commented out on mine, and it's still browseable

set up with the system-config-samba GUI .. that's how it sets em up, and it still should work  :o
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Emegra

  • Hero Member
  • *****
  • Posts: 2732
  • Karma: 55
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: Public folder not so public
« Reply #10 on: September 06, 2013, 09:33:32 pm »
Quote
Any reason you got browseable = yes commented out?

None that I know of

Code: [Select]
graeme@Linux1 ~ $ testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"
Processing section "[Public]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
server string = %h server (Samba, Ubuntu)
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
username map = /etc/samba/smbusers
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers

[Public]
comment = Linux1-Shared
path = /home/graeme/Public
read only = No
guest ok = Yes
graeme@Linux1 ~ $

Code: [Select]
graeme@Linux1 ~ $ ps-aux | grep smb
ps-aux: command not found
graeme@Linux1 ~ $



If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14306
  • Karma: 357
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Public folder not so public
« Reply #11 on: September 06, 2013, 09:34:59 pm »
Quote
Yes that's what I misunderstood so in that case as neither PC has any more than 1 account so it's pointless going on because that's not what I was trying to do

If you want them to sync,across 2 PC's .. mount the public folder through fstab, and use sommat like rsync

Do you want to try work out why you seem unable to browse the shares or not ?
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Emegra

  • Hero Member
  • *****
  • Posts: 2732
  • Karma: 55
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: Public folder not so public
« Reply #12 on: September 06, 2013, 09:36:58 pm »
Quote
Do you want to try work out why you seem unable to browse the shares or not

If you don't mind it seems there is a problem there

 I would appreciate that
If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14306
  • Karma: 357
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Public folder not so public
« Reply #13 on: September 06, 2013, 09:40:00 pm »
are you running a firewall on the Peppermint PC's ?

Can you ping one PC from another ?

Can you access the other PC's shares by entering
smb://192.168.2.x

in the pcmanfm address bar on the other PC (and hitting enter) ?
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline SeZo

  • Hero Member
  • *****
  • Posts: 1552
  • Karma: 123
  • Gender: Male
    • View Profile
    • Awards
Re: Public folder not so public
« Reply #14 on: September 06, 2013, 09:41:47 pm »
Quote
graeme@Linux1 ~ $ ps-aux | grep smb
ps-aux: command not found
graeme@Linux1 ~ $
Sorry that should have been:
Code: [Select]
ps aux | grep smb

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal