Optware / Optware-ng

279 stars 52 forks source link

samba server on android #48

Closed armando-basile closed 8 years ago

armando-basile commented 8 years ago

Hi, i tryed to use package samba to share on my network my usb hd connected to my box android with optware. There are some problems related to android user management that is not equal to linux, i think similar to dropbear (you released infact specific package dropbear-android)

is there a workaround ?

alllexx88 commented 8 years ago

I believe, the easiest workaround is to create /etc/passwd: it helped me to get openssh-sftp-server to work

armando-basile commented 8 years ago

Could you post a sample of passwd file that could be ok on an android box with optware-ng ? i tryed without success

alllexx88 commented 8 years ago

Hi, Sorry for my late response. I'm quite busy recently, as you can tell from my low activity. Some while ago I posted some CWM flashables on xda, and got zero response, which means there's no interest for Optware-ng on android, so this isn't something that's being worked on by me, but you can still try it: http://forum.xda-developers.com/android/development/cwm-t3237933 Apart from else, it also creates /etc/passwd file with root entry: this is what made openssh-sftp-server to work

armando-basile commented 8 years ago

ok, it work :)

# mount -o remount,rw /system
root:x:0:0:root:/data/opt:/bin/bash
nobody:x:1005:1005:nobody:/data/opt:/bin/bash
# ipkg install avahi
# smbpasswd -a nobody (with empty password)
# smbpasswd -a root (with a real password)
[share]
    path = /storage/external_storage/sda1
    read only = no
    valid users = root
    write list = root
    guest ok = no
# mount -o remount,ro /system
# /opt/etc/init.d/S08samba restart