[APP] Samba Server for Android

Search This thread

DAGr8

Inactive Recognized Developer
Feb 27, 2010
3,713
6,309
Montreal
hey there I was lookin for similar feature , its not exactly the sme well it is , but anyways , Estrong Explorer does the job for what you are tryin to do , ( ESexplorer) free inmarket . as long as phone is reg on network it will access your share
 

JimmyChingala

Senior Member
Apr 14, 2010
199
228
Melbourne
Hi, I just got Samba server (2.2.12) working on my HTC Hero. The daemons smbd+nmbd take up just under 4Mb memory when running (and opening a shared folder on the phone from a computer on the network will launch another smbd daemon, which is about 2.5Mb).

The main problem I'm having is slow xfer rates - seems to max out at 600 - 700Kb/s. Its the same if i SCP files though, so I dont think its a problem is with samba specifically...

I can provide a tarball with the files if you want to try it out (install & configuration is through a root shell, its all pretty basic at the moment).

- Jimmy
 

Jack_R1

Senior Member
Aug 9, 2009
4,362
964
By all means, I'd like to try it on my Nexus. Just finished a thread about changing Nexus One's hostname from default "localhost", and understood that besides my router, I can't do much with it on Windows network w/o DNS :)
Please post the files & instructions.
 

JimmyChingala

Senior Member
Apr 14, 2010
199
228
Melbourne
Have attached a zip file containing the samba files + README.txt with basic install instructions. Access the phone shared folder via Windows network browsing, or with \\IPaddress of the phone.

** See a later post by me in this thread that has a newer version of Samba attached which includes automated install/uninstall script.
 

Attachments

  • sambaAndroid-0.3b.zip
    2.6 MB · Views: 4,164
  • README.txt
    5.6 KB · Views: 3,753
Last edited:
  • Like
Reactions: gggirlgeek

Jack_R1

Senior Member
Aug 9, 2009
4,362
964
Hi,

I've checked the most recent version and the one before it, on Nexus.
Both exhibit the same behavior.

1) When trying to unzip to SD card, everything's ok and the default file attributes are preserved. When extracting to /data/local, no matter which way is used, "executable" attributes aren't preserved - only RW attributes. chmod +rwx samba/bin/* doesn't help, and when trying to execute "samba-rc start" via Terminal on the phone, it shows: "ash: can't find samba-rc" (I'm using ash). Using "su samba-rc start" also doesn't help, it shows "permission denied".

2) Trying to execute smbpasswd - it asks for a new password and confirmation, and crashes with segmentation fault.

3) Trying to execute samba-rc from ADB SHELL didn't throw any error messages, but it didn't work either.
 

Jack_R1

Senior Member
Aug 9, 2009
4,362
964
I've tried both running from the phone's terminal emulator and by adb shell (I don't open the shell continuously, I run each command separately - adb shell "command", this way I can dump the output to PC by adding > in the end).

/data/local/samba/bin/nmbd -i -d 99

Looks like it's working, both from phone's terminal emulator and from adb shell. I see the Nexus being discovered by Windows 7 workstation on network scan (I've personalized the name - read my thread in Nexus development section on how to do that). nmbd_log attached, to check that everything's ok.

/data/local/samba/bin/smbd -i -d 99

Here the things start getting more interesting.
1) If I try to connect, after some time the smbd stops by itself - looks like after 5 failed attempts the server auto-stops itself. That's not a good behavior, especially considering that while Windows prompts you for username and password to connect, it also keeps trying to auto-connect using the default username (that's where 5 attempts come from). The server shouldn't stop itself. smbd_log1 attached.
2) If I write the user on time, smbd crashes while trying to compare passwords. smbd_log2 attached.

All the logs are zipped.
 

Attachments

  • samba_logs.zip
    13.8 KB · Views: 352

JimmyChingala

Senior Member
Apr 14, 2010
199
228
Melbourne
Thanks for the info Jack.

With the shell script, can you try running it like:

sh -c "/data/local/samba/bin/samba-rc restart"

if that still doesnt work, as a further test, open two root sessions via adb shell, in one run the nmbd command, in the other run the smbd (both with same options as before) then try browsing again from your computer.

Note: dont let your phone go into sleep mode (keep the screen active so the display stays on).

- JC
 
Last edited:

Jack_R1

Senior Member
Aug 9, 2009
4,362
964
I had a chance to play with both versions some more.

1) using su and no shell (not running ash) I can run samba-rc, and it executes correctly. Both processes (nmbd and smbd) show up in ps. To achieve that, I needed to chmod +rwx /samba/bin/* after unzipping.

2) nmbd works well, and the phone shows up on Windows network.

3) It still doesn't allow logging into it, and I believe the problem lies in smbpasswd executable, which still shows erroneous behavior:

Tried to login using default user bogan: "network resource not available" message coming from Windows upon entering login credentials. Phone stays on the network and can be accessed again, but login is still impossible.

Tried to change default user's password: smbpasswd asks for new password twice (without asking for the old one - which is wrong behavior!) and crashes with segmentation fault.

Tried removing /samba/private/smbpasswd file and creating a new one, using smbpasswd -add username. Worked, but no password was asked for the user.

Tried to change password for new username. The same as before - asked for new password twice, then crashed with segmentation fault.

When tried to login with the new user, it didn't show "network resource not available", but it kept asking for password (the dialog where username is already there, and only the password needs to be retyped). I didn't know the default password that smbpasswd creates, if any. Tried nothing, tried several basic options (root, same as username, etc), none worked.

I believe the problem might be smbpasswd not working correctly on Android 2.1.
 

DocMAX

Senior Member
Nov 22, 2006
749
40
ich started samba via chroot debian. i can read and write the filesystem.. except mapped /sdcard... i cannot delete files... any ideas how to set permissions? the user is 1000 and group is 1015
 

Jack_R1

Senior Member
Aug 9, 2009
4,362
964
Played some more with it, and I can definitely point at authentication as the source of the problems. I got it to work. Not too well - because it lacks any security whatsoever - but at least it works.

First, about the problems:

When mistyping the password one of the times, smbpasswd shows correct error message and gracefully exits.
When doing everything correctly, it crashes - but writes /private/smbpasswd file before that.
I've tried to run it with debug level = 9, it showed lots of info when starting, and after changing passwords - just the regular "Segmentation fault" crash.

in smb.conf, setting password encryption = off causes the Windows to throw "this user isn't authorized to login from this station" error instead of asking for username.




But, how I got things to work?
Well, since I was certain that it's the authentication mechanisms that prevent it from working, I prevented those authentication mechanisms from functioning. At first I wanted to ask Jimmy for a test version that would ignore user/password checking, but then I thought that I might do it in smb.conf file. So here is what I did:

[global]
security = SHARE # instead of USER

[sdcard]
guest ok = yes # instead of no

With these settings, I get no password prompts and Samba works! I see SD card share, and can copy to/from it.

Notes:
* The main script (samba-rc) works well in killing all the smbd processes on stop/restart.
* Server still runs when the phone is in sleep mode, just much slower.



Jimmy, could you please test smbpasswd compilation to find out why it crashes on 2.1 (I'm running Cyanogen 5.0.6)? Once it's done, I believe that this will work anywhere.

Also, something could probably be done to make it speed up CPU / network on demand when the phone is sleeping, or to prevent the phone from sleeping while it's running - and a GUI can be made for controlling it, since it'll be fully functional.
 

JimmyChingala

Senior Member
Apr 14, 2010
199
228
Melbourne
Hi Jack,

Nice work with your testing :)

I'd like to take a look at all the file permissions samba unzip'd with and compare them to what they should be - could you post output of

ls -laR /data/local/samba​

smbpasswd probs: could you delete /data/local/samba/private/smbpasswd and add a user with bin/smpasswd using '-a' rather than '-add', like

/data/local/samba/bin/smbpasswd -a jack​

then re-enable authentication in the config file and see how it goes?

I'll see what the options might be for the sleep mode network speed slow down (I do want to package it all up with GUI config and control options etc eventually, i suspect the sleep mode stuff will be easier to control this way too).

- JC
 

JimmyChingala

Senior Member
Apr 14, 2010
199
228
Melbourne
ich started samba via chroot debian. i can read and write the filesystem.. except mapped /sdcard... i cannot delete files... any ideas how to set permissions? the user is 1000 and group is 1015

So you're doing a chroot to somewhere else on the phone filesystem before starting samba, if i understand correctly?

Have you tested it without chroot to see if the problem still happens? Is there any indication of a permission problem reported in /data/local/samba/var/log.smbd ?

Is 1000 / 1015 the user/group of the files on the sdcard you are trying to delete, or the user / group you've set in samba.conf?

- JC
 

Jack_R1

Senior Member
Aug 9, 2009
4,362
964
Hi Jack,

Nice work with your testing :)
Thanks :)

I'd like to take a look at all the file permissions samba unzip'd with and compare them to what they should be - could you post output of
ls -laR /data/local/samba​
Please remember that I've changed the /bin/* permissions from 666 to 777, and it shows in the list below.
Here:
/data/local/samba:
drwxrwxrwx 1 root root 2048 May 17 00:20 .
drwxrwx--x 1 shell shell 2048 May 17 00:20 ..
-rw-rw-rw- 1 root root 4178 May 17 00:20 README.txt
drwxrwxrwx 1 root root 2048 May 17 00:20 bin
drwxrwxrwx 1 root root 2048 May 24 17:05 lib
drwxrwxrwx 1 root root 2048 May 19 20:10 private
drwxrwxrwx 1 root root 2048 May 17 00:23 var

/data/local/samba/bin:
drwxrwxrwx 1 root root 2048 May 17 00:20 .
drwxrwxrwx 1 root root 2048 May 17 00:20 ..
-rwxrwxrwx 1 root root 457952 May 17 00:20 killsamba
-rwxrwxrwx 1 root root 870592 May 17 00:20 nmbd
-rwxrwxrwx 1 root root 396 May 17 00:20 samba-rc
-rwxrwxrwx 1 root root 1839404 May 17 00:20 smbd
-rwxrwxrwx 1 root root 948992 May 17 00:20 smbpasswd

/data/local/samba/lib:
drwxrwxrwx 1 root root 2048 May 24 17:05 .
drwxrwxrwx 1 root root 2048 May 17 00:20 ..
drwxrwxrwx 1 root root 2048 May 17 00:20 codepages
----rwxr-x 1 root root 708 May 24 17:05 smb.conf

/data/local/samba/lib/codepages:
drwxrwxrwx 1 root root 2048 May 17 00:20 .
drwxrwxrwx 1 root root 2048 May 24 17:05 ..
-rw-rw-rw- 1 root root 588 May 17 00:20 codepage.1125
-rw-rw-rw- 1 root root 140 May 17 00:20 codepage.1251
-rw-rw-rw- 1 root root 196 May 17 00:20 codepage.437
-rw-rw-rw- 1 root root 148 May 17 00:20 codepage.737
-rw-rw-rw- 1 root root 388 May 17 00:20 codepage.775
-rw-rw-rw- 1 root root 132 May 17 00:20 codepage.850
-rw-rw-rw- 1 root root 172 May 17 00:20 codepage.852
-rw-rw-rw- 1 root root 132 May 17 00:20 codepage.857
-rw-rw-rw- 1 root root 460 May 17 00:20 codepage.861
-rw-rw-rw- 1 root root 588 May 17 00:20 codepage.866
-rw-rw-rw- 1 root root 8 May 17 00:20 codepage.932
-rw-rw-rw- 1 root root 8 May 17 00:20 codepage.936
-rw-rw-rw- 1 root root 8 May 17 00:20 codepage.949
-rw-rw-rw- 1 root root 8 May 17 00:20 codepage.950
-rw-rw-rw- 1 root root 131614 May 17 00:20 unicode_map.1125
-rw-rw-rw- 1 root root 131614 May 17 00:20 unicode_map.1251
-rw-rw-rw- 1 root root 131614 May 17 00:20 unicode_map.437
-rw-rw-rw- 1 root root 131614 May 17 00:20 unicode_map.737
-rw-rw-rw- 1 root root 131614 May 17 00:20 unicode_map.775
-rw-rw-rw- 1 root root 131614 May 17 00:20 unicode_map.850
-rw-rw-rw- 1 root root 131614 May 17 00:20 unicode_map.852
-rw-rw-rw- 1 root root 131614 May 17 00:20 unicode_map.857
-rw-rw-rw- 1 root root 131614 May 17 00:20 unicode_map.861
-rw-rw-rw- 1 root root 131614 May 17 00:20 unicode_map.866
-rw-rw-rw- 1 root root 262174 May 17 00:20 unicode_map.932
-rw-rw-rw- 1 root root 262174 May 17 00:20 unicode_map.936
-rw-rw-rw- 1 root root 262174 May 17 00:20 unicode_map.949
-rw-rw-rw- 1 root root 262174 May 17 00:20 unicode_map.950
-rw-rw-rw- 1 root root 131614 May 17 00:20 unicode_map.ISO8859-1
-rw-rw-rw- 1 root root 131614 May 17 00:20 unicode_map.ISO8859-13
-rw-rw-rw- 1 root root 131614 May 17 00:20 unicode_map.ISO8859-15
-rw-rw-rw- 1 root root 131614 May 17 00:20 unicode_map.ISO8859-2
-rw-rw-rw- 1 root root 131614 May 17 00:20 unicode_map.ISO8859-5
-rw-rw-rw- 1 root root 131614 May 17 00:20 unicode_map.ISO8859-7
-rw-rw-rw- 1 root root 131614 May 17 00:20 unicode_map.ISO8859-9
-rw-rw-rw- 1 root root 131614 May 17 00:20 unicode_map.KOI8-R
-rw-rw-rw- 1 root root 131614 May 17 00:20 unicode_map.KOI8-U

/data/local/samba/private:
drwxrwxrwx 1 root root 2048 May 19 20:10 .
drwxrwxrwx 1 root root 2048 May 17 00:20 ..
-rw------- 1 root root 8192 May 26 14:08 secrets.tdb
-rw------- 1 root root 101 May 19 20:10 smbpasswd

/data/local/samba/var:
drwxrwxrwx 1 root root 2048 May 17 00:23 .
drwxrwxrwx 1 root root 2048 May 17 00:20 ..
drwxrwxrwx 1 root root 2048 May 26 14:08 locks
-rw-r--r-- 1 root root 23957 May 26 14:08 log.nmbd
-rw-r--r-- 1 root root 37485 May 26 14:08 log.smbd
drwxrwxrwx 1 root root 2048 May 17 00:20 tmp

/data/local/samba/var/locks:
drwxrwxrwx 1 root root 2048 May 26 14:08 .
drwxrwxrwx 1 root root 2048 May 17 00:23 ..
-rw-r--r-- 1 root root 696 May 24 18:06 brlock.tdb
-rw-r--r-- 1 root root 154 May 24 18:06 browse.dat
-rw-r--r-- 1 root root 8192 May 26 14:08 connections.tdb
-rw-r--r-- 1 root root 696 May 24 18:06 locking.tdb
-rw------- 1 root root 696 May 26 14:08 messages.tdb
-rw-r--r-- 1 root root 20 May 26 14:08 nmbd.pid
-rw------- 1 root root 8192 May 24 18:06 ntdrivers.tdb
-rw------- 1 root root 696 May 24 18:06 ntforms.tdb
-rw------- 1 root root 8192 May 24 18:06 ntprinters.tdb
-rw------- 1 root root 8192 May 24 18:06 printing.tdb
-rw------- 1 root root 8192 May 24 18:06 share_info.tdb
-rw-r--r-- 1 root root 20 May 26 14:08 smbd.pid
-rw-r--r-- 1 root root 16384 May 24 18:08 unexpected.tdb

/data/local/samba/var/tmp:
drwxrwxrwx 1 root root 2048 May 17 00:20 .
drwxrwxrwx 1 root root 2048 May 17 00:23 ..


smbpasswd probs: could you delete /data/local/samba/private/smbpasswd and add a user with bin/smpasswd using '-a' rather than '-add', like
/data/local/samba/bin/smbpasswd -a jack​
then re-enable authentication in the config file and see how it goes?
Did so. It didn't work, but it helped me better understand one more symptom.
1) When adding with "-a", it accepted the new password and didn't crash.
2) I still couldn't login with the user.
3) I tried using debug options ("-i -d 99") and got it exiting after login attempts (login still failed).
4) I created a Samba user with the same name as Windows user, and tried to log in. This time it searched and found the password, but then crashed with the following error (this is the end of the log file):

[000] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
[010] 00 00 00 00 00 00 00 00 51 97 2D 64 E2 C4 1E 10 ........ Q.-d....
[020] C2 C0 E9 19 DB 64 5B 98 01 01 00 00 00 00 00 00 .....d[. ........
[030] 0F A7 B4 B3 DF FD CA 01 D0 DE 19 BB 42 22 52 CA ........ ....B"R.
[040] 00 00 00 00 02 00 12 00 57 00 4F 00 52 00 4B 00 ........ W.O.R.K.
[050] 47 00 52 00 4F 00 55 00 50 00 00 00 00 00 00 00 G.R.O.U. P.......
[060] 00 00 4B 69 73 75 6C 79 61 00 4B 69 73 75 6C 79 ..Kisuly a.Kisuly
[070] 61 2D 50 43 00 00 00 a-PC...
switch message SMBsesssetupX (pid 1988)
created /data/local/samba/var/tmp/SMBsesssetupX.8.req len 220
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
change_to_root_user: now uid=(0,0) gid=(0,0)
passlen1=24, passlen2=74
Domain=[Kisulya-PC] NativeOS=[] NativeLanMan=[]
sesssetupX:name=[Kisulya]
lp_file_list_changed()
file /data/local/samba/lib/smb.conf -> /data/local/samba/lib/smb.conf last mod_time: Thu May 27 20:36:57 2010

pass_check: Checking password for user kisulya (l=74)
NT Password did not match for user 'kisulya'!
Defaulting to Lanman password for kisulya
pdb_getsampwnam: search by name: kisulya
startsmbfilepwent_internal: opening file /data/local/samba/private/smbpasswd
getsmbfilepwent: returning passwd entry for user jack, uid 0
getsmbfilepwent: returning passwd entry for user kisulya, uid 0
endsmbfilepwent_internal: closed password file.
pdb_getsampwnam: found by name: kisulya
===============================================================
INTERNAL ERROR: Signal 11 in pid 1988 (2.2.12 Android build (JimmyChingala))
Please read the file BUGS.txt in the distribution
===============================================================
PANIC: internal error




I guess I'll ask you for a debug version of the build, that logs every step in the password checking under debug mode. "Signal 11" isn't too clear :)
 
Last edited:

JimmyChingala

Senior Member
Apr 14, 2010
199
228
Melbourne
Hi Jack, your file permissions look mostly ok - ive assembled the sambaArchive differently now, should hopefully avoid the permission probs you saw.

Tracked down the cause of smbd crashing in debug mode too, so we should be able to get some proper debug info about whats happening to authentication.

The bin/smbpasswd segfaults are fixed - adding/removing users, changing passwords seems to work ok.

Have attached the updated archive sambaAndroid-0.3.zip to my other post in this thread.

- JC
 

Jack_R1

Senior Member
Aug 9, 2009
4,362
964
Great work, Jimmy. Tested, and everything looks functional.

Adding user works.
Removing user works.
Authentication works - also tested with non-default user.

Things left:
Auto-detect local network interface on start / on install.
Prevent slowdown in sleep mode.

Thanks a lot for making it work!
 
Last edited:

Jack_R1

Senior Member
Aug 9, 2009
4,362
964
Damn, just got home and tested on my system. I guess it was too fast to declare it's fully functional.

Jimmy, I suppose you're testing it on Windows XP? Because it definitely works on XP, as I wrote earlier. But the problem is that once I start using Windows 7, the authentication mechanism changes somehow (my guess, it also could be the protocol - I didn't save the logs so I didn't note the difference, and I don't have XP at home) - and I can't login anymore. I've logged the server output and it looks like no matter what username is provided - Win7 uses its current logged in user to connect to the sharing device (user-level login to the system before logging in to the share itself - this is how Samba is configured), which ultimately results in login failure.

I'll record a successful XP log and an unsuccessful Win7 log tomorrow and post them, but I'm not sure that something can be deduced from them, since they just show different passwords (and Win7 log also shows server exiting when trying to log in with correct user/password, something that doesn't happen on XP - but at least this time it's graceful logged exit, thanks to your fix).

I suggest you test logging in from Vista or Win7 machine with a username that isn't the logged in Windows user.
 

JimmyChingala

Senior Member
Apr 14, 2010
199
228
Melbourne
Thanks for your testing and feedback, Jack!

I'm testing with Vista and XP - no Win7 yet.

A couple of things to double check:

- If the phone has been in sleep mode for an extended period, or wifi switched off, then on again, and if a "samba-rc restart" has not been done, strange auth problems will happen. (This shouldnt be a problem if using the dhcp hook script to auto-restart samba).

- Cached session credentials on the client or server can also play havoc with authentication - check "net use" in a cmd shell on your Win client to see if there is cached session info for the phone, and if there is, do a "net use /delete \\phoneIP\IPC$" to delete it. (On the server side, cached information is deleted each time the samba is started).

Manually running "/data/local/samba/bin/samba-rc restart" in adb or ssh root shell on your phone (when not in sleep mode) should fix the above two issues on the server side.

Otherwise take a look at

http://www.builderau.com.au/blogs/codemonkeybusiness/viewblogpost.htm?p=339270746

And see what your 'LAN Manager authentication level' defaults to. On my Vista system, its already set to "Send LM & NTLM - use NTLMv2 session security if negotiated". I dont remember changing this, I think it was the default on my Vista install - maybe i did change it, up late and half asleep one night :confused: .

Anyway, samba2 doesnt support NTLMv2 authentication but i think the workaround in the above URL will address this - if its the problem.. (I'm already working on porting a version of Samba3 that has NTLMv2 auth, but the code is significantly different that i cand just edit the same files and change the same blocks of code :( ).

- JC
 

Top Liked Posts

  • There are no posts matching your filters.
  • 115
    Access the external storage card in your Android device over wifi as a shared folder

    Hi, thanks for your interest in this app!

    If you use it, please do post feedback about success, failure, suggestions for improvement etc. Be sure to include the app version you have installed (Menu -> Settings -> About), your Android device make, model & ROM version, and support log file if you are having problems (Menu -> Settings -> Create Support Log - send via PM or e-mail, please dont post the log to the forums).

    Am also interested to hear about copy xfer rates to/from your device. My HTC Hero gets between 700 KB/s to 1MB/s, my Asus Transformer about 2.5MB/s.

    This app requires your device to already have:
    - root access.
    - Superuser 2.3.6.2 or later, from Android Market (may work with other Android 'su' implementations but I havent tested with any others).


    Installation
    * The two most recent development builds are attached below.
    * Or you can Install the current Android Market version:


    On the first run, make sure you catch the SuperUser Auth request to allow the Samba Filesharing app root access.

    Also, the first run will be a bit slow, the app has to unpack some additional binaries into its private data space.

    GPL: Samba GPL licensing information including source code modification details are included in the app. Once installed go to Menu -> Settings -> About.

    - jc

    Screen shots (click to enlarge):

    110905main_full.png 110905prefs_01_full.png 110905prefs_02_full.png 110905prefs_03_full.png

    Change history


    If you like this app, please consider making a small donation. Not to me, but to one of the charities I strongly support: Cancer Research, or Animal Welfare.

    Dev builds attached below - To install: unzip, and either:
    - ADB: adb install SambaFilesharing<version>.apk
    - FileManager: Copy the APK to /sdcard on your device, then launch with a filemanager program (like Astro).
    (Dev build change history)



    To-Do list (in no particular order)
    - finish notification bar icon re-code
    - Add support for NTFS formatted sdcards.
    - Improve support for devices (eg Tablets) with multiple 'sdcard' type storage devices.
    - multiple/more configurable shared folders, multiple user accounts.
    - add in a CIFS mount manager
    - Improve available characters and lengths of username, password, workgroup, netbios-name fields.
    - toggle widget
    - Add option for persistent display of app 'Menu' button items.
    - move this page to the Android Apps and Games forum.

    (The below SambaFilesharing-dev-130413.zip is the the Google Play 140525 version with extra dev options turned on )
    21
    APP development page has moved to http://xdaforums.com/android/apps-games/app-samba-filesharing-server-android-t2803452/post53869540

    This thread is kept fir reference as it contains valuable information for manual modifications.
    14
    I need that fix ASAP. :)
    If you're keen :) you can try editing /data/data/com.funkyfresh.samba/files/samba-rc to add the chmod line to the start section after line 17:

    Code:
            ...
         7	SPIDFILE=$PRE/var/locks/smbd.pid
         8	NPIDFILE=$PRE/var/locks/nmbd.pid
         9	
        10	case "$1" in
        11		start)
        12	        $0 stop
        13		    $0 cleanup
        14		    $0 rmlogs
        15		    $PRE/nmbd -D
        16		    $PRE/smbd -D
        17		    sleep 1
        18		    [B]chmod 644 $NPIDFILE $SPIDFILE[/B]     # add this line chmod ...
        19		    echo ok
        20		    ;;
        21		stop)
            ...

    I'll include it in the next dev release. Let us know how you go with it.

    - jc
    7
    I'm ready with a beta version, please expect it tomorrow :)
    7
    Hey guys,

    Have unfortunately been absent from further recent development of the app, just to let you know i will be looking into the problems reported running it on Android JB, with the the aim of providing a fix in an updated version of the app in Play store - not yet sure whether it will still be a single one-size-fits-all updated APK , or (more likely) a newer package for JB versions and onwards to keep the package file sizes down. I dont have an ETA yet - ofcourse you'll hear about it first here on XDA : - ) First very quick pass glance seems to be a change in the default kernel support for 'older' Android binary native executables, some custom ROMs have their kernels built to still support the 'older' executabe format so its not an issue in them - am still to confirm that (willl rebuild my villec2 kernel in the next few days to confirm if thats [the only] change / problem i ned to cater for, (And ofcourse if you already know the cause and fix feel free to point me to a thread etc).

    And thanks to everyone who has provided troubleshooting information, assistance, work-arounds, and patches so far for the problems - and of course The core Samba Org Team, who already spent the many years developing the underlying open source Samba cross-platform code.

    - jc