How-TO:GFT Mount / via SMB

From Gen4Wiki
Jump to: navigation, search

(Note: tested on 705)

Once you have ssh access, you can run this script which will enable the normal samba access. Unfortunately, I wasn't able to get full root rw access, but it's not too hard to just chmod things into working. The nice part about this is that you can have full smb access even while the device is running other apps. The other nice part is that you can just let the device remember the the "1;/bin/sh .." stuff so it's really easy to go from reboots to hack mode.

I just call this smbstart and put it in the arcwelder directory.

#!/bin/sh
PASSWORD=yourpassword

cat > /tmp/samba/smb.conf <<-'EOF'
[global]
workgroup = Home
netbios name = Archos705
server string = Archos705
log level = 0
security = USER
locking = no
show add printer wizard = no
disable spoolss = yes
username map = /tmp/samba/user.map
min protocol = LANMAN1
os level = 1
interfaces = eth0

[media]
valid users = media root
admin users = media root
force user = root
force group = root
security mask=0777
path = /
writeable = yes
guest ok = no
max connections = 3
EOF

/opt/usr/sbin/smbdhelper
echo -e "$PASSWORD\n$PASSWORD" | smbpasswd -s media


On the Linux side, I do:

sudo mount -t cifs //192.168.1.103/media /media/archos -o user=media -o password=yourpassword

G

Google ads
Personal tools