Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

All your files have been destroyed (sorry). Paul.


devel / comp.lang.xharbour / Re: R/O access to .dbf file in net

SubjectAuthor
* R/O access to .dbf file in netTomasz Ziemba
`* Re: R/O access to .dbf file in netReinaldo
 `- Re: R/O access to .dbf file in netRoberto Chiaiese

1
R/O access to .dbf file in net

<491700ad-47ae-4dd2-8f6a-8be0e025185cn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17425&group=comp.lang.xharbour#17425

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:ad4:5909:0:b0:625:aa48:ddff with SMTP id ez9-20020ad45909000000b00625aa48ddffmr210632qvb.12.1686309685463;
Fri, 09 Jun 2023 04:21:25 -0700 (PDT)
X-Received: by 2002:a05:6870:7727:b0:1a2:7011:57a6 with SMTP id
dw39-20020a056870772700b001a2701157a6mr421610oab.1.1686309685183; Fri, 09 Jun
2023 04:21:25 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer01.ams4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Fri, 9 Jun 2023 04:21:24 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=95.160.192.160; posting-account=USDMvgoAAAAGT_ciV5bZ9tQCg7p9QuC-
NNTP-Posting-Host: 95.160.192.160
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <491700ad-47ae-4dd2-8f6a-8be0e025185cn@googlegroups.com>
Subject: R/O access to .dbf file in net
From: tz36987@gmail.com (Tomasz Ziemba)
Injection-Date: Fri, 09 Jun 2023 11:21:25 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1278
 by: Tomasz Ziemba - Fri, 9 Jun 2023 11:21 UTC

Anyone on the network has access to the directory and can read and write data. How do I restrict one user to read only access to a file while others will have read/write access to that dbf file at that time?

Re: R/O access to .dbf file in net

<c7b54afe-3d8b-44b2-b520-ae13bb6d2e9en@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17427&group=comp.lang.xharbour#17427

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:ad4:558c:0:b0:626:1850:7bb1 with SMTP id f12-20020ad4558c000000b0062618507bb1mr414466qvx.7.1686327383544;
Fri, 09 Jun 2023 09:16:23 -0700 (PDT)
X-Received: by 2002:aca:b543:0:b0:39c:9e4f:5ecf with SMTP id
e64-20020acab543000000b0039c9e4f5ecfmr524498oif.1.1686327383188; Fri, 09 Jun
2023 09:16:23 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Fri, 9 Jun 2023 09:16:22 -0700 (PDT)
In-Reply-To: <491700ad-47ae-4dd2-8f6a-8be0e025185cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=66.176.109.152; posting-account=gKC1rwoAAACsXQwL7JqnaNwb7B4IwyoZ
NNTP-Posting-Host: 66.176.109.152
References: <491700ad-47ae-4dd2-8f6a-8be0e025185cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c7b54afe-3d8b-44b2-b520-ae13bb6d2e9en@googlegroups.com>
Subject: Re: R/O access to .dbf file in net
From: reinaldo.crespo@gmail.com (Reinaldo)
Injection-Date: Fri, 09 Jun 2023 16:16:23 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2105
 by: Reinaldo - Fri, 9 Jun 2023 16:16 UTC

On Friday, June 9, 2023 at 7:21:26 AM UTC-4, Tomasz Ziemba wrote:
> Anyone on the network has access to the directory and can read and write data. How do I restrict one user to read only access to a file while others will have read/write access to that dbf file at that time?
Hello Ziemba;

I find the best solution for that, under Harbour, is using ADS Server or ADS Local. With ADS you don't place your tables on a share. They are placed on a NON-SHARED directory on the server running ADS and only ADS has access to the tables. Your application connects to the ADS service on the server and data is sent back and forth between the server and the app via TPC socket connection.

You can even create users using ADS data dictionary and grant different permissions to each user.

While your data is placed on a shared directory, it can be deleted, stolen, overwritten, in danger -period.

Re: R/O access to .dbf file in net

<467fa0d9-e4b3-4eea-82ad-419460c92e2dn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17428&group=comp.lang.xharbour#17428

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:622a:1815:b0:3f8:48fc:290d with SMTP id t21-20020a05622a181500b003f848fc290dmr3001533qtc.3.1686579692084;
Mon, 12 Jun 2023 07:21:32 -0700 (PDT)
X-Received: by 2002:aca:bc56:0:b0:39a:5a77:b1f1 with SMTP id
m83-20020acabc56000000b0039a5a77b1f1mr1918242oif.4.1686579691781; Mon, 12 Jun
2023 07:21:31 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Mon, 12 Jun 2023 07:21:31 -0700 (PDT)
In-Reply-To: <c7b54afe-3d8b-44b2-b520-ae13bb6d2e9en@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=194.79.222.150; posting-account=YoLO0goAAACCPsMaz-IakEGKUsEqt8eR
NNTP-Posting-Host: 194.79.222.150
References: <491700ad-47ae-4dd2-8f6a-8be0e025185cn@googlegroups.com> <c7b54afe-3d8b-44b2-b520-ae13bb6d2e9en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <467fa0d9-e4b3-4eea-82ad-419460c92e2dn@googlegroups.com>
Subject: Re: R/O access to .dbf file in net
From: roberto.chiaiese@gmail.com (Roberto Chiaiese)
Injection-Date: Mon, 12 Jun 2023 14:21:32 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2107
 by: Roberto Chiaiese - Mon, 12 Jun 2023 14:21 UTC

Il giorno venerdì 9 giugno 2023 alle 18:16:24 UTC+2 Reinaldo ha scritto:
> On Friday, June 9, 2023 at 7:21:26 AM UTC-4, Tomasz Ziemba wrote:
> > Anyone on the network has access to the directory and can read and write data. How do I restrict one user to read only access to a file while others will have read/write access to that dbf file at that time?
> Hello Ziemba;
>
I manage privileges at application-level. A dbf table that collects users and credentials to the application. For every user a dbf table with all other dbf's names and privileges (lCanRead, lCanInsert, lCanModify, lCanDelete).. If a user has read-only privileges on a certain table simply don't show the 'new' record', 'update' and 'delete' button and so on.
Once you have created your structure and classes you can apply in all your apps

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor