Howto: Set up a simple (insecure) Windows compatible network

How to do things, solutions, recipes, tutorials
Message
Author
disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#16 Post by disciple »

Please post your smb.conf
You might also like to mention which Puppy version you are running and which Samba package you installed

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#17 Post by disciple »

this SAMBA troubleshooting guide says
A message that warns of an invalid or bad network name could mean that the tmp service on the Samba server isn't correctly configured.
I have no idea what the tmp service is, but do you actually want to have to log in with a user name and password?

lurahxp
Posts: 17
Joined: Wed 28 Nov 2007, 07:01
Location: indonesia, jawa tengah,jawa barat
Contact:

ok.i will post samba.conf

#18 Post by lurahxp »

i wil post samba.conf
sorry i can't read this forum quickly and then practice because i don't have acces internet.ok thanks

lurahxp
Posts: 17
Joined: Wed 28 Nov 2007, 07:01
Location: indonesia, jawa tengah,jawa barat
Contact:

my smb.conf

#19 Post by lurahxp »

after i post my error, i try change password root . then my puppy when booting asking pasword. i dont know pasword. so i try instal fresh pupy
1. i instal samba 3.0.25b
2. i copy to rc.samba to /lib ( i foregt where i get this information)
3. this my smb.conf


[GLOBAL SECTION]

workgroup = HOME
server string = Samba Server
security = share
server signing = no
paranoid server security = no
read only = no
case sensitive = no
restrict anonymous = no
netbios name = PUPPYPC
max protocol = NT
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
domain master = no
prefered master = no
dns proxy = no
ldap ssl = no

[puppypc section]

path = /
guest ok = yes
writable = yes
force user = root
browseable = yes

[sharedstuff section]

Path = /sharedstuff
guest ok = yes
writable = yes
force user = root
browseable = yes

i try type
# /etc/rc.d/rc.samba start
Starting Samba: /usr/sbin/smbd -D
/usr/sbin/smbd: error while loading shared libraries: libdm.so.0: cannot open shared object file: No such file or directory
/usr/sbin/nmbd -D

then i type (i forget where i get this way)

