Permission problem
-
I need a little help, see if you have the same problem in the rasp.
The files I download from transmission belong to the user debian-transmission and it is marked by default that only he can write/modify those files, it's a pain, because through sftp or smb I can't delete the files that I have already downloaded... and neither from pcmanfm executed through ssh...
I have to do it from root and from commands and it's a pain...In the settings.jason file I can't find anything about it...
By the way, do you know of any way to disable the recycle bin for all users from the console?
-
I'm not exactly sure how you'll have it set up. In my case with the raspberry, I don't even remember seeing anything about the debian-transmission user, probably because it didn't influence my configuration at all. The only thing I had to do was configure the new path in settings.json and I think I set the owner of the folder where the external drive was mounted (/mnt/descargas) to the 'pi' user and I think that was it. With this, I could modify and delete the content downloaded via SMB. -
I don't know if this will help you, but with the 'umask' command you can change the default permissions and I suppose that way you could delete them.
-
Yes, I know that changing the permissions deletes it. That's what I'm doing now, but of course, doing it every time I download something is very tedious.
I'm going to see if changing the folder permissions...
Edit: The folder is in 777. The problem is that the files created by transmission can only be written/deleted by itself, that is, the user transmission-debian (which is transmission).
I've searched on google, and what I find is not like what happens to me... :wall:
-
By logging in with transmision-debian, and changing the umask of that user, you should be able to create new files with the permissions you want.
The umask is a value that is applied to new directories and files, if the umask is set to 122, the files will be created by default with permissions 777 - 122 = 655
I am writing from memory but I think it worked that way. And besides, I think that if you restart, the value is reset, although I am not very sure.
Setting the umask to 000, the files you download will have permissions 777.
-
But what is the password for the debian-transmission user? -
I'm not sure if that's the easiest solution, but if you want to try it, what you have to do is put a password on that user:
sudo passwd debian-transmissionand from then on you can log in with it, but I don't know, it seems to me that there has to be something simpler that we're missing.
-
Even changing the pass I can't connect:
Kromann-AIR:~ ingeniebrio24$ ssh debian-transmission@192.168.1.24
debian-transmission@192.168.1.24's password:The programs included with the Debian system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.Debian comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.Welcome
- Documentation:
6 packages can be updated.
6 updates are security updates.The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.Debian comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.Last login: Mon Mar 25 21:32:34 2013 from 192.168.1.15
Could not chdir to home directory /home/debian-transmission: No such file or directory
Connection to 192.168.1.24 closed.
Kromann-AIR:~ ingeniebrio24$ -
According to what I saw on Forocoches:
Install Transmission (tested on Raspbmc)
-
Create a folder to store downloads (by connecting the HD to the PC, or via FTP).
-
Enter console mode. Press the power button on xmbc and the exit option from the pop-up menu. Once this is done, press the ESCAPE button repeatedly. In the console, enter the username and password.
-
Install tasnmission-daemon: "sudo apt-get install transmission-daemon".
-
Stop daemon: "sudo /etc/init.d/transmission-daemon stop"
-
Edit the settings.json file: "sudo nano /etc/transmission-daemon/settings.json":
change "rpc-whitelist": "127.0.0.1" to "..."
change "rpc-password": "password",
change "rpc-username": "user",
change the download directory "download-dir" to the one we created in step 1, eg: “/media/usb0/descargas”, -
CRTL + X to save.
-
Restore daemon: "sudo /etc/init.d/transmission-daemon start"
-
Give permissions to the download directory:
"sudo chmod g+rw /media/usb0/descargas" (or all permissions with sudo chmod 777…)
"sudo chgrp -R debian-transmission /media/usb0/descargas" -
Restore xbmc
To add and view the status of downloads from the browser "ipDelRaspberry:9091" with the username and password from the settings.json file.
Source: [LIVE] HOW-TO get BitTorrent download/management via WebUI Guide working on XBMC Live
they make the debian-transmission group the owner of the download directory, I don't know if it would work to put the 'pi' user in that group.
The truth is that I also get confused with permissions, especially in Apache or Lighttp.
-