PDC per user logon script

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

PDC per user logon script

Postby rgmhtt » Sun Sep 13, 2009 7:33 pm

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?

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

Re: PDC per user logon script

Postby cpg » Mon Sep 14, 2009 4:49 pm

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
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: PDC per user logon script

Postby rgmhtt » Mon Sep 14, 2009 6:25 pm

And until then, how is this line in smb.conf generated? So that I can set it and forget it...

Lincee
Posts: 73
Joined: Sat Jul 04, 2009 3:34 pm
Location: Arnhem, NL
Contact:

Re: PDC per user logon script

Postby Lincee » Tue Sep 15, 2009 11:23 am

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.
LANTEA: Amahi 7 (vm), HP Proliant Microserver, 8GB RAM, 2x 1TB HDD, 1GB eth

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

Re: PDC per user logon script

Postby cpg » Tue Sep 15, 2009 11:34 am

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.
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: PDC per user logon script

Postby rgmhtt » Tue Sep 15, 2009 1:11 pm

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

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

Re: PDC per user logon script

Postby cpg » Tue Sep 15, 2009 1:14 pm

they call them issues ---> "New Issue"
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: PDC per user logon script

Postby rgmhtt » Tue Sep 15, 2009 1:30 pm

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.

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

Re: PDC per user logon script

Postby cpg » Tue Sep 15, 2009 1:33 pm

http://bugs.amahi.org/projects/amahi/issues/new

under projects -> platform -> new issue

(can be a bug, a feature or support, make it feature)
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: PDC per user logon script

Postby rgmhtt » Tue Sep 15, 2009 1:37 pm

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? ;)

Who is online

Users browsing this forum: No registered users and 16 guests