On 2013-07-01 23:01, Stephan Beal wrote:
On Mon, Jul 1, 2013 at 10:57 PM, Rene <renew...@xs4all.nl> wrote:

see below the timeline the one at 20:49 is of zwart604 with no permissions on the master one. I probably do something wrong!

If i'm not mistaken (and i might be - i'm not familiar with the
details of fossil's ssh bits), a user running over ssh has all
permissions (because that's what fossil uses when run in
non-server/CGI mode). If, however, fossil is using its HTTP server
over ssh (i don't know whether it does or not does, to be honest),
then it "should" be setting up the permissions properly for the user.
Based on my interpretation of your results, a user running over ssh
has all permissions, as for a local user. i  can't immediately say
whether that's expected or not.

Sorry, not very helpful :/.

--
----- stephan beal
http://wanderinghorse.net/home/stephan/ [1]
 http://gplus.to/sgbeal [2]

Links:
------
[1] http://wanderinghorse.net/home/stephan/
[2] http://gplus.to/sgbeal

_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Hm, This is what I see if I do:

        C:\temp\t>echo hallo > g.c

        C:\temp\t>..\fossil.exe add g.c
        ADDED  g.c

C:\temp\t>..\fossil.exe commit -m "did this as zwart604" --sshtrace
        Autosync:  ssh://renez@arch/andy.fsl?fossil=bin/fossil
        plink -T renez@arch
        Sent: [echo probe-8b38afea112ef8b4a65dfb639b526c2c]
        Using username "renez".
        Got back-----------------------------------------------
        probe-8b38afea112ef8b4a65dfb639b526c2c
        -------------------------------------------------------
        Sent: [echo probe-7d8a878c308bc5f5ab12fa1baaf3609f]
        Got back-----------------------------------------------
        probe-7d8a878c308bc5f5ab12fa1baaf3609f
        -------------------------------------------------------
        Sent: [bin/fossil test-http andy.fsl]eceived: 0
        Got line: [HTTP/1.0 200 OK]
        Got line: [Date: Mon, 1 Jul 2013 21:05:21 GMT]
        Got line: [Connection: close]
        Got line: [X-Frame-Options: SAMEORIGIN]
        Got line: [Cache-control: no-cache]
        Got line: [Content-Type: application/x-fossil; charset=utf-8]
        Got line: [Content-Length: 280]
        Got line: []
        Reading 280 bytes with 0 on hand...  Got 280 bytes
        Round-trips: 1   Artifacts sent: 0  received: 0
        Pull finished with 290 bytes sent, 480 bytes received
./g.c contains CR/NL line endings. Use --no-warnings or the "crnl-glob" setting
        to disable this warning.
        Commit anyhow (a=all/c=convert/y/N)? a
        New_Version: 50122ec07cb3c91d8910105f6a9c8050ddcae4c1
        Autosync:  ssh://renez@arch/andy.fsl?fossil=bin/fossil
        plink -T renez@arch
        Sent: [echo probe-d7c9e86da35acc3286ded3db70a416e4]
        Using username "renez".
        Got back-----------------------------------------------
        probe-d7c9e86da35acc3286ded3db70a416e4
        -------------------------------------------------------
        Sent: [echo probe-f7e5b3ddbb9a59c5c9e6855723a29fde]
        Got back-----------------------------------------------
        probe-f7e5b3ddbb9a59c5c9e6855723a29fde
        -------------------------------------------------------
        Sent: [bin/fossil test-http andy.fsl]eceived: 0
        Got line: [HTTP/1.0 200 OK]
        Got line: [Date: Mon, 1 Jul 2013 21:05:28 GMT]
        Got line: [Connection: close]
        Got line: [X-Frame-Options: SAMEORIGIN]
        Got line: [Cache-control: no-cache]
        Got line: [Content-Type: application/x-fossil; charset=utf-8]
        Got line: [Content-Length: 305]
        Got line: []
        Reading 305 bytes with 0 on hand...  Got 305 bytes
        Round-trips: 1   Artifacts sent: 2  received: 0
        Sync finished with 676 bytes sent, 505 bytes received

        C:\temp\t>

and the answer is

/*
** Note that the following command is used by ssh:// processing.
**
** COMMAND: test-http
** Works like the http command but gives setup permission to all users.
*/
void cmd_test_http(void){
  Th_InitTraceLog();
  login_set_capabilities("sx", 0);
  g.useLocalauth = 1;
  cgi_set_parameter("REMOTE_ADDR", "127.0.0.1");
  g.httpIn = stdin;
  g.httpOut = stdout;
  find_server_repository(0);
  g.cgiOutput = 1;
  g.fullHttpReply = 1;
  cgi_handle_http_request(0);
  process_one_web_page(0, 0);
}


--
Rene
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to