LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-26-2014, 09:01 AM   #1
grob115
Member
 
Registered: Oct 2005
Posts: 542

Rep: Reputation: 32
Samba keeps setting mangled names to on


Hi, for some reason I'm unable to set my Samba to disable the use of mangled names with the following approach. Any ideas?
Code:
[/usr/local/samba/var/var] # setcfg global "mangled names" no -f /etc/config/smb.conf
[/usr/local/samba/var/var] # /etc/init.d/smb.sh restart
Restarting SMB services:
Shutting down SMB services: smbd nmbd.
Shutting down winbindd services: winbindd.
locks path was set to /share/MD0_DATA/.locks
Starting winbindd services:Starting SMB services:.
done.
[/usr/local/samba/var/var] # grep mangle /etc/config/smb.conf
mangled names = yes
 
Old 08-26-2014, 07:35 PM   #2
New2Linux2
Member
 
Registered: Jan 2004
Location: Arizona
Distribution: Debian
Posts: 153

Rep: Reputation: 43
I'm thinking we're going to need a lot more info to help with this.
What version of samba?
Code:
/usr/local/samba/bin/samba -V
What distro are you running it on?
Did you get samba from the repositories or build it yourself?
If you built it yourself, what options were included in that build?
What does the rest of your smb.conf file contain?
Code:
cat /usr/local/samba/etc/smb.conf
When you run the setcfg command above, do you get any feedback in the logs? Is samba chrooted or no?

Help us out with just a bit more info.
 
Old 08-31-2014, 05:48 AM   #3
grob115
Member
 
Registered: Oct 2005
Posts: 542

Original Poster
Rep: Reputation: 32
Sorry for the late reply. But I have been unable to find anything. It's actually a QNAP NAS and it's not clear what Linux distro it's based on.
Code:
[/etc] # ls -ltr /etc | egrep 'release|version'
[/etc] #
I also checked the /var/log/log.nmbd log file when I execute the following command and saw nothing appeared.
Code:
setcfg global "mangled names" no -f /etc/config/smb.conf
I am able to get you the two other pieces of information however.
Code:
[/usr/local/samba/bin] # /usr/local/samba/sbin/smbd -V
Version 3.6.23
Code:
[/etc/config] # cat smb.conf
[global]
passdb backend = smbpasswd
workgroup = NAS
security = USER
server string = NAS Server
        encrypt passwords = Yes
username level = 0
        map to guest = Bad User
null passwords = yes
        max log size = 10
socket options = TCP_NODELAY SO_KEEPALIVE
os level = 20
preferred master = no
        dns proxy = No
        smb passwd file=/etc/config/smbpasswd
        username map = /etc/config/smbusers
        guest account = guest
        directory mask = 0777
        create mask = 0777
oplocks = yes
        locking = yes
        disable spoolss = yes
        load printers = no
display charset = UTF8
force directory security mode = 0000
veto files = /.AppleDB/.AppleDouble/.AppleDesktop/:2eDS_Store/Network Trash Folder/Temporary Items/TheVolumeSettingsFolder/.@__thumb/.@__desc/:2e*/.@__qini/.Qsync/.upload_cache/.qsync/.qsync_sn/
        delete veto files = yes
