OpenWrt Forum Archive

Topic: Access problems samba 3

The content of this topic has been archived on 2 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have a WRT350N V2.1 from Linksys. Yesterday i installed Backfire 10.03 on it. Now i try to setup a samba server with Luci, but i cant access the share. Windows always ask me after a username and password. I tried to chang "security = user" to "sercurity =  share". Now windows say it have no access to the directory. I use Windows 7. I also try add "public = true" to smb.conf, but always when i restart samba it generate a new smb.conf and delete my changs. Pleas help me.

/etc/samba/smb.conf.templat:

[global]
        netbios name = |NAME|
        workgroup = |WORKGROUP|
        server string = |DESCRIPTION|
        syslog = 10
        encrypt passwords = true
        passdb backend = smbpasswd
        obey pam restrictions = yes
        socket options = TCP_NODELAY
        unix charset = ISO-8859-1
        preferred master = yes
        os level = 20
        security = share
        guest account = nobody
        invalid users = root
        smb passwd file = /etc/samba/smbpasswd

/etc/samba/smb.conf:

global]
        netbios name = openwrt
        workgroup = openwrt
        server string = openwrt
        syslog = 10
        encrypt passwords = true
        passdb backend = smbpasswd
        obey pam restrictions = yes
        socket options = TCP_NODELAY
        unix charset = ISO-8859-1
        preferred master = yes
        os level = 20
        security = share
        guest account = nobody
        invalid users = root
        smb passwd file = /etc/samba/smbpasswd

[homes]
        comment = Home Directories
        browseable = no
        read only = no
        create mode = 0750

[usb]
        path = /usb
        read only = no
        guest ok = yes
        create mask = 0706
        directory mask = 0706

/etc/config/samba:

config 'samba'
        option 'name' 'openwrt'
        option 'workgroup' 'openwrt'
        option 'description' 'openwrt'
        option 'homes' '1'

config 'sambashare'
        option 'read_only' 'no'
        option 'create_mask' '0706'
        option 'dir_mask' '0706'
        option 'name' 'usb'
        option 'path' '/usb'
        option 'guest_ok' 'yes'

(Last edited by Bergi84 on 8 Jul 2010, 09:00)

I solved the public problem, i changed the /etc/init.d/samba and now there is a entry with public = yes but he still say access denied. Have someone a idea?

why not use the openwrt wiki and then the samba wiki?

I found nothing about my problem in the wikis or forum. I'am a linux and openwrt noob, the only reason why i'am come to this point are the wiki's. Without them i coudn't do any thing. Pleas help me.

Looks like sharing works, but permission doesn't allow you to access share contents. Add this option to your share and tell smbd to run the config file directly, NOT through /etc/init.d. See if it works.

force user = root

I have solved the problem but i forgot to post it.

The problem was you can not share drives with Kmod-fs-ntfs because of access restrictions. You need to mount ntfs drives with ntfs-3g.

Hello,

As per my post here [https://forum.openwrt.org/viewtopic.php … 83#p143283] I have not gotten this to work.
How do you remount (automatically) under the method you mentioned? I am using backfire 10.03.

Any help is appreciated.

Thanks!

The discussion might have continued from here.