Author |
Message |
rcrsn51

Joined: 05 Sep 2006 Posts: 13129 Location: Stratford, Ontario
|
Posted: Tue 14 Dec 2010, 09:28 Post subject:
|
|
This is a handy trick! It means that you can create non-privileged users with personal home directories on the server, who can also access a FAT/NTFS share by getting temporary root privilege.
You can control the amount of privilege in the share with "writable" or "read only".
|
Back to top
|
|
 |
gcmartin
Joined: 14 Oct 2005 Posts: 6730 Location: Earth
|
Posted: Wed 15 Dec 2010, 19:13 Post subject:
Managing Users in SAMBA |
|
Yes, this allows user root to have that privilege; and any other users that I might have on the LAN, as well, for example Code: | force user = root,spot,Mom,Dad,Sister,ElderlyNeighbor,Me | Assuming those of the names those users use to logon to their Windows PCs.
Just a note for anyone interested: M$ charges an entry level $1000+ for the Basic Server which does this. IFF you use your search engine for "Linux SAMBA PDC" you will probably find 100 documents of others before us who have setup SAMBA to manage ALL users on your network and what they can and cant see. Its really simple after you get past what we've just done here in "Teaching Puppy to SAMBA". Anyone's choice: $1000 or Open-Source..."What say 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
|
|
 |
8-bit

Joined: 03 Apr 2007 Posts: 3425 Location: Oregon
|
Posted: Fri 08 Apr 2011, 12:43 Post subject:
Subject description: Samba file sharing not working |
|
I am running Puppy Lupu 520 first of all as a frugal install.
I tried following your how to to get the initial settings done and then I tried the commands from a terminal pertaining to retstart.
I had samba-3.5.5-lucid.sfs loaded.
but the restart option was not recognized as a valid option.
Also, all drive and file access on my pc slowed up greatly.
I ended up recovering using a backup of my lupusave.2fs file I had previously made and then copying apps I had installed in wine drive c by removing drive_c and copying the one from the bad pupsave file.
So now, I am at a loss as to where to go from here.
Also, I should mention the the nested mkdir command did not work and I had to make each directory individually.
And smbd and nmbd were reported as not found.
I had to make links to them in /usr/bin to access them.
So simple was not so simple in my case.
|
Back to top
|
|
 |
gcmartin
Joined: 14 Oct 2005 Posts: 6730 Location: Earth
|
Posted: Wed 13 Apr 2011, 19:36 Post subject:
there were some problems with the differing SFSs Subject description: Samba file sharing not working |
|
8-bit wrote: | I am running Puppy Lupu 520 first of all as a frugal install.
I tried following your how to to get the initial settings done and then I tried the commands from a terminal pertaining to retstart.
I had samba-3.5.5-lucid.sfs loaded.
but the restart option was not recognized as a valid option.
Also, all drive and file access on my pc slowed up greatly.
I ended up recovering using a backup of my lupusave.2fs file I had previously made and then copying apps I had installed in wine drive c by removing drive_c and copying the one from the bad pupsave file.
So now, I am at a loss as to where to go from here.
Also, I should mention the the nested mkdir command did not work and I had to make each directory individually.
And smbd and nmbd were reported as not found.
I had to make links to them in /usr/bin to access them.
So simple was not so simple in my case. | So sorry that I just got this. Seems that there are several issues so I will attempt to address them individually.
Firstly, lets start with a nested Linux mkdir command. Would you try that first, and report back.
Next, there were problems with the SFSs files for 3.5.5. I'm not sure which of them you are using. One of them follows the directions, but the other was a sharp departure from the directions. And, for both, NEITHER are supported anymore by either author.
I am in the process of creating a new updated document for users wanted to simply add SAMBA to their non-SAMBA system. I, currently, am concentrating on the newer PUPs because those PUP distro owners have SAMBA available via PPM. This makes your use and a document more generic for all newer PUPs.
But, it you're willing, follow me and I may be able to help you without a manual. Firstly, let me ask this (I don't have a PUP520) "Live" media to boot from: Would you open your PPM and update it. Then exit the PPM and reopen it. Then click the All button in the left column. The large right column should populate. If it does, scan down that list for SAMBA. You will either see 3.4.x or 3.5.6 or 3.5.8. Which do you see?
Select it and report back here which you have (this is because some will update your Menu and the others WONT).
The next 2 things will be easy. PPM me when you hav e done this.
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 Engines or use DogPile
|
Back to top
|
|
 |
