Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 27 Aug 2014, 10:55
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Samba-3.0.21c (file&printer sharing) -- full Samba build
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [28 Posts]   Goto page: 1, 2 Next
Author Message
jmarsden


Joined: 31 Dec 2005
Posts: 263
Location: California, USA

PostPosted: Sun 05 Mar 2006, 03:00    Post subject:  Samba-3.0.21c (file&printer sharing) -- full Samba build  

At http://www.dotpups.de/dotpups/Network/Samba-3.0.21c.pup (thanks MU) you will find a dpupmaker.sh created binary Samba dotpup (with minor mods to its dotpup.sh after the automated creation was complete). When installed, Samba autostarts and adds itself to /etc/rc.local so it will autostart on subsequent boots too. It is a fairly large download by Puppy standards, approaching 17MBytes.

This setup uses the smb.conf file supplied with Puppy itself, the one in /etc/samba/smb.conf, and does not modify that file in any way. Feel free to edit it to configure Samba more to your liking.

Out of the box, this dotpup shares your /root directory read-write, and the Samba root pw is empty! This is a major security issue IF you are foolish enough to run Samba on the global Internet. So don't do that! On a local LAN behind a router/firewall, or with an appropriately configured rc.firewall script in Puppy itself limiting access to your local LAN systems only, it is fine as a quick simple starting point. Use smbpasswd to play with changing and adding Samba user accounts and passwords.

This dotpup is the latest result of a lengthy developer dialogue here on these forums with sunburnt regarding Samba dotpup creation. It works for me on two different machines. If you have issues with it, let me know, and please check any log files under /var/ that may be relevant, such as /var/log.nmbd and /var/log.smbd for useful messages.

To test it, at a Puppy shell prompt try
Code:
smbclient \\\\localhost\\root -N  # on the server Puppy machine, or better still:
smbclient \\\\192.168.0.1\\root -N # on a nearby client Puppy machine, use your own IP address
or just browse the Network Neighbourhood from a local Windows PC in the MYGROUP workgroup (or edit /etc/samba/smb.conf to set whatever workgroup you want!).

I have had little success with LinNeighbourhood as yet. Anyone who can consistently get LinNeighbourhood to work with this Samba server setup, please let me know the details!

Also, it can take several minutes (as in, 6 or 7 minutes, not as in 300!) for Samba to decide it can set itself up as a local browser and so allow WIndows Network Neighbourhood to see it. I am not sure whether this can be sped up by appropriate smb.conf entries.

Jonathan
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Sun 05 Mar 2006, 03:15    Post subject:  

Not even sure what Samba is - a sort of Dance?
I read this and I am still not sure how or why it is used?
http://en.wikipedia.org/wiki/Samba_software

How to config it:
http://www.samba.netfirms.com/

Well done Smile

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
jmarsden


Joined: 31 Dec 2005
Posts: 263
Location: California, USA

PostPosted: Sun 05 Mar 2006, 03:36    Post subject:  

SAMBA is the Linux equivalent of "File and Printer Sharing" in Windows. So, if you want to share files on (or printers connected to) a Puppy Linux system, in the same way that Windows can share its files and printers with other computers... you would use SAMBA.

There is plenty of documentation included with the dotpup, after installation you will find man pages under file:///usr/share/samba/swat/help/manpages/ and also several HOWTOs and books... point your browser to file:///usr/share/samba/swat/help/using_samba/toc.html to start reading the O'Reilly book "Using Samba, 2nd Edition" for example. Try file:///usr/share/samba/swat/help/Samba3-HOWTO/index.html to read "The Official Samba-3 HOWTO and Reference Guide". file:///usr/share/samba/swat/help/Samba3-ByExample/index.html will get you the book "Samba-3 by Example", recently updated for Samba 3.0.20 and later.

If you read all the books, HOWTOs and manpages, try the ideas in them, and stil think Samba is just a dance... there may be no cure for what ails you Smile

Jonathan
Back to top
View user's profile Send private message 
SamSung

Joined: 14 Oct 2005
Posts: 94
Location: France

PostPosted: Mon 06 Mar 2006, 06:27    Post subject:  

Another alternative and one I use on my home network is to use NASLite www.serverelements.com on an old PC fill it with four IDE drives and share this. I have a 200mhz Pentium 64MB RAM and 280GB of disks shared to my puppy network. The puppy PC's have small 500mb reclamed HDDs and nothing is saved locally but saved to the NAS box.

NASLite is on a floppy and is a snip to setup, even I did it. There is much discussion among the techioes on the NASLite forums about Read and Write speed etc. My NAS connected to my 100mb network is able to stream Music and full screen Divx video, so I do not care what the numbers are.

Anywhoo it is a workable option and keep the Puppy clients light and quick to boot. I use LinNeighbourhood to connect to the NAS no probs there, and as I use the KDE version of puppy I am looking at getting the samba connection/mounting thru Konqueror.

Well that my two centimes worth, hope it is of use to someone.

Cheers

Sam
Back to top
View user's profile Send private message 
Kal

Joined: 05 May 2005
Posts: 624
Location: California, High Desert

