New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

samba server on android #48

Closed
armando-basile opened this Issue Jan 22, 2016 · 4 comments

Comments

Projects
None yet
2 participants
@armando-basile

armando-basile commented Jan 22, 2016

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

This comment has been minimized.

Show comment
Hide comment
@alllexx88

alllexx88 Jan 24, 2016

Collaborator

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

Collaborator

alllexx88 commented Jan 24, 2016

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

@armando-basile

This comment has been minimized.

Show comment
Hide comment
@armando-basile

armando-basile Feb 3, 2016

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

armando-basile commented Feb 3, 2016

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

@alllexx88

This comment has been minimized.

Show comment
Hide comment
@alllexx88

alllexx88 Feb 5, 2016

Collaborator

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

Collaborator

alllexx88 commented Feb 5, 2016

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

This comment has been minimized.

Show comment
Hide comment
@armando-basile

armando-basile Feb 5, 2016

ok, it work :)

  • remounted /system with read-write permissions
# mount -o remount,rw /system
  • created /etc/passwd with 2 users:
root:x:0:0:root:/data/opt:/bin/bash
nobody:x:1005:1005:nobody:/data/opt:/bin/bash
  • installed avahi
# ipkg install avahi
  • create samba users:
# smbpasswd -a nobody (with empty password)
# smbpasswd -a root (with a real password)
  • modified /opt/etc/samba/smb.conf:
[share]
    path = /storage/external_storage/sda1
    read only = no
    valid users = root
    write list = root
    guest ok = no
  • remounted /system with read-only
# mount -o remount,ro /system
  • launch samba service
# /opt/etc/init.d/S08samba restart

armando-basile commented Feb 5, 2016

ok, it work :)

  • remounted /system with read-write permissions
# mount -o remount,rw /system
  • created /etc/passwd with 2 users:
root:x:0:0:root:/data/opt:/bin/bash
nobody:x:1005:1005:nobody:/data/opt:/bin/bash
  • installed avahi
# ipkg install avahi
  • create samba users:
# smbpasswd -a nobody (with empty password)
# smbpasswd -a root (with a real password)
  • modified /opt/etc/samba/smb.conf:
[share]
    path = /storage/external_storage/sda1
    read only = no
    valid users = root
    write list = root
    guest ok = no
  • remounted /system with read-only
# mount -o remount,ro /system
  • launch samba service
# /opt/etc/init.d/S08samba restart

@alllexx88 alllexx88 closed this Feb 26, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment