UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old November 24th, 2004, 10:46 AM
xxbenxx xxbenxx is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 8 xxbenxx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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?

Reply With Quote
  #2  
Old November 24th, 2004, 11:23 AM
jim mcnamara jim mcnamara is offline
......@.........
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jun 2004
Posts: 1,307 jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 4 h 28 m 57 sec
Reputation Power: 48
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.

Reply With Quote
  #3  
Old November 26th, 2004, 06:35 PM
xxbenxx xxbenxx is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 8 xxbenxx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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
?

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > AFS, UNIX, permission to write


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway