Hi.

Here is a guide how to see the bug with only an OpenBSD box (no other
Windows/Linux computer are needed):

- You need OpenBSD 5.0
- do all as user root:

Let's go ...


pkg_add samba-3.5.10.tgz
pkg_add sharity-light-1.3p0.tgz

mkdir /tmp/samba
mkdir /tmp/mnt

edit the file "/etc/samba/smb.conf" with the following content:

==========================================================
[global]
        workgroup = WORKGROUP
        map to guest = Bad Password

[test]
        path = /tmp/samba
        force user = root
        read only = No
        guest ok = Yes
==========================================================

then restart samba:
/etc/rc.d/samba restart

Now a Window PC can see in the share "test" the content of "/tmp/samba"
Then we mount this samba share with sharity-light:

shlight //localhost/test /tmp/mnt -n

(if you got the error "unknown host" check /etc/hosts => "127.0.0.1
localhost")

Now You can see in "/tmp/mnt" the content of "/tmp/samba".
but we will verify this:

mkdir /tmp/mnt/folder
ls /tmp/samba

Now you should see the folder "folder".

OK.
Let's crash it.

chown nobody /tmp/mnt/folder

I don't know what, but the chown command has done something bad.
You can now read You emails and do all other things but You can't do one of
these two:

ls /tmp/mnt/folder

or unmount /tmp/mnt with

unshlight -a


Hope it crashes ;-)

thank You for Your help.

Reply via email to