Jump to content

[SOLVED] make access to unraid faster in MAC OS X


Recommended Posts

hi,

 

i found this thread http://lime-technology.com/forum/index.php?topic=1975.0 about unraid being slow with unix systems because of samba exporting in DFS format by default, which unixes don't understand, etc.

anyway the forum says to disable DFS for samba

i have 2 questions:

 

1)i use unraid 4.7 - does what i mentioned before applies to this version of unraid? (the forum thread i provided is from 2008 after all...maybe things changed?....)

 

2) the solution Joe L. provided for this is adding those lines to GO script:

sed -i -e "s/host msdfs = Yes/host msdfs = No/" -e "s/msdfs root = Yes/msdfs root = No/" /etc/samba/smb.conf

smbcontrol smbd reload-config

now something tells me i should not write everything in the go script - i have to choose between =Yes and =No, Right??

basicly I'm asking how should i properly write this command

- like this? sed -i -e "s/host msdfs=No" -e "s/msdfs root = No" /etc/samba/smb.conf

is that right? and should i write this s/ thing??

 

please help - i don't want the screw up my server...

 

Thanks

Link to comment

please help - i don't want the screw up my server...

You add those two lines, exactly as you see them here, in their entirity, at end of your config/go script.

sed -i -e "s/host msdfs = Yes/host msdfs = No/" -e "s/msdfs root = Yes/msdfs root = No/" /etc/samba/smb.conf
smbcontrol smbd reload-config

 

You can read it as two different "edit" commands.

"sed -i -e" = stream edit command

"s" = substitute

"/"  = start of string to replace

"host mdfs = Yes"  = actual string to search for

"/" end of string to search for

"host mdfs = No"  =  replacement string

"/" end of replacement string

 

and then same for the second "-e" edit, but changing "mdfs root"

 

 

 

 

 

Link to comment
  • 1 year later...

Archived

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

×
×
  • Create New...