LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   urlwatch urls.txt ownership problem (https://www.linuxquestions.org/questions/linux-newbie-8/urlwatch-urls-txt-ownership-problem-875827/)

etika 04-19-2011 03:19 AM

urlwatch urls.txt ownership problem
 
hi

iam having a problem while using the urlwatch utility in linux

/usr/bin/urlwatch --urls=/home/etika/Desktop/etikaa.txt
file pathname is /home/etika/Desktop/etikaa.txt
when ownership is tomcat it doesnot run
when ownership is etika(which is the user on the system through which iam running my script
why the file which is passed to urlwatch is not accepted if that's file owner is tomcat6 it gives the following error

Traceback (most recent call last):
File "/usr/bin/urlwatch", line 221, in <module>
for job in handler.parse_urls_txt(urls_txt):
File "/usr/share/urlwatch/urlwatch/handler.py", line 128, in parse_urls_txt
shelljob_errors.append('%s not owned by %s' % (urls_txt, os.getlogin()))
OSError: [Errno 22] Invalid argument



but when the ownership of the file is changed to etika it run smoothly




why urlwatch does not run when the file containing the urls is owned by tomcat with full 777 permission but run with etika (user on the system) through this iam running my shell script

lisle2011 04-19-2011 08:34 AM

ownership issue
 
I would like to know who owns the script?

SL00b 04-19-2011 09:41 AM

Looking at the trackback, it seems to me that the utility is testing to see if the owner of the file is the same as the run-as ID, and throwing an error if they don't match. So if that's a dependency for running the utility, you'd have to make them match.

If the file needs to be owned by tomcat6, then the solution is to run the utility as tomcat6.


All times are GMT -5. The time now is 05:51 AM.