[Gambas-user] how to start a file?

Benoît Minisini gambas at ...1...
Mon Sep 28 14:44:22 CEST 2009


> Hi,
> 
> Probably I'll try to do it directly with the files as you told.
> About the project: it is a small project follower with different users. And
> I only want to make the files accesible for those who participate in the
> project. So it isn't possible to define on the system level. The best could
> have been to have a password for the main folder so the users could access
> the files only through my application.

That does not work like that : rights are based on user identity. A human user 
usually changes his identity only for becoming root for doing administrative 
tasks.

To do what you want, you have to create a group for your project, adds to the 
group all users that should access these files, and grant to the files read 
and write access only to the group and the owner.

You do the same thing to grant access to a device only for specific users. A 
group for cdroms, cdwriters, parallel ports devices, and so on. Only members 
of these groups can use the device.

> 
> I suppose that when creating a directory or copying a file by Gambas, I
> cannot define/change the attributes. At leas with VB I couldn't.

Yes, but EXEC [ "chown" ... ] is just one line of code in Gambas.

Regards,

-- 
Benoît Minisini




More information about the User mailing list