mimmo

Joined: 20 Jul 2011 Posts: 19 Location: Versailles, France
|
Posted: Sat 05 Nov 2011, 11:26 Post subject:
Samba 3.5.6 on Lucid-Puppy 5.2.5 |
|
So the first thing for me was that "smbd -restart" did not work...
the solution came after a reboot as at this point I did have a samba running
and the disk of my shared directory was mounted
so I looked wher this guy was started
and the solution is in /etc/init.d/smb
the options are: start|stop|restart|reload|status
#smb restart
works find (I see the changes on the windows side)
from windows I access the readme in the spot home dir
but I have problems to acces Photo
my smb.conf looks like this
Code: | [Photo]
# the path should be readable and writable by the guest account
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
|
I did the very same for Photo and spot ...
I have cheked that directory /mnt/sdb1/Photo is accessible to any one (respectively / 755 / 777 / 777 /)
what's wrong ? any idea
|
Back to top
|
|
 |
gcmartin
Joined: 14 Oct 2005 Posts: 6730 Location: Earth
|
Posted: Sat 05 Nov 2011, 13:18 Post subject:
Re: Samba 3.5.6 on Lucid-Puppy 5.2.5 |
|
mimmo wrote: | ... what's wrong ? any idea | Sorry for the problem(s). We are in the process in updating the manual with those corrections. Thanks (BTW you didn't mention which Puppy version you are using)
If I understand correctly, from your Windows PCs you are having problems getting to the 2 resources you are sharing from Puppy. Right?
If so, I would like you to do 3 things on Puppy and 2 normal things on Windows. This should help to get you started
Puppy
- Using your Editor
- remove the last 2 lines on each resource "create mask= and force group=" (This is only temporarily while we get things working. add them back after you get things working)
- Using a terminal
- Open a terminal and type testparm. (Please post those results back here.)
- In terminal type "smbpasswd -a spot" (remember the password you set for spot)
- In terminal, chmod 765 /root/spot /mnt/sdb1/Photo"
Windows (This assumes that you can see your Puppy PC in "Network Places")
- Open a command prompt and type
- net use r: //IP address of your Puppy PC/Photo /user:spot password4spot
- net use s: //IP address of your Puppy PC/spot /user:spot password4spot
You should not get errors. If you do post them here
You should now be able to "see" and use those Puppy items from the Windows PC(s).
Please post your results for others.
Hope this helps
_________________ 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: Sat 05 Nov 2011, 15:32 Post subject:
Samba 3.5.6 on Lucid-Puppy 5.2.5 |
|
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 "[printers]"
Processing section "[Photo]"
Processing section "[spot]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
unix charset = UTF-8
display charset = UTF-8
workgroup = xxxxxxxxx
server string = Samba Server on Puppy
security = SHARE
map to guest = Bad User
null passwords = Yes
guest account = spot
log file = /var/log/samba/log.%m
max log size = 50
printcap name = cups
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
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
use client driver = Yes
browseable = No
[Photo]
path = /mnt/sdb1/Photo
read only = No
guest only = Yes
guest ok = Yes
[spot]
path = /root/spot
read only = No
guest only = Yes
guest ok = Yes
#
#
|
chmod 765 spot # ok (also it's a strange value for a dir)
chmod 765 Photo # did not work !!!
rebooted both puppy and window
form windows I did the commands with following syntax (got few syntax error at first) the ok/error messages are a quick translation from french
Code: |
>net use s: \\192.168.0.1\spot spot!! /user:spot
command executed correctly
>net use r: \\192.168.0.1\Photo spot!! /user:spot
system error 53
network path not found
|
s: drive OK (I can open the spot readme file find )
r: drive not present
thanks for the help
good night I'll be back tomorow
Last edited by mimmo on Sun 06 Nov 2011, 12:02; edited 1 time in total
|
Back to top
|
|
 |