# ln -s /lib/libddm.so.0.0.4 /lib/libdm.so.0
ln: creating symbolic link `/lib/libdm.so.0': File exists
#

please help me :) because i very newbi

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#20 Post by disciple »

OK, firstly is your libdm problem sorted out?
If you still get that error message, browse to /lib and make sure libdm.so.0 and anything it is linked to have their permissions set to executable. (There is an option to set the permissions when you right click on them)
If they are already set to executable, or if libdm.so.0 is a broken link, delete libdm.so.0, and create it again as a link to libddm.so.0.0.4
(The ln -s command was to make libdm.so.0 as a link to libddm.so.0.0.4, just like making a link by right clicking in ROX, but you got an error because libdm.so.0 already existed and that command won't automatically overwrite it).

lurahxp
Posts: 17
Joined: Wed 28 Nov 2007, 07:01
Location: indonesia, jawa tengah,jawa barat
Contact:

i succes samba,but how conect from win Xp?

#21 Post by lurahxp »

i delete libdm.so.0 then copy libdm.so.0.0.4 to libdm.so.0
i type /etc/rc.d/rc.samba start
its working. samba start without error

but i can see puppypc in windowsXp. then i dobel click, winXP asking username and passowrd. i fill
username: root
pasword : woofwoof
stil not working.

username: guest
pasword : (blank
stil not working.

then in my puppy i type

Code: Select all

# smbclient -L puppypc
Password: 
Anonymous login successful
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.25b]

        Sharename       Type      Comment
        ---------       ----      -------
        puppypc section Disk      
        sharedstuff section Disk      
        IPC$            IPC       IPC Service (Samba 3.0.25b)
Anonymous login successful
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.25b]

        Server               Comment
        ---------            -------
        PUPPYPC              Samba 3.0.25b

        Workgroup            Master
        ---------            -------
        WORKGROUP 

then in winXP
stil asking username and pasword
so, what i must do?
i want without pasword
and why reading Puppypc in winXP it'a need more time, not fast i hope,
like between windows

thanks, for help

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#22 Post by disciple »

Try making your smb.conf look more like mine.
e.g. you don't have a

Code: Select all

public = Yes 
line (You can either have it in the global section or repeated in the section for each share.

lurahxp
Posts: 17
Joined: Wed 28 Nov 2007, 07:01
Location: indonesia, jawa tengah,jawa barat
Contact:

thanks, its working with your smb.conf

#23 Post by lurahxp »

it's working. i remember, i got my smb.conf from another link in this forum. then i try with your smb.conf. i just change some line for fit my network

Code: Select all

workgroup=lb  
netbios name = puppypc1
and i fill semicolon in

Code: Select all

;;msdfs proxy = No
to un activated item
now i acces puppy from winxp or from another puppy it's fast like between windows

thanks very much disciple

tata888
Posts: 16
Joined: Wed 11 Jun 2008, 02:06

#24 Post by tata888 »

Could anyone please tell me on how to download full samba. as I keep having difficulties with the dependencies

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#25 Post by disciple »

If the samba in the official petget repository doesn't work (I think it should - at least if there is one in the Puppy 2 or 4 repositories), try http://dotpups.de/dotpups/Network/Samba-3.0.21c.pup
But the dotpup is huge, as it has a lot of unnecessay documentation and stuff, and if you have Puppy 4, you will also need to install the dotpup handler first.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#26 Post by jpeps »

disciple wrote:If the samba in the official petget repository doesn't work (I think it should - at least if there is one in the Puppy 2 or 4 repositories), try http://dotpups.de/dotpups/Network/Samba-3.0.21c.pup
But the dotpup is huge, as it has a lot of unnecessay documentation and stuff, and if you have Puppy 4, you will also need to install the dotpup handler first.
..so many alternatives; I really like PureFTPd...no config files, etc., just ftp from your windows computer & your /root/ftpd folder appears... simple as that....Turn it off when you're through.

lcrimail
Posts: 25
Joined: Mon 30 Jun 2008, 14:22
Location: Italia

#27 Post by lcrimail »

I'm a beginner, very bginner!
i have puppy 4.0
I have a local area network.
I installed samba 3.0.26 and i did set smb.conf into etc/opt/samba/ directory as:

Code: Select all

;*******************section global*****************
[global]
public = Yes
;this is the name of the windows workgroup the computer should show up in, so should match whatever you use in any Windows computers
workgroup = ARCO
server string = Samba Server %v
security = share
log file = /var/log.%m
max log size = 50
server signing = No
paranoid server security = No
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
preferred master = No
domain master = No
dns proxy = No
ldap ssl = No
message command = /usr/local/bin/LinPopUp "%f" "%m" %s; rm %s
read only = No
case sensitive = No
;this line works for me, but I have commented it out as other people say it causes trouble with Windows XP clients.
;msdfs proxy = No
restrict anonymous = No
;this is the name of the computer on the network, so if you are dual-booting, it should match what your computer is called in Windows
netbios name = Puppylcrimail
max protocol = NT
;*******************section printers*****************
;I think Cups automatically shares printers with other PCs running CUPS, so this is mainly useful for Windows clients.
[printers]
browseable = yes
printable = yes
create mode = 0700
guest only = yes
use client driver = yes
path = /tmp
;*******************section green room*****************
[green room]
path = /mnt/home
guest ok = Yes
writeable = Yes
force user = root
;*******************section e*****************
[e]
path = /mnt/hdb5
guest ok = Yes
writeable = Yes
force user = root
;*******************section f*****************
[f]
path = /mnt/hdb6
guest ok = Yes
writeable = Yes
force user = root
;*******************section Puppy*****************
[Puppy]
path = /
guest ok = Yes
writeable = Yes
force user = root 
In my windows network I don't see puppy.


I removed samba and installed http://dotpups.de/dotpups/Network/Samba-3.0.21c.pup but don't change nothing.

What do i have to do?

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#28 Post by disciple »

After installing Samba and editing smb.conf, have you either rebooted the computer, or manually started Samba?
You need to. Look in pprocess, or run `top` in a terminal, and see if the smb.d and nmb.d processes are running. If they are, run `/etc/rc.d/rc.samba restart` in a terminal. If they are not, run `/etc/rc.d/rc.samba start` in a terminal.

BTW you would probably want to edit smb.conf more. You probably don't have hdb5 and hdb6 partitions, in which case you can't share them, and you probably don't want to share /mnt/home as "green room", although you may want to share it as something.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

lcrimail
Posts: 25
Joined: Mon 30 Jun 2008, 14:22
Location: Italia

#29 Post by lcrimail »

I have done as you told me with puppy 4 and puppy 3.1

Samba don't start, it says: permission denied.

My smb.conf is:

Code: Select all

[global]
public = Yes
;this is the name of the windows workgroup the computer should show up in, so should match whatever you use in any Windows computers
workgroup = HOOD
server string = Samba Server %v
security = share
log file = /var/log.%m
max log size = 50
server signing = No
paranoid server security = No
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
preferred master = No
domain master = No
dns proxy = No
ldap ssl = No
message command = /usr/local/bin/LinPopUp "%f" "%m" %s; rm %s
read only = No
case sensitive = No
;this line works for me, but I have commented it out as other people say it causes trouble with Windows XP clients.
;msdfs proxy = No
restrict anonymous = No
;this is the name of the computer on the network, so if you are dual-booting, it should match what your computer is called in Windows
netbios name = Green Room
max protocol = NT 
[puppypc section]

path = /
guest ok = yes
writable = yes
force user = root
browseable = yes

[share section]

Path = /share
guest ok = yes
writable = yes
force user = root
browseable = yes 

lcrimail
Posts: 25
Joined: Mon 30 Jun 2008, 14:22
Location: Italia

#30 Post by lcrimail »

Who wants to make a simple guide for us newbie?

If I don't resolve this ..I think to leave puppy

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#31 Post by disciple »

Samba don't start, it says: permission denied.
Good, we have found the problem.
For some strange reason either the samba daemons themselves, or the start script rc.samba, aren't set to be executable. From your description, I'm not sure which is the case.

If you see a message like this:
# /etc/rc.d/rc.samba start
bash: /etc/rc.d/rc.samba: Permission denied
Then right-click (in ROX) on rc.samba->File 'rc.samba'->Permissions, and choose to make it executable.

If you see a message like this:
# /etc/rc.d/rc.samba start
/etc/rc.d/rc.samba: line 14: /usr/sbin/nmbd: Permission denied
/etc/rc.d/rc.samba: line 15: /usr/sbin/smbd: Permission denied
then use the same method to make smbd and nmbd executable.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

lcrimail
Posts: 25
Joined: Mon 30 Jun 2008, 14:22
Location: Italia

#32 Post by lcrimail »

I have configured rc.samba succesfully but when I execute /etc/rc.d/rc.samba start ...(see the image below).

I don't succeed to execute the libdm command...(see the image)
Attachments
Immagine 1.png
(16.48 KiB) Downloaded 3148 times

lcrimail
Posts: 25
Joined: Mon 30 Jun 2008, 14:22
Location: Italia

#33 Post by lcrimail »

Otherwise when I execute Testparm this is the message:
Attachments
Immagine 2.png
(21.3 KiB) Downloaded 5011 times

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#34 Post by disciple »

Oh, OK. So you're using the official samba package again (the dotpup doesn't need libdm).

You can get libdm from http://www.murga-linux.com/puppy/viewto ... 728#145728

Make a link to it called libdm.so.0, and make sure it is executable.

Hopefully that will be the last problem to solve
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

lcrimail
Posts: 25
Joined: Mon 30 Jun 2008, 14:22
Location: Italia

#35 Post by lcrimail »

the response is like the photo in attachment.

now how can i browse the windows network from puppy?
Attachments
Immagine 1.png
(10.96 KiB) Downloaded 3116 times

Post Reply