Author |
Message |
rcrsn51

Joined: 05 Sep 2006 Posts: 11896 Location: Stratford, Ontario
|
Posted: Thu 10 Nov 2011, 14:06 Post subject:
|
|
The only reason I asked is because mimmo's problem with sdb1 might be related to kanehekili's on the first page.
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 11896 Location: Stratford, Ontario
|
Posted: Thu 10 Nov 2011, 14:32 Post subject:
|
|
gcmartin wrote: | Most noticeable when you have a share define for say Code: | path = /sda1/folder/subfolder | This is where 3.5.6 on Puppy 528's having issues. It I set the share to "/sda1/folder", problem won't surface. This has occurred on both HDD/USB storage. |
Using Lupu 528 in PUPMODE=5 (ie without a save file) and Samba-TNG, I did the following:
1. created the folder /mnt/sda4/dir/subdir
2. gave ownership of subdir to spot
3. put a symlink in subdir to another location (like mimmo did in his example)
4. created a samba share for subdir with the sole option "writable = yes"
5. started the samba server
6. from a Windows client, logged in as user spot
It worked correctly. I got write access to the subdir folder and could follow the symlink.
|
Back to top
|
|
 |
mimmo

Joined: 20 Jul 2011 Posts: 19 Location: Versailles, France
|
Posted: Thu 10 Nov 2011, 16:47 Post subject:
Samba 3.5.6 on Lucid-Puppy 5.2.5 or 5.2.8 |
|
Hi all
I have installed 528 (and 525 ) frugal on /sda6
/mnt (root:root 755)
/sdb1 is another hard drive (root:root 777) FAT32 used to be my D: drive on windows
/Photo the photo dir I wish to share (root:root 777)
all dir after Photo are (root:root 777)
on the window explorer I see the "photo" dir but when trying to open it it fails
I was able to share
- spot ( /root/spot spot:spot 755 ) with access to files
- puppy-reference ( /root/puppy-reference root:root 777 )
in this one I can read an image I have put here
I can see all the link (standard install) but I cannot follow these links (all L777 i.e. lrwxrwxrwx ) see attached
I even wrote the windows snapshot there to post it ( was created a root:root 755)
it doesn't look like a pb of plain user access right
Thanks to all hope this helps
Description |
|
Filesize |
112.07 KB |
Viewed |
1522 Time(s) |

|
|
Back to top
|
|
 |
mimmo

