Page 1 of 1

What script builds smb.conf?

Posted: Wed Oct 20, 2010 7:57 am
by rgmhtt
I am trying to find the script that builds /etc/samba/smb.conf.

I don't see it in the /etc/monit.d/ files nor in any of /usr/bin/hda* files.

In particular, I want to make changes to how the PDC is set up. I want per user login and control of the drive letter for the user's home directory. I also want to setup a hidden share for /home much like C$ in NT.

I also want to use different drive letters than what is in:

/var/hda/domain-settings/netlogon/logon.bat

(part of the reason for per user logins).

Re: What script builds smb.conf?

Posted: Wed Oct 20, 2010 1:21 pm
by cpg
it's generated by the platform software.

can you make it generic, i.e. a patch that works for you and everyone else?

Code: Select all

/var/hda/platform/html/app/models/share.rb
or in git, it's under:

Code: Select all

platform/platform/html/app/models/share.rb
we have some way to make some settings and not expose them to the GUI - i.e. for uber advanced users.

if that helps and you can make it general, it reduces the burden to implementation (i.e. no need to build the GUI yet).

Re: What script builds smb.conf?

Posted: Wed Oct 20, 2010 3:16 pm
by rgmhtt
it's generated by the platform software.

can you make it generic, i.e. a patch that works for you and everyone else?

Code: Select all

/var/hda/platform/html/app/models/share.rb
Well I can make changes to what is generated, but I can't change the screen as that is beyond my skill set. I will make some basic changes, then post a features issue.
or in git, it's under:

Code: Select all

platform/platform/html/app/models/share.rb
we have some way to make some settings and not expose them to the GUI - i.e. for uber advanced users.

if that helps and you can make it general, it reduces the burden to implementation (i.e. no need to build the GUI yet).
What is git?

We do need a problem of single script, or per user script. In fact there are a few parameters needed.

Well I will try and get this done this week.

Re: What script builds smb.conf?

Posted: Mon Feb 28, 2011 7:01 pm
by wierdo52
rgmhtt,

Were you able to get shares.rb to change smb.conf as you wanted?

I've been having a similar problem: http://forums.amahi.org/viewtopic.php?f=34&t=2626