|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
AFS, UNIX, permission to write
So, I've got a bit more info on my UNIX server and I'm gonna try again...
I've created an entry in my crontab file that runs a java program every hour or so...The program outputs the same output both to stdout and to a file. I know that the program runs because crontab emails me the output, but for some reason when the program tries to write to the file i get a jave IOException with (permission denied) after the filename. I can run the java program on my own and the program will run fine and output to file. My server uses the AFS file system, which i know only allows users that I allow to write, read, list, etc from a directory regardless of the UNIX directory characteristics. I have typed the commans fs sa . system:anyuser rlw - this gives anyone (including crontab, i had hoped) with access to the directory access to read or write to the directory...unfortunately, I'm still getting a permission denied error. Any ideas? |
|
#2
|
|||
|
|||
|
Specify the full path in your code, and then make sure that there is permission on ALL of the directories in the path to the file.
You only need execute permission on directories, except for the directory where you create the file, there you need write permission. |
|
#3
|
|||
|
|||
|
the only way I could find to get around the problem was to make a directory that allowed ALL machines connected to the main server and users authenticated to those machines be allowed to write to that directory
It works for the crontab, and for cgi scripts that save to that directory (its a directory within a password-protected webpage folder), but unfortunately anyone with access to one of these machines that knows of the directory can still tamper with information in it...as far as I (and the documentation for my school's server) is concerned, there is no way to, using AFS and on THIS server, allow only crontab or CGI scripts but not other users access....any ideas ? |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > AFS, UNIX, permission to write |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|