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 Tue 23 Sep 2014, 06:28
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Guest access to Samba shares
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [16 Posts]   Goto page: 1, 2 Next
Author Message
paul1149

Joined: 13 Aug 2011
Posts: 24

PostPosted: Sun 23 Dec 2012, 22:38    Post subject:  Guest access to Samba shares  

Hi,

I've got Slacko 5.4 up and running from a hard drive, and am trying to get network sharing working now.

I installed Samba and created a share which is seen by Win7. In samba.conf I add guest ok = yes to the share, and Win7 still is queried for a password to enter in. My Windows credentials fail.

I then moved guest ok = yes to global, and the homes share continues to behave the same way it did before, the way the other share did.

Do I need to do some kind of Samba user routine somewhere? Thanks.
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 4277
Location: Earth

PostPosted: Sun 23 Dec 2012, 23:48    Post subject:  

Quote:
... Do I need to do some kind of Samba user routine somewhere?...
No, you have everything you need.

Although I haven't setup SAMBA PET as of yet on 5.4 try this to see if it affects Windows access: Turn your firewall off and try again. If it still doesn't work with the f/w off momentarily, post your smb.conf?

And, did you install SAMBA from Slacko Repo via the PPM?

Here to help

Last edited by gcmartin on Sun 23 Dec 2012, 23:56; edited 1 time in total
Back to top
View user's profile Send private message 
paul1149

Joined: 13 Aug 2011
Posts: 24

PostPosted: Sun 23 Dec 2012, 23:54    Post subject:  

How does one copy from the console? That would make this easy. Thanks.
Back to top
View user's profile Send private message 
paul1149

Joined: 13 Aug 2011
Posts: 24

PostPosted: Mon 24 Dec 2012, 00:11    Post subject:  

Ok, I found that out. Here's the testparm output:

[global]
server string = %h is a NAS
max log size = 50
domain master = No
dns proxy = No
idmap config * : backend = tdb

[homes]
comment = "Home directory for %U"
read only = No

[shared-items]
comment = Place to put public stuff
path = root/shared-items
read only = No
guest ok = Yes

[printers]
comment = All Printers
printable = Yes
print ok = Yes
browseable = No
available = No
Back to top
View user's profile Send private message 
666philb


Joined: 07 Feb 2010
Posts: 1699
Location: wales

PostPosted: Mon 24 Dec 2012, 07:36    Post subject:  

have you tried

name: root
password: woofwoof

_________________
Quickpet_Precise, install popular apps quickly http://www.murga-linux.com/puppy/viewtopic.php?t=83642
LÖVE2d, a collection of 27 lua gameshttp://www.murga-linux.com/puppy/viewtopic.php?t=76739
Back to top
View user's profile Send private message 
paul1149

Joined: 13 Aug 2011
Posts: 24

PostPosted: Mon 24 Dec 2012, 12:21    Post subject:  

Ok, some more information and questions.

Samba was installed via the package manager.

Yes, I did try that root/woofwoof.

I dropped the firewall last night, and saw no difference.

When I originally set up the firewall, I allowed 192.168.1.1/24 through. Last night I changed that to 192.168.1.1/255.255.255.0, and then Windows would only see the hostnmame, but would not show the shares without a login. This was a change in the wrong direction.

Today on rebooting Puppy is not seen on the network at all. I'm assuming Samba, now installed, is an autorun?
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 4277
Location: Earth

PostPosted: Mon 24 Dec 2012, 13:23    Post subject: A scenario for a simple and successful SAMBA start  

Before beginning much of what I will share here is also posted in the forum here. Also I must say that I have NOT tested what I share on Slacko5.4, as yet.

Assumption
The following ASSUMES you have NOT changed Microsoft's workgroup name from "Workgroup" which is what it ships with.