gcmartin
Joined: 14 Oct 2005 Posts: 6730 Location: Earth
|
Posted: Sun 06 Nov 2011, 04:47 Post subject:
Re: Samba 3.5.6 on Lucid-Puppy 5.2.5 |
|
I dont have PUP525. But, I did have a PUP528 without updates. I fired it up, added SAMBA, had to resolve PATH issues withPUP528, then define a resource and started SAMBA. Worked fine aside from the pathing issues on PUP528 Two-headed Dog
2 things,
I seem to remember somethings about Windows needing to have a service restart when this happened. To prove it, please restart Windows and REVERSE the order of "net use" requests.
ALSO I do remember reporting some issues to Playdayz on some problems with this combination of PPM SAMBA on PUP525. Something was odd about the installation of SAMBA on this Puppy.
I will follow up with you after church and family, later today. This is the only distro that I had any problems unusual problems with.
_________________ 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: Sun 06 Nov 2011, 12:07 Post subject:
Samba 3.5.6 on Lucid-Puppy 5.2.5 |
|
@gcmartin
many thanks,
I was wondering why I should update to 5.2.8 I think you just gave ma a good reason
So I try with 5.2.8 and samba 3.5.6 and ...
it failed in the exact same way spot is ok and photo is not
I didn't find the smbpasswd ! (I don't know if I realy need it)
I'm also fighting with the aliases in roxterm ...
did you try on a directory other than one under /root ?
don't want to poise your sunday
|
Back to top
|
|
 |
gcmartin
Joined: 14 Oct 2005 Posts: 6730 Location: Earth
|
Posted: Sun 06 Nov 2011, 17:20 Post subject:
Samba 3.5.6 on Lucid-Puppy 5.2.5 |
|
mimmo wrote: | @gcmartin ... | Here's a complete installation kit for you use. Should address all short comings that you'll hit using PUP 5.2x.
PM me with any questions you might have.
Hope this helps.
Description |
The console log is a start to finish guide. The smb.conf file is a "SIMPLE" sample for testing to get to your Photos. This compressed file contains a PPM listing, a SAMBA setup console list on a PUP528 with 002 update, and a SAMBA configuratio
|

Download |
Filename |
2Mimmo.tar.gz |
Filesize |
82.99 KB |
Downloaded |
1092 Time(s) |
_________________ 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
Last edited by gcmartin on Fri 11 Nov 2011, 03:18; edited 2 times in total
|
Back to top
|
|
 |
mimmo

Joined: 20 Jul 2011 Posts: 19 Location: Versailles, France
|
Posted: Tue 08 Nov 2011, 16:57 Post subject:
Samba 3.5.6 on Lucid-Puppy 5.2.5 |
|
So I followed all this and more ...
what I believe is that the problem comes when I try to have a link to a directory that is not physically under /root
for example in confd.conf I add
Code: |
[puppyref]
# the path should be readable and writable by the guest account
path = /root/puppy-reference
read only = No
guest ok = Yes
|
I do get acces to "puppyref" from my windows PC
the links are visible but cannot be followed
I tested some other cases of links from spot/ to ../puppy-reference (all under /root ) and it's not functional
Code: |
# pwd
/root/spot
# ls -al
total 3941
drwxr-xr-x 6 spot spot 4096 2011-11-08 21:40 .
drwxr-xr-x 59 root root 4096 2011-11-08 21:18 ..
drwxr-xr-x 2 root root 4096 2011-11-08 21:37 aRootDir
drwxr-xr-x 2 spot spot 4096 2011-11-08 21:38 aSpotDir
drwxr-sr-x 2 root root 4096 2011-11-08 21:30 .didiwiki
-rwxrw-r-- 1 spot spot 4007512 2011-09-25 13:10 IMG_0001.JPG
lrwxrwxrwx 1 root root 19 2011-11-08 21:40 PUPREF -> ../puppy-reference/
-rw-r--r-- 1 spot spot 580 2009-11-19 10:03 README.txt
#
|
So I believe that the problem is here the links are not possible to follow
and /mnt/sdb1/Photo is kind of a link (to the drive)
to check this I also tried a direct link not under root
Code: |
[optsamba]
# the path should be readable and writable by the guest account
path = /opt/samba
read only = No
guest ok = Yes
|
and this one works find I'm perfectly able to browse the full tree of samba from windows
please try to share another mounted disk
Note:the 'smbpasswd' command now works I believe that the rehash on restart brought me that
|
Back to top
|
|
 |
