Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[SOLVED] Basic Permissions/File Editing Question

Featured Replies

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

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,

  • 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

 

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!
  • 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.

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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.