Joined: 20 Jul 2011 Posts: 19 Location: Versailles, France
|
Posted: Thu 10 Nov 2011, 17:12 Post subject:
Samba 3.5.6 on Lucid-Puppy 5.2.5 or 5.2.8 |
|
I tried (just for fun ) to have a complex conf
what I have is that:
- only the last drive is mounted (sda5 in this case not sda1 nor sdb1 )
- all dir are "visible" from windows but only the one on the virtual
"lupusave.2fs" are realy accessible ( spot, puppyref and optsamba )
Code: |
# A Simple Samba configuration file for shared strage and printer for public.
#======================= Global Settings =====================================
[global]
# BK LinPopUp requires this
message command = /usr/local/bin/LinPopUp "%f" "%m" %s; rm %s
##
## Basic Server Settings
##
# workgroup = NT-Domain-Name or Workgroup-Name, eg: REDHAT4
workgroup = xxx
# server string is the equivalent of the NT Description field
server string = Samba Server on Puppy
#BK think need to change this...
log file = /var/log/samba/log.%m
# Put a capping on the size of the log files (in Kb).
max log size = 50
# Security mode.
;security = user
security = share
map to guest = Bad User
null passwords = Yes
guest account = spot
##
## Network Browsing
##
# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups.
dns proxy = no
##
## Printing
##
# Assume using CUPS
load printers = yes
printcap name = cups
printing = cups
# chacter set
unix charset = UTF-8
;dos charset = CP932
display charset = UTF-8
#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
user account = spot
create mode = 0700
# the permission of the path should be 1777
path = /var/spool/samba
browseable = yes
public = yes
guest ok = yes
printable = yes
# allow Windows to use its printer driver
use client driver = yes
[puppyref]
# the path should be readable and writable by the guest account
path = /root/puppy-reference
read only = No
guest ok = Yes
[optsamba]
# the path should be readable and writable by the guest account
path = /opt/samba
read only = No
guest ok = Yes
[ancienne]
# the path should be readable and writable by the guest account
path = /mnt/sdb1/Photo_Ancienne
read only = No
guest ok = Yes
#force group = spot
# user root for ntfs
#force user = root
#public = yes
#guest ok = Yes
#writable = yes
#printable = no
#create mask = 0765
[photo]
path = /mnt/sdb1/Photo
public = yes
only guest = yes
guest ok = Yes
writable = yes
printable = no
create mask = 0765
force group = spot
[spot]
path = /root/spot
public = yes
only guest = yes
guest ok = Yes
writable = yes
printable = no
create mask = 0765
force group = spot
[windows]
path = /mnt/sda1/WINDOWS
public = yes
only guest = yes
guest ok = Yes
writable = yes
printable = no
create mask = 0765
force group = spot
[diving]
path = /mnt/sda5/plongee
public = yes
only guest = yes
guest ok = Yes
writable = yes
printable = no
create mask = 0765
force group = spot
|
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 11896 Location: Stratford, Ontario
|
Posted: Thu 10 Nov 2011, 17:36 Post subject:
|
|
The best way to debug Samba is to do the simplest thing first.
1. In the [global] section, put the security mode back to "user". That will force the client to login, so you know exactly what ownership/permissions are in effect.
2. Make your share definitions as simple as possible. All you really need is
Code: | [photo]
path = /mnt/sdb1/Photo
writable = yes |
3. From the Windows client, login as user "root".
|
Back to top
|
|
 |
gcmartin
Joined: 14 Oct 2005 Posts: 6730 Location: Earth
|
Posted: Fri 11 Nov 2011, 03:04 Post subject:
|
|
@Mimmo, I have updated the 'kit" you were given earlier. That kit had complete steps. I never got feedback on the items in that kit from you.
@rcrsn51 and I are suggesting a very basic start before adding complexity. It makes it easy to isolate any problems when they arise. The original smb.conf was Basic. This new one in the kit is VERY BASIC
So in this update, I provide a very simple smb.conf. Please do the following and provide a WINDOWS console log this time. (This allow me to compare the results you are seeing with known issues.)
- Edit the smb.conf and change the workgroup name to YOUR workgroup
Open a console and run testparm (send or post the output of testparm with ALL messages)
- restart samba
- go to WINDOWS and do the "net use" commands as were given you before. (send/post the Windows messages as well).
Provide the results of that back to this thread.
I expect you will have some success from the smb.conf file you are given in the download. SAMBA, for what we are doing, is really very simple.
Hope this helps
Edited: It just occurs to me that you MAY have something else that you have installed which is doing something that might be affecting Puppy file rights (security). Have you?
_________________ Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engines or use DogPile
|
Back to top
|
|
 |
mimmo

