November 26, 201213 yr I recently upgraded to unraid 5rc8. I am trying to figure out how to deal with the new security permissions versus 4.7. I have yamj installed on my unraid server. In order to update my jukebox I have always had to telnet, login as root,= and run the command yamj-rescan. Performing these steps under 5rc8 causes permission issues. I am currently trying to figure out how I should run yamj-rescan from a telnet session. I can only log in to telnet as root. Root is the owner of the file. I have tried the following command: sudo -u nobody yamj-rescan sudo -u nobody users yamj-rescan both get permission denied Can someone help me run commands from telnet properly under unraid 5 Thanks Bill
November 26, 201213 yr I am running YAMJ under v5 without any issues. I am not using yamj-rescan any more but my own script. Please post yemj-rescan for reminder so I can assist if possible.
November 26, 201213 yr Author I am running YAMJ under v5 without any issues. I am not using yamj-rescan any more but my own script. Please post yemj-rescan for reminder so I can assist if possible. Thanks for the response and help. Yamj is running fine but running yamj-rescan as root forces my to use mc to delete the any of those files due to root ownership. Here is the path to the yamj-rescan script \\tower\flash\extra Here is the contents of yamj-rescan #!/bin/bash /mnt/user/Movies/YAMJ/My_YAMJ.sh If there is a better way to update my jukebox I would appreciate any help/suggestions. Bill
November 26, 201213 yr The sudo commands you give should work (though I have not tried them within unraid myself). The permission denied messages are probably the result of the fact that the script you are trying to run (and which you have always run as root) does not have permissions to have it run by your nobody user.. I would give a chown nobody on all yamj stuff, a chgrp users on all yamj stuff, and then a chmod 770 on all yamj stuff. Then make sure executables have the +x bit set. After that I would expect your sudo command to work.
November 26, 201213 yr I'm quite sure the users and permissions are not possible on the USB drive. Does this work? sudo -u nobody /mnt/user/Movies/YAMJ/My_YAMJ.sh Also, make sure the stuff in the /mnt/user/Movies/YAMJ has the correct permissions, which it already should if you're run the new-permissions script.
November 27, 201213 yr The script is on his movies share, not on the usb. Really? Here is the path to the yamj-rescan script \\tower\flash\extra
November 27, 201213 yr Yes: Here is the contents of yamj-rescan #!/bin/bash /mnt/user/Movies/YAMJ/My_YAMJ.sh The rescan script only launches the actual command which is apparently in the Movies share. It is somewhat of a dummy command (or shortcut if you like)
November 27, 201213 yr Yes: Here is the contents of yamj-rescan #!/bin/bash /mnt/user/Movies/YAMJ/My_YAMJ.sh The rescan script only launches the actual command which is apparently in the Movies share. It is somewhat of a dummy command (or shortcut if you like) Ummm, he can't run the rescan script and he can't change the permission on the rescan script. You know, the script that is on the flash drive. It doesn't matter what the rescan script does if it won't run.....
November 27, 201213 yr Why not just run the My_YAMJ.sh script from the user share directly and see if it works.
November 27, 201213 yr Enter "chown -h nobody:users /mnt/user/Movies/YAMJ/My_YAMJ.sh /boot/extra/yamj-rescan"
November 27, 201213 yr Author Enter "chown -h nobody:users /mnt/user/Movies/YAMJ/My_YAMJ.sh /boot/extra/yamj-rescan I will give this a try tonight. Thank you
Archived
This topic is now archived and is closed to further replies.