LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Application permissions issues (https://www.linuxquestions.org/questions/linux-newbie-8/application-permissions-issues-350734/)

motionid 08-06-2005 11:13 PM

Application permissions issues
 
Hello all,
I am running a server application called KDX. It's kind of like bbs software.
Anyway, the app generates directories and files - all of which have permissions automatically set to:
rw-------
What I need is the app to create these directories and files with permissions:
rwxrwxrwx
Is there something I need to set as a flag or switch before or while running the app?

Any assistance appreciated.

Cheers,

Sean.

Matir 08-06-2005 11:49 PM

777 permissions are REALLY insecure, but try running "umask 000" before starting the kdx application.

ibrewale 08-06-2005 11:50 PM

You need to chmod the file(s).

It appears you need to read/write/execute for everyone on these files, which would be something to the effect of:

Code:

chmod 777 filename
Here is some info on it:

chmod info

If you need more info you can check the man page for it:

Code:

man chmod
Hope this gets you in the right direction.

Jerry

motionid 08-07-2005 12:45 AM

umask 000
 
Hi Matir,
hehe - tried that just now - thanks. I read about this before.

No go unfortunately.

it could just be an app specific issue - if umask is not working.
Unless you have any other suggestions :-)?

Cheers,
Sean.

PS. ibrewale - yeah - I know about chmod - this issue is the app keeps generating the files - which means I keep having to reset permissions on all new files - and when you have 100's of files it's not realistic - :-) - thanks though.

Matir 08-07-2005 11:24 AM

My guess is that the program internally resets the permissions or its own umask, like via the umask() system call.

You could chmod -R the directory containing the files, if there are no other files in there.


All times are GMT -5. The time now is 07:21 PM.