PostPosted: Thu 09 Mar 2006, 13:00    Post subject: Samba  

The package does seem to have a minor issue with pupget. I just went along with the red warning, what pupget wanted to do. It removed the rc.samba file, so I replaced it and all was back up. Tried pupget again and no problem this time. The issue was repeatable on another machine.
Good Work, Kal
Back to top
View user's profile Send private message 
jmarsden


Joined: 31 Dec 2005
Posts: 263
Location: California, USA

PostPosted: Thu 09 Mar 2006, 14:11    Post subject: Re: Samba  

Kal wrote:
The package does seem to have a minor issue with pupget. I just went along with the red warning, what pupget wanted to do. It removed the rc.samba file, so I replaced it and all was back up. Tried pupget again and no problem this time. The issue was repeatable on another machine.
Thanks for the feedback. Can you be more specific about Pupget and how to get the "red warning"? I've only installed it either by hand (well, OK, using my own little script to install dotpups!) and using Rox. Actually I don't think I've ever tried installing any dotpup using pupget! Do you mean that you install the dotpup using Rox, and then later run pupget and it complains?? I expect I can fix up whatever the pupget-related issue is, once I understand it.

Thanks,

Jonathan
Back to top
View user's profile Send private message 
Kal

Joined: 05 May 2005
Posts: 624
Location: California, High Desert

PostPosted: Thu 09 Mar 2006, 14:51    Post subject: Samba  

After installing with rox, I went to pupget later to install another package with it, and that is when it said it was going to remove the samba-3.0.21c, I wish, I had written it down, sorry.
I also found that using Add and doing a query for the host name in LinNeighborhood seems to speed up the looking process on Samba.
Luck, Kal
PS: WARNING: These alien packages were previously installed, either by PupGet,
or by some other means registered with PupGet upon installation:
"samba-3.0.21c"

HOWEVER, they are also in the live-CD ISO (or usr_cram.fs in case
of other installations). This is a clash, and this script will now
force their removal. You may need to reboot for these packages on
the live-CD to be reinstated.
Note: the next 2-pane window will not show them, as they are now
scheduled for automatic removal after the 2-pane window OK
button is pressed. PLEASE DO NOT ABORT PupGet IN ANY FOLLOWING
WINDOW -- PRESS OK BUTTON IN NEXT WINDOW AND ALLOW SCRIPT TO
COMPLETE, SO THAT IT CAN REMOVE THESE OFFENDING PACKAGES --
ABORTING NOW WILL STUFF THINGS UP!

Click OK to continue script...
Back to top
View user's profile Send private message 
jmarsden


Joined: 31 Dec 2005
Posts: 263
Location: California, USA

PostPosted: Thu 09 Mar 2006, 16:00    Post subject: Re: Samba  

Kal wrote:
After installing with rox, I went to pupget later to install another package with it, and that is when it said it was going to remove the samba-3.0.21c, ...
OK, thanks. I'll check this out when I get home. It sounds like the problem is because of a name clash between my Samba package and the cut-down one included with Puppy, that is just the client part. But I'll need to read the pupget code carefully to be sure what is causing this.

Jonathan
Back to top
View user's profile Send private message 
raffy

Joined: 25 May 2005
Posts: 4764
Location: Manila

PostPosted: Thu 09 Mar 2006, 20:25    Post subject: Printing system?  

This is very useful for Puppy, as a storage-sharing system is very essential in a network of really old PCs, or even in a network of new PCs that uses a simple centralized backup storage.

Am just unsure how it handles printing from the clients? And how does it relate to CUPS? Are they mutually exclusive (drop one if you use the other)?