gcmartin
Joined: 14 Oct 2005 Posts: 6730 Location: Earth
|
Posted: Wed 09 Nov 2011, 19:47 Post subject:
Re: Samba 3.5.6 on Lucid-Puppy 5.2.5 |
|
mimmo wrote: | So I followed all this and more ... | There is a problem that I have just confirmed with Lupu528-002M. Seems to have the problem you've just described; namely multi-level directories of items in on the HDD are not able to be accessed from Windows or any other LAN PCs.
There is something very odd about what's happening with the running Live media system with Lupu multimedia ISO. And, something also is "begging" in ROX+Puppy filesystem.
Here's what's happening: Your system boots to desktop. You have some directories defined in /etc/opt/samba/smb.conf that is 3 levels deep (i.e. /mnt/sda1/somefolder.) that have been granted rights of 777 via chmod. When you start SAMBA, he starts normal without error messages. On ANY LAN PC, you try to mount the resource(s) and you DO NOT ACCESS to the resource as you expect.
Resolution:- Stop SAMBA
- Exit to Prompt
- Umount the HDD resources you are trying to access
- Now, remount those resources
- restart SAMBA
- Go to any other LAN PC and mount the resources you had problems with before.
You will see that you can now access them.
This is NOT a problem with SAMBA. Its a problem with the running Filesytem in Puppy.
I am unclear as why this is occurring in this Puppy distro series.
_________________ 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
Last edited by gcmartin on Wed 09 Nov 2011, 21:11; edited 1 time in total
|
Back to top
|
|
 |
playdayz

Joined: 25 Apr 2008 Posts: 3794
|
Posted: Wed 09 Nov 2011, 20:50 Post subject:
|
|
Quote: | Live media system with Lupu multimedia ISO |
The Multimedia ISO of 528-002 has been withdrawn. Well it was never released--it was a test vehicle. http://www.murga-linux.com/puppy/viewtopic.php?p=581224#581224
I am curious to know whether lupu-528.iso (the release on AUG 7 2011) and/or lupu-528.002.iso (currently in testing) have this behavior. I am holding lupu-528.002.iso for another issue. One difference is that lupu-528.iso was created with Woof and lupu-528.002.iso (and lupu-528.002M.iso) were created by remastering. If there is a problem with remastering it would be good to know.
It would also be worth knowing whether Three-Headed Dog (luci-001) has the behavior also--it will be updated and an updated iso released in the future.
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 13129 Location: Stratford, Ontario
|
Posted: Thu 10 Nov 2011, 13:13 Post subject:
Re: Samba 3.5.6 on Lucid-Puppy 5.2.5 |
|
mimmo wrote: | works find (I see the changes on the windows side)
from windows I access the readme in the spot home dir
but I have problems to acces Photo |
Just for clarification:
Exactly what problems are you having?
What kind of device is sdb1? An external USB drive? With what filesystem is it formatted? Is it mounted?
Under what user name are you logging into the Samba server from Windows? As root, spot or guest?
|
Back to top
|
|
 |
gcmartin
Joined: 14 Oct 2005 Posts: 6730 Location: Earth
|
Posted: Thu 10 Nov 2011, 13:59 Post subject:
|
|
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.
@Rcrsn51
Are you using Live media 528 and the PPM's SAMBA?
There are couple 528 application issues I'm seeing in Live media operation, that I wonder if somehow they MAY be related. Or maybe, there is a necessary operations step for Live media use that must be done. Thus far, no shortcuts have been taken and all installation and use is via PPM with standard desktop restarts. I have not rebooted the 528002M that i started with last week.
If you are not having these same problems with PPM and 528M please report what you are seeing. What you see/know may not just apply here, but help PUP528M as well.
Thanks in advance for any help
_________________ 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
Last edited by gcmartin on Thu 10 Nov 2011, 14:35; edited 1 time in total
|
Back to top
|
|
 |
|