December 7, 201114 yr Just when I think I'm getting good at this... Built my first unRAID box over the weekend (5b14), set up user shares, and copied all of my data over from my Win7 PC after creating the folder structure from Windows. So far, so good. Next, I followed the "Install Python based servers" (http://lime-technology.com/wiki/index.php?title=Install_Python_based_servers) process, modifying it to get the newest SABnzbd+ version and install all of the apps on disk1 (no cache drive just yet). I'm now to the point where I need to rename and modify the "autoProcessTV.cfg.sample" file, and I'm getting stuck: I'd like to modify the file from my Windows PC (EditPad Pro), however I seem to have read-only access... It appears that I have full access to folders that I created from the Windows PC, but any folders I create via Putty mkdir commands are locked down from Windows. I know I have text editing options from within Putty, but given my complete lack of *nix experience, I'd rather just edit the files from Windows. It will also make it easier to edit my SickBeard scripts if I can do it from Windows. So, what do I need to do to grant my Windows PC full access to directories created via Putty? I'm not especially concerned about security at this point, especially since all of my other data is wide open to the Windows box. I thought the new "Permissions utility" might help, but this is a fresh 5b14 install, and I think that tool is only for 4.x upgrades. I did try searching the forums first, but I think my question is almost too basic... Thanks in advance! Rick
December 7, 201114 yr when you log in to the unRAID server using putty, whats the username and password you use to login? maybe i am misunderstanding something but first you mention you created folders on the unRAID server FROM windows and you claim all is well with those BUT when you putty in (ssh client in) to the unRAID server you mkdir and they are owned by who? and what are the permissions? I'll need you to ssh into the unRAID server and post back a command ran against the folder ABOVE the folders you created with mkdir while you were ssh'd into the unRAID server. Command is ls -la Example: you ssh into your server, navigate to folder named foo, you issue mkdir bar so you would need to run ls -la /foo/ NOTE: i am unaware of your folder structure and how unRAID hands out shares and or what your current working dir is after you successfully connect over ssh. Once you ssh in, you can find out where you're at by issuing this pwd Good luck and post all the info I requested and we;ll straighten you out,
December 7, 201114 yr Author I'm using root to connect, and I haven't set up a password ... yet. You're understanding correctly: I initially created a folder structure via Windows Explorer in my unRAID user shares. Then, I created a few more folders via Putty logged in as root. A file in one of these folders is read-only from Windows. As I look into this more, I realize the issue is due to the permissions that came over when I unzipped the code, and NOT in the folders I created. For example, I can do whatever I want with the main "sickbeard" folder (which I created via Putty), but the subfolders and files created during the "tar" process have different permissions. Specifically, I am trying to edit and rename the autoProcessTV.cfg.sample file: root@<myservername>:/mnt/disk1/Apps/usenet/sickbeard# ls -la autoProcessTV/ total 17 drwxrwxr-x 2 root root 200 2011-12-07 08:24 ./ drwxrwxr-x 10 root root 664 2011-12-07 15:10 ../ -rw-rw-r-- 1 root root 71 2011-12-07 01:53 autoProcessTV.cfg.sample <-- This one -rw-rw-r-- 1 root root 2745 2011-12-07 01:53 autoProcessTV.py -rwxrwxr-x 1 root root 979 2011-12-07 01:53 hellaToSickBeard.py* -rwxrwxr-x 1 root root 1048 2011-12-07 01:53 sabToSickBeard.py* So, I guess my question is actually: how do I change the permissions on the file I'm trying to edit in Windows? Given the scope of this, I can probably spend some time on Google and figure out how the heck to interpret this: "-rw-rw-r--" and go from there. Thank you for the help - the "ls" command put me on the right path. To Google! -Rick
December 8, 201114 yr It's because Samba maps the Unix permissions settings to Windows settings. See here: http://lime-technology.com/forum/index.php?topic=11693.msg111450#msg111450 This might fix it: chmod -r /mnt/disk1/Apps/usenet/sickbeard/autoProcessTV.cfg.sample Change umask for root to fix it permanently.
December 8, 201114 yr It's because Samba maps the Unix permissions settings to Windows settings. See here: http://lime-technology.com/forum/index.php?topic=11693.msg111450#msg111450 This might fix it: chmod -r /mnt/disk1/Apps/usenet/sickbeard/autoProcessTV.cfg.sample Change umask for root to fix it permanently. bingbingbing. Spot on and where I was going with my next response. thanks for taking this one over!
December 9, 201114 yr Author Thanks, that did it for the file in question. In the end, I changed ownership of the entire Sickbeard directory to "nobody" so I could run the app under that user.
December 15, 201114 yr Thanks, that did it for the file in question. In the end, I changed ownership of the entire Sickbeard directory to "nobody" so I could run the app under that user. not sure about the security implications of doing that and even if there is even any. Hopefully some process doesn't change ownership back to something else again. Im new to unRAID but 5+ years of self Ubuntu has very knowledgable about many things I'm noticing in unRAID due to it running on the Linux kernel. Tapatalk is tha shizzle
Archived
This topic is now archived and is closed to further replies.