Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

file case sensitivity, a.tmp and A.tmp are not seen as unique filenames

Featured Replies

I'm currently running unRAID Server pro 4.2.4

 

I'd like to be able to write and read case sensitive files such as a.tmp and A.tmp on a mounted a directory on my unRAID server from a linux client and have them be seen as unique file names.

 

Using the out of the box unRAID smb.conf and an unbuntu 7.10 linux client mounting a directory on the unRAID server a.tmp and A.tmp are treated as the same file.

 

I tried adding case sensitive = yes to the unRAID smb.conf file and running 'smbcontrol smbd reload-config'.  I understand I'd need to do this via the unRAID go script to make the change effective after a reboot.

 

The change to the unRAID smb.conf file didn't seem to change the behavior on the client side after re-mounting the directory on the unRAID server.

 

Is it possible to do what I want and if so how?

 

  • Author

As a followup to this I searched around and found similar reports using smbfs (though I saw the same behavior with the graphical file browser in ubuntu) and the suggestion to use cifs instead.

 

That seems to solve the specific case sensitivity issue I was seeing but I ran into the same performance problem on unRAID mentioned in this post

 

http://lime-technology.com/forum/index.php?topic=1975.0

 

I see that user didn't understand at the time how to use the go script to make his changes effective on subsequent reboots but I'll presume his fix of disabling DFS works and pursue that.

 

On a related note neither etk29321 or gshipley's question about DFS was answered in the aformentioned post and I'd be curious about that as well.

 

 

  • Author

hmmm, the plot sickens...

 

I need to know how to modify the unRAID flash /etc/go file to create an /etc/samba/smb.conf file in ram like that which I know works for my purposes, or some other method to make the resulting unRAID /etc/samba/smb.conf file in ram like that which I know works for my purposes.

 

If I change the two below lines present in the /etc/samba/smb.conf file in ram on the unRAID server from 'Yes' to 'No' and use 'smbcontrol smbd reload-config' I see good performance on linux clients with mounts using cifs.

 

host msdfs = Yes

msdfs root = Yes

 

Now I want to make this change persistent through subsequent unRAID reboots.

 

If I use the below interactive commands (with an un-modified /etc/samba/smb.conf file in ram) I get the below subsequent error message using 'smbcontrol smbd reload-config' and I don't see the same good performance on linux clients with mounts using cifs presumeably because the command is being ignored because the samba re-load process believes it to be in the 'wrong' section?

 

root@Tower:~# echo "host msdfs = No" >>/etc/samba/smb.conf

root@Tower:~# echo "msdfs root = No" >>/etc/samba/smb.conf

root@Tower:~# smbcontrol smbd reload-config

Global parameter host msdfs found in service section!

 

I further presume the same problem is happening when I try and append the same commands (following a 'sleep 30' line) to the unRAID flash /config/go file, stop unRAID and reboot because I don't see the same good performance on linux clients with mounts using cifs after the unRAID reboot.

 

In the above interactive example if I substitute '/etc/rc.d/rc.samba restart' for 'smbcontrol smbd reload-config' I don't see the error message, but it doesn't change the behavior.  I did confirm the lines were getting appended to the /etc/samba/smb.conf file in ram.

 

How can I get the unRAID /etc/samba/smb.conf file in ram be how I want when unRAID is rebooted?

 

  • Author

I think I may have figured this out, it was really simple.

 

After testing interactively adding 'echo "[global]" >>/etc/samba/smb.conf' first before my other two lines, then running 'smbcontrol smbd reload-config' and seeing no error message, I used this syntax in the unRAID flash /config/go file, stopped unRAID, rebooted and saw the good performance.  I guess it's ok to have two [global] sections in the /etc/samba/smb.conf file.

 

My final unRAID flash /config/go script looks like this

 

#!/bin/bash

# Start the Management Utility

/usr/local/sbin/emhttp &

sleep 30

echo "[global]" >>/etc/samba/smb.conf

echo "host msdfs = No" >>/etc/samba/smb.conf

echo "msdfs root = No" >>/etc/samba/smb.conf

smbcontrol smbd reload-config

 

Can you copy smb.conf to your flash drive, edit appropriately, and then add

cp /boot/smb.conf  /etc/samba
smbcontrol smbd reload-config

to your go script?  I imagine you have already tried that.  This method might have to be checked each upgrade, for changes to smb.conf.  If double global sections works, then that is safer across versions.

 

Edit:  Disregard this post, I see Joe has provided the expert way to do it, in the other thread.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.