What's new

samba share name

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

mocnak

Occasional Visitor
Hi,
I'd like to edit the naming of automatically generated samba shares - root directories of disk attached to router.
Share names are in format "$directory_name at $disk-name" - I'd like to use only directory_name format.
I tried to find where it can be changed and I've found this: https://github.com/RMerl/asuswrt-me...ease/src/router/libdisk/write_smb_conf.c#L546
There, on lines 546 and 606 and 812 I can see how smb.conf file is generated. I was wondering, why I always fall under "else" condition ( line 545 on example), 'cause if I wouldn't the naming would be as I'd like to have it.
I am not that good in understanding that C code, can someone help me understand this condition and ideally explain what can I do to change the name of auto-generated samba shares ?
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top