(Pls be patient with these questions - Samba is something that I've been trying to give time to since 2000, but alas, web servers got most of those time Sad ).

And can we add there a routine for giving user root a password? (It's a problem having an empty password, as you said.)
Back to top
View user's profile Send private message 
jmarsden


Joined: 31 Dec 2005
Posts: 263
Location: California, USA

PostPosted: Thu 09 Mar 2006, 22:29    Post subject: Re: Printing system?  

raffy wrote:
Am just unsure how it handles printing from the clients? And how does it relate to CUPS? Are they mutually exclusive (drop one if you use the other)?
Samba uses whatever printers you have configured in your Linux printing subsystem, and offers them to Windows clients. At least, it does if you set up a default [printers] section in smb.conf. Samba should read a printer config set up by CUPS just fine.

Note: around 1994/95 and Samba 1.8.x, I was a fairly serious Samba expert user and configurer... but it has changed so much since then I no longer dare make such a claim!). The best way to learn probably is to read the docs and try things, and then ask questions for your specific situation (say what you have read and tried when asking).

Quote:
And can we add there a routine for giving user root a password? (It's a problem having an empty password, as you said.)
This comes back to a philosophy issue. BarryK really really wants Puppy to have no root pw. So that's how it ships. So that's how my Samba package does things too. I'm being consistent with his design choices, or trying to!

I'm reluctant to create and publish a dotpup that might get popular which changes that. I'd prefer the user understand the implications and make the choice themselves. One thing that could be interesting would be to have a boot time option in Puppy itself that results in verifying whether the current root pw is blank or not and if it is, prompting for one? One extra keypress for those who don't want a root pw, and increased security for those who do prefer a pw.

The other issue is that setting a "default" root samba password is also insecure. The default is widely known and so the first thing the wannabe cracker tries!

The "routine" for setting a samba password is the smbpasswd command, which is part of the installed dotpup. There were three real options: (a) ship with no root account set up, forcing the user to run smbpasswd by hand before samba does anything useful; (b) ship with a default root pw (c) ship with an empty default root pw. Barry chose (c), and so Samba does the same. I'm interested in hearing ideas for what the "good" or "best" solution is to this.

(Note: the dotpup could prompt the user for a pw, but then it can't in installed in an automated way, and this is generally (IMO) a bad idea for package installers to run around asking the user questions. RPMs don't do that, .debs don't do that, why should .pups do that? It doesn't feel like a good solution to me.)

Jonathan
Back to top
View user's profile Send private message 
Kal

Joined: 05 May 2005
Posts: 624
Location: California, High Desert

PostPosted: Thu 09 Mar 2006, 22:52    Post subject:  

We have been using Samba with Cups for over three months. Never had a problem, but its just a home network behind a hardware firewall, not much of a security issue. At one time we limited access to one folder in smb.conf (share in /root}. We even used the bios security for the computers, but decided we were being silly for our use, we keep no banking pin numbers or anything to steal.
Kal
Back to top
View user's profile Send private message 
jmarsden


Joined: 31 Dec 2005
Posts: 263
Location: California, USA

PostPosted: Fri 10 Mar 2006, 00:35    Post subject: Re: Samba  

Kal wrote:
After installing with rox, I went to pupget later to install another package with it, and that is when it said it was going to remove the samba-3.0.21c ...
OK, I get this behaviour here too. I've looked over the relevant code in pupget to see why it happens.

I'm going to take a deep breath, and then claim that, as I understand the code, this looks to me like a bug in a package in the Puppy system itself, pupget, rather than a bug in my Samba package! Here is my reasoning:

Pupget is checking whether there is an installed alien package that has the same name as one included on the CD. Fair enough. But if it detects such a package, it doesn't bother checking version numbers, or asking the user which package to keep, it just decides that the CD version must always be better than the other one, and so kicks the other one (my package, in this case) out! This makes packages that exist in the core pupget system effectively un-upgradeable. Making packages un-upgradeable is not the behaviour one usually associates with a package manager! So, to my mind, pupget's current behaviour in this case violates the Rule of Least Surprise, and should therefore be considered incorrect.

I don't understand the reasons for it's current behaviour -- there could be valid reasons, or (as I rather suspect) it could just be an accident that code to check the two version numbers was left out in the code at that point. Only BarryK can tell us whether the code is behaving as it should, and if it is, why it is necessary for it to make this decision in favour of the CD every time, rather than (for example) comparing version numbers and keeping the more recent package, or even asking the user which one they prefer to keep. Or, Barry may be able to let us know that this is just an oversight which we should fix with a small patch to /usr/sbin/pupget.

Jonathan
Back to top
View user's profile Send private message 
KaYnemO


Joined: 05 Dec 2005
Posts: 25
Location: Moscow, Russia

PostPosted: Mon 13 Mar 2006, 11:46    Post subject: How do you UNshare the /root  

All right - I have started samba and it has /root shared. I've tried to find the needed info in the manuals, but couldn't. How do you UNshare the /root. I was able to add shares, but can't find the line in the smb.conf where the /root is mentioned as shared. Also how do you stop samba? PLEASE help!
_________________
...don't you wish you could "undo" in real-life sometimes?...
Back to top
View user's profile Send private message 
jmarsden


Joined: 31 Dec 2005
Posts: 263
Location: California, USA

PostPosted: Mon 13 Mar 2006, 13:22    Post subject: Re: How do you UNshare the /root  

KaYnemO wrote:
All right - I have started samba and it has /root shared. I've tried to find the needed info in the manuals, but couldn't. How do you UNshare the /root. I was able to add shares, but can't find the line in the smb.conf where the /root is mentioned as shared.
/root is the home directory of the root user. It is shared because you have a section in your smb.conf that is named [homes]. If you do not wish to share home directories, remove that section.
Quote:
Also how do you stop samba?
You stop samba the same way you stop most daemons -- run its init script with a "stop" parameter:
Code:
/etc/rc.d/rc.samba stop

Jonathan
Back to top
View user's profile Send private message 
KaYnemO


Joined: 05 Dec 2005
Posts: 25
Location: Moscow, Russia

PostPosted: Tue 14 Mar 2006, 07:24    Post subject: Samba  

Hiya!
Thanx for the support. After some tweaking Samba is up and running well and sharing the folder which I needed and NOT root. It was eating up 100% of CPU, but after a reboot things returned to normal. So thanks again for all support.

_________________
...don't you wish you could "undo" in real-life sometimes?...
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [28 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1053s ][ Queries: 11 (0.0035s) ][ GZIP on ]