File access
Posted
#1
(In Topic #1426)
Regular

Is there another chmod used as default for Gambas3 programs?
Posted
Regular

But, how are you trying to access the file? Beware of relative paths and what they mean.
b
Posted
Regular

Code (gambas)
- Close #hFile
- 'giving access to the file
During my initial trials of Gambas3, for some reasons mode 644 did not provide access. Instead, mode 600 worked very well.
Posted
Guru

Access() /lang/access - Gambas Documentation
and Chmod.. /lang/chmod - Gambas Documentation
and Stat() /lang/stat - Gambas Documentation
Or
changing a file permission from -rw-r–r– to -rw——- should really not ,make a difference and may give you access problems elsewhere.
the order is Owner/Group/Others so you are removing the read flag from the Group and Other users just leaving Owner. I can't see how that fixes your read issue.
I'd say you found an oddity as it is definitely NOT the case you have to change mode of every file you want to access.
Posted
Regular

I'd say you found an oddity
Maybe that's the case. Because at home I program on a standalone computer, but at school I program / experiment on a working LTSP server. (Both with Linux Mint, versions 22.1 and 21.3 respectively.)
1 guest and 0 members have just viewed this.


