What script builds smb.conf?

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

What script builds smb.conf?

Postby rgmhtt » Wed Oct 20, 2010 7:57 am

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).

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: What script builds smb.conf?

Postby cpg » Wed Oct 20, 2010 1:21 pm

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).
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

Re: What script builds smb.conf?

Postby rgmhtt » Wed Oct 20, 2010 3:16 pm

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.

wierdo52
Posts: 5
Joined: Fri Jun 25, 2010 6:24 pm

Re: What script builds smb.conf?

Postby wierdo52 » Mon Feb 28, 2011 7:01 pm

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

Who is online

Users browsing this forum: No registered users and 51 guests