Page 1 of 2

PDC per user logon script

Posted: Sun Sep 13, 2009 7:33 pm
by rgmhtt
If I can change:

logon script = logon.bat

In /etc/samba/smb.conf to

logon script = $U.bat

I will have a login script per user. Of course I have to create one. The default content would be:

call logon.bat

Of course, I am ASSuMEing that when the logon script is running, it is the 'current directory'...

So do I change a database field or a script file (like hdactl) to effect this smb.conf change?

Re: PDC per user logon script

Posted: Mon Sep 14, 2009 4:49 pm
by cpg
send a patch to have a check button in the setup -> shares -> settings pdc screen for

Code: Select all

[X] execute per user script
:)

sounds reasonable.

if nothing else, file a feature request, and if you REALLY want it done, we can open a premium support line :D

Re: PDC per user logon script

Posted: Mon Sep 14, 2009 6:25 pm
by rgmhtt
And until then, how is this line in smb.conf generated? So that I can set it and forget it...

Re: PDC per user logon script

Posted: Tue Sep 15, 2009 11:23 am
by Lincee
And until then, how is this line in smb.conf generated? So that I can set it and forget it...
you can manually edit the smb.conf
it should not be editted untill you either add/modify shares, or reboot the machine.

Re: PDC per user logon script

Posted: Tue Sep 15, 2009 11:34 am
by cpg
yes, it's very brittle in that sense. any time anything in shares change, like even adding an app that has a share, it will make the setting you added go.

best thing is to file a bug.

but if you insist, the code that generates the header is in

Code: Select all

/var/hda/platform/html/app/models/share.rb
the method is self.header_pdc.

any changes there:

- require httpd restart for the code to take effect
- require ONE change to shares to be pushed out
- will last until the next release of the platform, which happens every so often (one probably this week), and they are announced shortly after major releases. this is still brittle, though not as much

honestly, our lifeblood is bug reports.

Re: PDC per user logon script

Posted: Tue Sep 15, 2009 1:11 pm
by rgmhtt
honestly, our lifeblood is bug reports.
Well it has been a while since I submitted a bug report.

I just went to the URL above and cannot see how to submit a bug report.

The only link there that seems close is: http://bugs.amahi.org/issues But there is no 'new' bug on this page.

I went to the wiki to see how to file bugs, and got taken right back to bugs.amahi.org

So I am missing something here...

Re: PDC per user logon script

Posted: Tue Sep 15, 2009 1:14 pm
by cpg
they call them issues ---> "New Issue"

Re: PDC per user logon script

Posted: Tue Sep 15, 2009 1:30 pm
by rgmhtt
they call them issues ---> "New Issue"

On http://bugs.amahi.org/issues

There is a pull down on Status and a filter. Neither have an option for 'New Issues'

Nowhere else on this page do I see any button looking like 'new issues'.

And on http://bugs.amahi.org/, the only reference to 'new' is 'new apps'.

So I am still lost.

Re: PDC per user logon script

Posted: Tue Sep 15, 2009 1:33 pm
by cpg
http://bugs.amahi.org/projects/amahi/issues/new

under projects -> platform -> new issue

(can be a bug, a feature or support, make it feature)

Re: PDC per user logon script

Posted: Tue Sep 15, 2009 1:37 pm
by rgmhtt
http://bugs.amahi.org/projects/amahi/issues/new

under projects -> platform -> new issue

(can be a bug, a feature or support, make it feature)
OK Going to http://bugs.amahi.org/projects/amahi/issues/ I see 'new issues'.

Can you put this URL on the bugs.amahi.org page or do you need a bug report on that? ;)