permission, again

randac56

Member
May 25, 2018
915
0
16
I add a torrent from an URL, then :
Code:
ls -la downloads/testtorrent
total 4181860
drwxrwx--- 44 lotsok torrrenting 4096 Dec 14 08:47 .
drwxr-xr-x 14 lotsok lotsok 4096 Dec 13 21:53 ..
-rw-r--r-- 1 lotsok lotsok 147051 Dec 14 08:47 testtorrent
is it normal the file is created with 644 permissions, I didn't change the umask in .rtorrent.rc
then i right click and erase and remove data and :
Code:
cat /tmp/errors.log
[14.12.12 08:49:48] erasedata: *** Parse item /var/www/rutorrent/share/users/lotso/settings/erasedata/CF2178FE02C197F5452C1D66B90610D49229C7DD.list
[14.12.12 08:49:48] erasedata: Successfully delete file /home/lotsok/downloads/testtorrent
[14.12.12 08:49:50] erasedata: *** Parse item /var/www/rutorrent/share/users/lotsok/settings/erasedata/CF2178FE02C197F5452C1D66B90610D49229C7DD.list
[14.12.12 08:49:50] erasedata: FAIL Delete file /home/lotsok/downloads/testtorrent
the file is successfullt erased but as you can see from this log on the 1st line, it shows a path in the share folder with a user that isn't the user who runs rtorrent. This user lotso (lotsok runs rtorrent) is a user I have on an other machine, I don't get how he can have entries in the share folder.
thanks for you help
 

peshua19

Member
May 25, 2018
897
0
16
Entries in the /var/www/rutorrent/share/users hasn't relation to the unix users at all. This is a *web* user. If this entry was created then your (or someone) pass this name to the web auth dialog and successfully login. And, may be, he try to delete your torrent yet once.
For avoid this situation, you must have one rtorrent instance per one web user.