LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-31-2015, 03:14 AM   #1
m0zart
LQ Newbie
 
Registered: Aug 2015
Posts: 1

Rep: Reputation: Disabled
OpenWrt and Samba


Hi, I'm getting super weird behavior from samba and OpenWrt.

I have USB stick plugged into my router and auto-mounting and all that works fine.

I've installed samba, added users, but basically I can't connect to the folder with any of the created users.

If I change the password with 'smbpasswd -a <username>' I can't connect anymore and it always returns 'invalid credentials' error. Now I'm at the point where I can only connect to the share if I use user 'nobody' and password '123'. If I change this password to anything else (with smbpasswd -a nobody), I can't connect anymore. Adding new users/passwords doesn't work either.

Guest login doesn't seem to work anymore, but worked at first.

Any suggestions? Should I just try a complete firmware reset or am I missing something here?

Here are my configs:

/etc/passwd file:
Code:
root:x:0:0:root:/root:/bin/ash
daemon:*:1:1:daemon:/var:/bin/false
ftp:*:55:55:ftp:/home/ftp:/bin/false
network:*:101:101:network:/var:/bin/false
nobody:*:65534:65534:nobody:/var:/bin/false
mozart:*:65535:65534:mozart/var:/bin/false
/etc/samba/smb.conf:
Code:
[global]
        netbios name = OpenWrt
        display charset = UTF-8
        interfaces = 127.0.0.1/8 lo 192.168.1.1/24 br-lan
        server string = OpenWrt
        unix charset = UTF-8
        workgroup = WORKGROUP
        browseable = yes
        deadtime = 30
        domain master = yes
        encrypt passwords = true
        enable core files = no
        guest account = nobody
        guest ok = yes
        invalid users = root
        local master = yes
        load printers = no
        map to guest = Bad User
        max protocol = SMB2
        min receivefile size = 16384
        null passwords = yes
        obey pam restrictions = yes
        os level = 20
        passdb backend = smbpasswd
        preferred master = yes
        printable = no
        security = user
        smb encrypt = disabled
        smb passwd file = /etc/samba/smbpasswd
        socket options = TCP_NODELAY IPTOS_LOWDELAY
        syslog = 2
        use sendfile = yes
        writeable = yes


[share]
        path = /mnt/sda1
        valid users = nobody,mozart
        read only = no
        guest ok = no
        create mask = 0700
        directory mask = 0700
/etc/config/samba:
Code:
config samba
        option name 'OpenWrt'
        option workgroup 'WORKGROUP'
        option description 'OpenWrt'
        option homes '0'

config sambashare
        option name 'share'
        option path '/mnt/sda1'
        option read_only 'no'
        option create_mask '0700'
        option dir_mask '0700'
        option users 'nobody,mozart'
        option guest_ok 'no'
Any help apprecieated
 
Old 09-02-2015, 02:21 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,854

Rep: Reputation: 161Reputation: 161
What's output of Samba log?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] my hostname not sent to OpenWRT linuxStudent11 Linux - Networking 4 10-09-2014 10:51 AM
Need Openwrt kernel help. MrUmunhum Linux - General 0 08-26-2009 03:29 PM
Crontab in OpenWRT offworld21 Linux - General 5 09-05-2006 02:46 AM
WRT54G OpenWRT WDS otisthegbs Linux - Wireless Networking 1 08-21-2005 03:50 AM
Kismet+OpenWRT OneManArmy Linux - Newbie 1 05-02-2005 03:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration