Simply, Teaching Puppy to SAMBA (share folders to LAN users)
Using Lupu 528 in PUPMODE=5 (ie without a save file) and Samba-TNG, I did the following:gcmartin wrote:Most noticeable when you have a share define for sayThis 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.Code: Select all
path = /sda1/folder/subfolder
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.
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
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
- Attachments
-
- try_link.png
- (112.07 KiB) Downloaded 1723 times
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 )
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: Select all
# 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
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
3. From the Windows client, login as user "root".
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: Select all
[photo]
path = /mnt/sdb1/Photo
writable = yes
@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.)
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?
@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).
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?
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
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
changed root password to samba
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)
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: Select all
# 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
#
# Security mode.
security = user
;security = share
map to guest = Bad User
null passwords = no
guest account = root
samba restart
Code: Select all
# ./smb restart
uid=0,gid=0
mount -o uid=0,gid=0 -t ntfs /dev/sdb1 /mnt/sdb1
Samba restarted.
#
Code: Select all
# smbpasswd -a root
New SMB password:
Retype new SMB password:
#
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)
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= ... id=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/L ... 15bfb9e89/
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.28) 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
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= ... id=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/L ... 15bfb9e89/
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.28) 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
@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.
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, 19:58, edited 3 times in total.
Re: Samba 3.5.6 on Lucid-Puppy 5.2.5 or 5.2.8
I still cannot duplicate this problem. I created a share like yours.mimmo wrote: ++ while it's not by it's link inside puppyref
( /root/puppy-reference/doc -> /usr/share/doc)
Code: Select all
[puppyref]
path = /root/puppy-reference
read only = No
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.
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
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
Hi Alain,alaindu22 wrote:From Vista or Win7, you CANNOT send a large file to pupshare? YES it is impossible
rcrsn51 PM'd me to ask if my setup would transfer large files. Here's what I told him:
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)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.
Code: Select all
[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
This works in all Linux'es.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
Code: Select all
mkdir -p /srv/Downloads
Linux mkdir requires use of -p parm to create multi-level directories from current location.
Hope this helps
Since I have had cause to be working alot with Samba lately one thing was annoying me. No simple solution to map a network drive from a pup client.
This little script does just that and plonks an icon on the desktop, unmountable too. (only if you use rox as a desktop). It also puts a link in $HOME, in case you don't use rox desktop.
I made it mainly for myself but why not share?
You can run the script from wherever you want, also has a Startup item which has a 2 minute timeout. It only supports one share, use Pnethood if you want to mount more shares.
It has a very simple setup gui. Everything you need should be in recent Pups, (mount.cifs, nmblookup). No need for samba to use this from a client only machine. It automatically overlays all your current icon themes with the SMB logo and makes a new icon called drivesmb48.png. Try switching icon themes .
Have fun!
EDIT: almost forgot, the smb logo! You must place it in /usr/share/icons or the script will die.
This little script does just that and plonks an icon on the desktop, unmountable too. (only if you use rox as a desktop). It also puts a link in $HOME, in case you don't use rox desktop.
I made it mainly for myself but why not share?
You can run the script from wherever you want, also has a Startup item which has a 2 minute timeout. It only supports one share, use Pnethood if you want to mount more shares.
It has a very simple setup gui. Everything you need should be in recent Pups, (mount.cifs, nmblookup). No need for samba to use this from a client only machine. It automatically overlays all your current icon themes with the SMB logo and makes a new icon called drivesmb48.png. Try switching icon themes .
Have fun!
EDIT: almost forgot, the smb logo! You must place it in /usr/share/icons or the script will die.
- Attachments
-
- smb_overlay.png
- put this in /usr/share/icons
- (1.16 KiB) Downloaded 2057 times
-
- map_drive.tar.gz
- (1.55 KiB) Downloaded 1203 times
-
- netdrive.png
- (25.81 KiB) Downloaded 1984 times
Puppy Linux Blog - contact me for access
Great.01micko wrote:Since I have had cause to be working alot with Samba lately one thing was annoying me. No simple solution to map a network drive from a pup client.
This little script does just that and plonks an icon on the desktop, unmountable too. (only if you use rox as a desktop). It also puts a link in $HOME, in case you don't use rox desktop.
I made it mainly for myself but why not share?
You can run the script from wherever you want, also has a Startup item which has a 2 minute timeout. It only supports one share, use Pnethood if you want to mount more shares.
It has a very simple setup gui. Everything you need should be in recent Pups, (mount.cifs, nmblookup). No need for samba to use this from a client only machine. It automatically overlays all your current icon themes with the SMB logo and makes a new icon called drivesmb48.png. Try switching icon themes .
Have fun!
EDIT: almost forgot, the smb logo! You must place it in /usr/share/icons or the script will die.
Another idea: TaZoC's LH64b4. If you're still has his running, look at his OOTB smb.conf. There is mention in the Global section for use of simlinks and allowing LAN use of these.
I also believe that I "may" have simlinked using your SLACKO-SAMBA as well, but, I'll have to check when I'm home again on that.
Mind you, this relates to, say, using the Public folder in my "SAMBA Simple Management" widget to "extend" what is shared via that "common" locaton.
Hope this is in the same forest as your post.
- Attachments
-
- SSM screen.png
- SAMBA Simple Management Widget
- (36.68 KiB) Downloaded 2030 times
Code: Select all
# smbd -restart
# nmbd - restart
Code: Select all
# smbd - restart
# nmbd - restart
Thanks so much for this. Very easy to use. I was up and running almost straight away!
Thanks to the contributors here, I was able to implement Samba on Puppy with ease. In contrast to several years ago when I tried to get Samba working on a Red Hat box - and failed miserably - this time the practical examples got me up and running in a short evening. I was even able to add my Windows users so my few remaining Windows boxes (Win98 and Win2k, nothing later) can log in automagically.
Part of what makes Puppy a success is the teamwork and camaraderie of this forum. Thanks again.
The only further issue that I'd like to see discussed here would be security. My router blocks smb requests from the Internet, so when I had a lot of Windows boxes, I never worried much about my privacy. Is there anything I should be concerned about with Samba?
Part of what makes Puppy a success is the teamwork and camaraderie of this forum. Thanks again.
The only further issue that I'd like to see discussed here would be security. My router blocks smb requests from the Internet, so when I had a lot of Windows boxes, I never worried much about my privacy. Is there anything I should be concerned about with Samba?