Hi guys,
I wanted to know how i can resolve permission specifications for my application.
I have developed a file browser application in Qtopia 2.2.0. I am using Red hat enterprise edition 5.3.
My code compiles fine. Also i can access all files and folders in /root/...
but when i come to file system. I can't access system folders or files. Initially i thought i had bugs in my code or i have mistaken in setting paths. But soon i realised that this happens only with system folders/files. I read a linux programming book in which i read about initial permissions which can be changed by setting flags such as S_IRUSR | S_IWGRP |S_XOTH etc. or i can use $chmod or $chown commands etc..
But i am confused as how i can use these flags or commands. As in where should i write them so that my application can access all the files and folders including system files and folders....
do i have to set flags/permissions in the main() of my application or constructor()?? If yes then do i have to keep on setting file permissions for each and every file and folder???
Please guide!!!!