map archive = no
map system = no
map hidden = no
map read only = no
deadtime = 10
use sendfile = yes
unix extensions = no
store dos attributes = yes
client ntlmv2 auth = yes
dos filetime resolution = no
inherit acls = yes
wide links = yes
min receivefile size = 8192
case sensitive = auto
domain master = auto
local master = yes
force unknown acl user = yes
template homedir = /share/homes/DOMAIN=%D/%U
domain logons = no
wins support = yes
enhance acl v1 = yes
remove everyone = yes
kernel oplocks = no
mangled names = no
printcap cache time = 0
conn log = no
max protocol = NT1
pid directory = /var/lock
[Multimedia]
comment = System default share
path = /share/MD0_DATA/Multimedia
browsable = yes
oplocks = yes
ftp write only = no
recycle bin = yes
recycle bin administrators only = no
public = yes
invalid users = "guest"
read list =
write list = "admin",@"everyone"
valid users = "root",@"everyone","admin"
inherit permissions = yes
admin users =
admin only =
[Download]
comment = System default share
path = /share/MD0_DATA/Download
browsable = yes
oplocks = yes
ftp write only = no
recycle bin = yes
recycle bin administrators only = no
public = yes
invalid users = "guest"
read list =
write list = "admin"
valid users = "root","admin"
inherit permissions = yes
[Recordings]
comment = System default share
path = /share/MD0_DATA/Recordings
browsable = yes
oplocks = yes
ftp write only = no
recycle bin = yes
recycle bin administrators only = no
public = yes
invalid users = "guest"
read list =
write list = "admin"
valid users = "root","admin"
inherit permissions = yes
[Web]
comment = System default share
path = /share/MD0_DATA/Web
browsable = yes
oplocks = yes
ftp write only = no
recycle bin = yes
recycle bin administrators only = no
public = yes
invalid users = "guest"
read list =
write list = "admin"
valid users = "root","admin"
inherit permissions = yes
[Usb]
comment = System default share
path = /share/MD0_DATA/Usb
browsable = yes
oplocks = yes
ftp write only = no
recycle bin = yes
recycle bin administrators only = no
public = yes
invalid users = "guest"
read list =
write list = "admin"
valid users = "root","admin"
inherit permissions = yes
[Public]
comment = System default share
path = /share/MD0_DATA/Public
browsable = yes
oplocks = yes
ftp write only = no
recycle bin = yes
recycle bin administrators only = no
public = yes
invalid users = "guest"
read list =
write list = @"everyone"
valid users = "root",@"everyone"
inherit permissions = yes
admin users =
admin only =
[homes]
comment = System default share
path = /share/MD0_DATA/homes
browsable = yes
oplocks = yes
ftp write only = no
recycle bin = yes
recycle bin administrators only = no
public = yes
invalid users =
read list =
write list = "admin"
valid users = "root","admin"
inherit permissions = yes
[home]
comment = Home
path = %H
browsable = yes
oplocks = yes
ftp write only = no
inherit permissions = yes
invalid users = guest
writable = yes
read list = "%u"
write list = "%u"
valid users = "%u"
root preexec = /sbin/create_home -u '%q'
[Qsync]
comment = Qsync
path = /share/Qsync
browsable = yes
oplocks = yes
ftp write only = no
inherit permissions = yes
writable = yes
write list =
read list = "%u"
valid users = "%u"
vfs objects =
[/etc/config] #
 
Old 08-31-2014, 11:00 AM   #4
New2Linux2
Member
 
Registered: Jan 2004
Location: Arizona
Distribution: Debian
Posts: 153

Rep: Reputation: 43
Ah. Ok. The 'uname' tool might work for identifying the Linux version, kernal and architecture for this piece of hardware. Try this:
Code:
uname -a
Have you checked any of the other logs? /var/log/syslog will have any errors related to the starting of an application (before that app can shunt all of it's errors over to it's own log.)

The output of your /etc/config/smb.conf shows that mangled names is currently set to 'no'. Why the grep command in your original post shows it as set to 'yes' is a point of confusion now. If you're accessing this device using ssh, I would recommend using scp to copy that config file from the NAS to your computer so you can take a look at it in the editor of your choice, just to verify that setting. I am a bit more confident in the output of the cat command rather then the grep. You might also want to try using both like this:
Code:
cat /etc/config/smb.conf | grep mangled
Finally, have you actually connected a client to the NAS to check if it's getting mangled names or not?
 
  


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
Samba, names, and windows 2000 SCFan42 Linux - Networking 3 03-31-2006 07:17 AM
Samba host names - how? levand Linux - Networking 3 11-18-2004 04:01 AM
Samba 3 question "mangled map" mhgross Linux - Networking 0 07-23-2004 07:21 AM
SAMBA: display of share names is OK but files names are wrong superandrzej Linux - Software 5 02-02-2004 09:14 AM
Setting date day names Dark Carnival Linux - General 3 12-07-2003 01:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:50 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