opkg install luci-app-samba
Start Samba on Boot
Login to router, notice that the Services tab is added to the memu of OpenWRT. Fill in required information as shown in figure below.
* We will create two user accounts for Samba, so we enter user1.user2 to the Allowed users box
Samba Global Section
Setting Folder Permission
/Home folder must be set to full read write permission since it is the share folder for Samba users. Login router with WinSCP and follow pictures below to finish setting folder permission.
Create new user accounts
We must create Samba users for network sharing, so we need to edit the passwd file which is resided in /etc folder of router.
Login to router with WinSCP as shown in figure below
Locate /etc folder of router, right click passwd file and select Edit as shown in figure below.
Lets add two users by append two lines at the end of the passwd file as shown below.
Read here for more about passwd file.
Change passwords for user1 and user2
[email protected]:~# smbpasswd user1 password1
Browse the Share Folder
- Click Start -> Run from Windows XP
- Enter \\openwrt since we use openwrt as the host name
- Or you can enter \\192.168.1.1 (the router IP address)