screen scraper permissions issue in Linux
Hello,
I recently installed screen scraper pro in an Ubuntu Amazon EC2 instance. I had managed to run it succesfully a few times, but now when I connect to the desktop with Microsoft Remote Desktop and try to run the workbench I get a messagebox saying:
In order for screen-scraper to function properly , please ensure you have write access to the folder in which screen-scraper is installed, as well as all of its sub-folders.
For example, I found that you don´t have write access to the following file(s):
/home/myuser/screen-scraper_pro/resource/db/ss.data
/home/myuser/screen-scraper_pro/resource/db/ss.script
and after that error the workbench doesn´t start.
Some days ago, I had had that error so I had gone to check those 2 files and when I saw that instead of being owned by my user, they were owned by root, with Nautilus I changed their ownership to my user and I stopped getting that error and the workbecnh could load successfully.
But now I don´t know how the ownership of those 2 files was changed back to root so I am getting that error again.
My knowledge of Linux is very limited to be able to understand what is going on :-(
thank you for any help on this,
boga.
If you start screen-scraper
If you start screen-scraper as the root account, it will assume ownership of those files, and the next time you want to run it as a user you won't have permission to do so. You need to either always start screen-scraper as root, or never start screen-scraper as root. I recommend the latter unless there is a specific reason to use root.
it keeps on happening :-( I
it keeps on happening :-(
I had actually uninstalled screen scraper completely and reinstalled it from a terminal window(while connecting to the Ubuntu server´s desktop remotely). I made sure it was installed under my username.
Then the only 2 ways that I am running SS are either by double clicking on ss workbench in the mentioned remote desktop, or through the cron of my user, which runs at a specific time ss from a .sh command file.
Everything was working but suddenly again I don´t know how, I get the permissions error mentioned at the start of this post when double clicking the screen scraper workbench(while connected to the remote desktop). I checked and most of the folders inside SS are owned by my user, but in group it says "root". Why? Could it be because I some times execute sudo commands form the terminal window as my user, typing the root password when prompted?
In any case, I don´t have a clue why it is making this permission changes.
cheers,
boga.
or maybe myuser is root after
or maybe myuser is root after all?
If I go to check the group 'root' it has two users: 'myuser' and 'ubuntu'.
I am very confused now. shouldn´t the user 'root' appear as part of the group 'root'?
sorry for the added
sorry for the added confusion. I correct myself of my previous message. In the users and group manager when I click on manage groups and select 'root' group. I can see both 'myuser' and 'Ubuntu' users but both of them are unchecked, which obviously means that none of them are part of the 'root' group. That is expected
Then how come the folders in screen scraper installation mysteriously ended belonging to user 'myuser' but with group 'root'?
cheers,
boga
There is nothing in
There is nothing in screen-scraper capable of changing the permissions. Therefore at some point the root account must be starting screen-scraper. Could it be in a cron job or something?
that was it! I was scheduling
that was it! I was scheduling the scrape from a cron job, edited with sudo so there you go :-)
thank you,
boga