Joined: 20 Jul 2011 Posts: 19 Location: Versailles, France
|
Posted: Fri 11 Nov 2011, 13:39 Post subject:
Samba 3.5.6 on Lucid-Puppy 5.2.5 or 5.2.8 |
|
ok back to a simple test situation
my conf!
+ Puppy 5.2.8
+ Instant-Update_Lucid_528_002
+ Firefox-5.0.1-lucid525 (quick pet)
+ samba-3.5.6-lucid
no fancy stuff
I have a home network with a router no real need for firewall (the NAT block all ports)
testparm full results
Code: |
# testparm
Load smb config files from /etc/opt/samba/smb.conf
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[puppyref]"
Processing section "[usrdoc]"
Processing section "[photo]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
workgroup = xxxx
server string = Samba Server on Puppy
map to guest = Bad User
guest account = root
log file = /var/log/samba/log.%m
max log size = 50
dns proxy = No
message command = /usr/local/bin/LinPopUp "%f" "%m" %s; rm %s
[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No
[puppyref]
path = /root/puppy-reference
read only = No
[usrdoc]
path = /usr/share/doc
read only = No
[photo]
path = /mnt/sdb1/Photo
read only = No
#
|
one part which is not clear above is in smb.conf
# Security mode.
security = user
;security = share
map to guest = Bad User
null passwords = no
guest account = root
samba restart
Code: |
# ./smb restart
uid=0,gid=0
mount -o uid=0,gid=0 -t ntfs /dev/sdb1 /mnt/sdb1
Samba restarted.
#
|
changed root password to samba
Code: |
# smbpasswd -a root
New SMB password:
Retype new SMB password:
#
|
looks good to me
on windows side
I have do identify as root and give my pwd and...
IT WORKS
I see my photo directory content and all photos inside
extra notes:
+ as soon as I identified the "root" home account became visible
on windows side (I thought it wouldn't "[homes] browsable = no")
+ links don't work even if the destination is also a network mount point
++ the usrdoc is completely accessible (/usr/share/doc ) via it's
network mount point
++ while it's not by it's link inside puppyref
( /root/puppy-reference/doc -> /usr/share/doc)
|
Back to top
|
|
 |
alaindu22
Joined: 29 Jul 2009 Posts: 177
|
Posted: Fri 11 Nov 2011, 14:00 Post subject:
|
|
Bonjour
Il y a une discussion en français sur ce thème sur le forum de l'asri
http://asri.edu.free.fr/thread.php?lng=fr&pg=3778&fid=1&cat=2
voir la réponse 22
You can see also my pupplet (i use its in french primary school)
http://www.neufgiga.com/n/50-17/share/LNK53044eab15bfb9e89/
I use
lampp with mysql support
mysql is ok on puppy5.25 but i have error 2002 on puppy5.28
samba-tng-rcrsn-0.5-rc1.pet : it is ok for exchange beetween puppy et windows xp
smb.conf is written with the same workgroup than microsoft's group
I have some problem with vista home and windows seven
when I want copy a file <50 ko it is ok but if the file is bigger, it is impossible to copy from vista or seven to pupshare
On vista and seven, it is possible to use upload with http to send a big file
I use lampp because it is easier for me than but i think that lhmp is better (with lhmp I have no sql error on lucid5.2 but it's necessary to modify hiawatha.conf (virtual hosts and show index)
With lhmp, It'seems (to me) also necessary to have puppy install on ext3 partition and it is not fine for me because I often install puppy with unetbootin in the school and ntfs is used on the computer with windows
Curiously I have a windows -application which is able to send big file from vista or seven to puppy share even if lampp is not installed
see http://dominique.pepoli.free.fr/Duplik.htm
see also video http://www.neufgiga.com/n/50-17/folder/43276279/
coloriage pour classe.avi
duplik.avi
So i have a new question
How to send big file from vista home to puppyshare ?
sorry for my english
Alain
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 11896 Location: Stratford, Ontario
|
Posted: Fri 11 Nov 2011, 14:30 Post subject:
|
|
@alaindu22: Just to be clear:
From XP, you CAN send a large file to pupshare?
From another Puppy machine, you CAN send a large file to pupshare?
From Vista or Win7, you CANNOT send a large file to pupshare?
Can you DOWNLOAD large files from the Samba server to a Vista client?
Unfortunately, I don't have either a Vista or Win7 machine to test this. Have you tried one of the full Samba packages instead of Samba-TNG?
Send a PM to forum member jrb. He has used samba-TNG with Win7.
Edit: Maybe this is useful. Or this.
Last edited by rcrsn51 on Fri 11 Nov 2011, 15:58; edited 3 times in total
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 11896 Location: Stratford, Ontario
|
Posted: Fri 11 Nov 2011, 14:37 Post subject:
Re: Samba 3.5.6 on Lucid-Puppy 5.2.5 or 5.2.8 |
|
mimmo wrote: |
++ while it's not by it's link inside puppyref
( /root/puppy-reference/doc -> /usr/share/doc) |
I still cannot duplicate this problem. I created a share like yours.
Code: | [puppyref]
path = /root/puppy-reference
read only = No |
and logged in through a Windows client as root. I was able to follow the links to /usr/share/doc.
While working on the SERVER machine, run Pnethood. Log into the share and see if you can follow the links.
Do you have another Puppy machine on your network that you can use as a client? Or just boot your Windows machine off a Puppy CD.
|
Back to top
|
|
 |
alaindu22
Joined: 29 Jul 2009 Posts: 177
|
Posted: Fri 11 Nov 2011, 16:05 Post subject:
|
|
Hello
Thanks rcrsn51 for your interest.
You have done a good resume
From XP, you CAN send a large file to pupshare? YES
From another Puppy machine, you CAN send a large file to pupshare? YES
From Vista or Win7, you CANNOT send a large file to pupshare? YES it is impossible
Can you DOWNLOAD large files from the Samba server to a Vista client? YES and I can open them on the samba server and save them on the samba server if they stay on the samba server during the job.
Have you tried one of the full Samba packages instead of Samba-TNG?
No so I 'll test it next week .
My tests are executed from xp pro (no domain) vista home and seven familial
Alain
|
Back to top
|
|
 |
jrb

Joined: 11 Dec 2007 Posts: 1103 Location: Smithers, BC, Canada
|
Posted: Sun 13 Nov 2011, 21:37 Post subject:
|
|
alaindu22 wrote: | From Vista or Win7, you CANNOT send a large file to pupshare? YES it is impossible |
Hi Alain,
rcrsn51 PM'd me to ask if my setup would transfer large files. Here's what I told him: Quote: | Just used windows explorer (computer?) on my wife's win7 machine to copy and paste a 1Gb file onto my slacko53 with Samba-TNG. Took about 90 seconds, no problem.
I've got Samba-TNG embedded in an SFS that loads at bootup, I don't remember what version it is and I vaguely remember modding smb.conf and setting up autostart but otherwise standard. |
I thought I'd include my /usr/local/samba/etc/smb.conf here. Notice that I changed the workgroup name from "pupgroup" to "Workgroup". I seem to remember that was important. Perhaps the source of your troubles? (Make sure that "Workgroup" is the proper name for your Win7 install however) Code: | [global]
dns proxy = no
max log size = 50
security = user
workgroup = Workgroup
server string = Puppy Samba-TNG Server
domain master = no
domain logons = no
netbios name = puppyserver
printcap name = cups
load printers = yes
[usr=root_passwd=woofwoof]
path = /
writable = yes
[printers]
path = /tmp
printable = yes
guest ok = yes |
Good Luck, J
|
Back to top
|
|
 |
rmcellig
Joined: 19 Nov 2011 Posts: 968 Location: Ottawa Ontario Canada
|
Posted: Thu 19 Jan 2012, 18:11 Post subject:
|
|
What am I doing wrong? I am using Puppy 528 in a Full install
sh-4.1# mkdir /srv/Downloads
mkdir: cannot create directory `/srv/Downloads': No such file or directory
|
Back to top
|
|
 |
stu90

Joined: 25 Feb 2010 Posts: 1399 Location: England. Dell Inspiron 1501. Dpup
|
Posted: Fri 20 Jan 2012, 12:41 Post subject:
|
|
rmcellig wrote: | What am I doing wrong? I am using Puppy 528 in a Full install
sh-4.1# mkdir /srv/Downloads
mkdir: cannot create directory `/srv/Downloads': No such file or directory |
if there is no /srv/ directory you need to use -p to make parent directories as needed.
try:
mkdir -p /srv/Downloads
|
Back to top
|
|
 |
8-bit

Joined: 03 Apr 2007 Posts: 3425 Location: Oregon
|
Posted: Fri 20 Jan 2012, 16:12 Post subject:
|
|
I have had this happen also when trying to make a nested directory.
My solution was to first make the top level one first.
So if I want to make /downloads/music, I first create a directory called /downloads with "mkdir /downloads".
Then I type "mkdir/downloads/music".
That works for me.
|
Back to top
|
|
 |
|