Scenario for Slacko 5.4
OK here are steps I offer you to follow:
Note: Leave your Puppy firewall off for this test
  1. Exit "X"
    Code:
    Menu>Shutdown>Exit to Prompt
  2. Set the Linux password for the root ID (remember this password and use this password ALSO in the next step)
    Code:
     type "passwd"
  3. Set the SAMBA password for the root ID (make this password the same as was set for the Linux root ID)
    Code:
    type "smbpasswd -a root"
  4. Logout of the terminal
    Code:
    type "logout"
  5. create the following 2 folders
    Code:
    type "mkdir -p /mnt/Downloads  /root/Downloads"
    (one of these may already exist)
  6. start "X" to get back to the desktop
    Code:
    type "xwin"

  7. Rename your current SAMBA config; to say, smb.conf.1 for backup
  8. Replace your SAMBA config with this one
    Code:
    [global]
       server string = Samba Server
       log file = /var/log/samba/log.%m
       max log size = 50
       max protocol = smb2
       dns proxy = No
       workgroup = Workgroup
        max protocol = smb2
       message command = /usr/local/bin/LinPopUp "%f" "%m" %s; rm %s
    # Delete the two following lines if you don't want clients to follow symlinks.
       follow symlinks = yes
       unix extensions = no
       
    # ============== File/Folder Definitions ================
    # Sharing Parameters tell what items this PC shares out to the LAN
    [homes]
       comment = Home Directories
       valid users = %S
       read only = No
       browseable = No

    [Downloads]
       path = /mnt/Downloads
       comment = A Central Download folder for all to use
       writeable = true
       guest ok = Yes

    [Downloads2]
       comment = A Central Download folder for all to use
       path = /root/Downloads
       read only = No
       guest ok = Yes
    # ==================== Printer Definitions =====================
    [printers]
       comment = All Printers
       path = /var/spool/cups
       guest only = Yes
       printable = Yes
       use client driver = Yes
       browseable = No

    [LexmarkLaser]
       path = /var/spool/cups
       read only = No
       guest ok = Yes
       printable = Yes
       printer name = Laser
       browseable = No
  9. Restart SAMBA via the
    Code:
    Menu>Network>...SAMBA
    (there is an on-screen button to do so
  10. Test that SAMBA is sharing from a terminal
    Code:
    type "smbclient -L localhost"
    (You will or should see all that Slacko is sharing)
  11. Go to any Windows PC on your LAN and let us know..
Here to help
Edited: Clarifying steps to avoid misunderstandings

_________________
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 Engine or use DogPile

Last edited by gcmartin on Tue 25 Dec 2012, 23:15; edited 5 times in total
Back to top
View user's profile Send private message 
paul1149

Joined: 13 Aug 2011
Posts: 24

PostPosted: Tue 25 Dec 2012, 13:56    Post subject:  

Thanks so much for all that effort, gcmartin. Sorry for the delay - I had a few Windows machines come in that needed to be dealt with.

I went through the procedure until getting back into X. I stopped there because in trying to set the SMB password, the error came back, failed to find entry for user root. I assume that needs to be dealt with before any progress can be made.
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 4277
Location: Earth

PostPosted: Tue 25 Dec 2012, 19:02    Post subject:  

I corrected step 3.
_________________
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 Engine or use DogPile
Back to top
View user's profile Send private message 
paul1149

Joined: 13 Aug 2011
Posts: 24

PostPosted: Tue 25 Dec 2012, 21:20    Post subject:  

Ok, thanks. That went pretty smoothly. There was no menu item that I saw, but i restarted the two services via the command line. Then the test failed: NT login error.

But Win7 did see Puppy, and can write to it.

I'm wondering where the network access is on Puppy. And why when I look at root on Win7 it's a different folder structure than shows under root in the Puppy file manager.

Much thanks again for your help.
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 4277
Location: Earth

PostPosted: Tue 25 Dec 2012, 22:10    Post subject:  

paul1149 wrote:
... Then the test failed: NT login error. ... .
Can you share when you got this error. On which step number did you get the error?

Thanks in advance for your help with this.

_________________
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 Engine or use DogPile
Back to top
View user's profile Send private message 
paul1149

Joined: 13 Aug 2011
Posts: 24

PostPosted: Tue 25 Dec 2012, 22:24    Post subject:  

gcmartin wrote:
Can you share when you got this error. On which step number did you get the error?


It was at
Code:
type "smbclient -L localhost"
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 4277
Location: Earth

PostPosted: Tue 25 Dec 2012, 22:49    Post subject:  

Check your PM for a question about your post, below.

Thanks in advance

_________________
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 Engine or use DogPile
Back to top
View user's profile Send private message 
paul1149

Joined: 13 Aug 2011
Posts: 24

PostPosted: Tue 25 Dec 2012, 22:54    Post subject:  

Yes I did. I thought it best for safety. You've got to realize I'm a babe in the woods on this stuff.

I don't recall a password query on the linux side at all. The Win7 side, yes. And I entered the samba login in Windows. That's a little weird because Windows states that root is an account on the Win7 machine in the login box. But I knew linux was not going to recognize my windows login - or at least I suspected so.
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 4277
Location: Earth

PostPosted: Tue 25 Dec 2012, 23:07    Post subject:  

paul1149 wrote:
Yes I did. I thought it best for safety. You've got to realize I'm a babe in the woods on this stuff. ...
OK, I understand. But some of the issues you are seeing is because you may be trying to start your trek from a position without following guidelines to get you started easily.

Once you're started, you can then begin to impose necessary changes to match any environmental needs you feel appropriate.

But, in actuality, I claim responsibility for not sharing that in getting you started, you really should have set BOTH the Linux and the SAMBA passwords to be the same so that all would go smoothly thru-out the initial setup and tests.

So, now, that you have an understanding of what it takes to get your sharing efforts going, you might want to turn your f/w back on.

Here to help Smile

_________________
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 Engine or use DogPile
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [16 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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.0904s ][ Queries: 12 (0.0044s) ][ GZIP on ]