December 11, 200817 yr Ok, I feel like a total noob asking this stuff, but I've been messing with it for an hour and I'm sure someone could answer it quickly. 1) I tried to edit my go file to add the directory listing cache script, but it won't let me save the file (this is from Vista or XP). I'm pretty sure I have modified this file from a windows box in the past, in fact I'm positive I did because I encountered CR/LF problems. I do not have user level security turned on, I do have a root password set. Unfortunately, my machine is headless or I'd just go and use vi on the file, but vi is not working over telnet correctly, I get a bunch of garbage when I try to edit. Also, if I make of copy of the file and try to edit that, I get the same permissions issue, but the weird thing is that it will let me delete the copy - why let me delete if I don't have write permission? 2) I tried to enable user level security, hoping that might give me the access to the file. I turned it on and created a user name with the same user name I have on my Windows box (one difference, the first letter is capitalized on Windows, it wouldn't let me do that in unRAID). Now, whenever I try to access the shares it asks for a username and password and is not accepting what I enter. I have tried both "name" / "pass" as well as "tower\name" and pass, neither work. 3) I read a post where Tom said that you can use Wordpad to edit the files and it will preserve the LF and not convert to <CR>/<LF>. However, if I edit the go file and save it as another filename (since it won't let me save it as go), I can open the file in vi over telnet and see CR's in it - I just can't remove them because I get garbage whenever I try to edit over telnet. Will this work if I can get it to "save" instead of "save as" or is there something else I need to do to get it to preserve LF's? Thanks all.
December 11, 200817 yr Ok, I feel like a total noob asking this stuff, but I've been messing with it for an hour and I'm sure someone could answer it quickly. 1) I tried to edit my go file to add the directory listing cache script, but it won't let me save the file (this is from Vista or XP). I'm pretty sure I have modified this file from a windows box in the past, in fact I'm positive I did because I encountered CR/LF problems. I do not have user level security turned on, I do have a root password set. Unfortunately, my machine is headless or I'd just go and use vi on the file, but vi is not working over telnet correctly, I get a bunch of garbage when I try to edit. Also, if I make of copy of the file and try to edit that, I get the same permissions issue, but the weird thing is that it will let me delete the copy - why let me delete if I don't have write permission? 2) I tried to enable user level security, hoping that might give me the access to the file. I turned it on and created a user name with the same user name I have on my Windows box (one difference, the first letter is capitalized on Windows, it wouldn't let me do that in unRAID). Now, whenever I try to access the shares it asks for a username and password and is not accepting what I enter. I have tried both "name" / "pass" as well as "tower\name" and pass, neither work. 3) I read a post where Tom said that you can use Wordpad to edit the files and it will preserve the LF and not convert to <CR>/<LF>. However, if I edit the go file and save it as another filename (since it won't let me save it as go), I can open the file in vi over telnet and see CR's in it - I just can't remove them because I get garbage whenever I try to edit over telnet. Will this work if I can get it to "save" instead of "save as" or is there something else I need to do to get it to preserve LF's? Thanks all. I have a question for you in return. What version of unRAID are you using? I see in the release notes something about flash drive permissions... are you using the new 4.4 version, or 4.5beta? or something older. If you want to use telnet, you just need to download and install "putty" on your windows PC. It works FAR better than the windows telnet. "vi" does work properly with it. Next, the "go" script is pre-processed upon boot to remove any CR/LF present, so it is one of the few files where you do not need to be careful about the editor you use. As far as no permission to "save" did you export the flash drive as read-only? or read-write. It will make a huge difference when trying to save to it. Does your flash drive have a "write-protect" switch? (some do) If so, is it enabled? (that too would make writing difficult) Lastly, I use "vim" on windows to edit my unix/linux files. Download it from vim.org It is free, and very powerful if you know "vi" Joe L.
December 11, 200817 yr Author Joe, I was running 4.3.3 when I wrote the post, I've just changed to 4.4 and I still have the same problem. I checked, and the Flash drive is exported for read/write. I just set it to read-only, applied, and changed it back to read/write and applied - no love. I remembered that I had putty on another box, so I telneted in using that and changed the file via vi, thank you very much for that suggestion. I don't believe the USB drive is set to read-only (physically or in software) - heck I just upgraded by dragging files to the share drive. I still don't understand why I can overwrite files by dragging new copies (like for the upgrade), but I can't edit and save...
Archived
This topic is now archived and is closed to further replies.