April 27, 201214 yr Hi, under "Utils" tab, you can read: "New Permissions This is a one-time action to be taken after upgrading from a pre-5.0 unRAID server release to version 5.0. It is also useful for restoring default ownership/permissions on files and directories when transitioning back from Active Directory to non-Active Directory integration. This will start a background process that goes to each of your data disks and cache disk and change all file and directory ownership (uid/gid) to 99/100, i.e., to nobody/users. In addition it sets permissions as follows: For directories: -rwxrwx--- For read/write files: -rw-rw--- For readonly files: -r--r----- This process can take a long time if you have many files." I really don´t understand how it works. Since I am having problems with copying files from my pc to my shares (I get an error telling me I don´t have any permissions to do that), I would really appreciate if anyone can explain to me the functionality of the "Utils" tab. Rgds.
April 27, 201214 yr Due to the new method of managing shares in version 5 new permissions settings are required after an upgrade from version 4.7. If add-ons are not configured correctly or command line file operations are not done correctly it may be necessary to run it again.
April 27, 201214 yr Author Hi, I did a clean install of 5.0b11 so this does not apply to me. I checked the following... 1) I created 3 new shares: 00_DATA PERSONAL 00_MEDIA 00_MEDIA PERSONAL 2) I then copied folders/files from an external HDD (mounted using SNAP) to 00_MEDIA. The folders/files were created with a previous version of unraid (4.7). For example, let´s say one of the folders is "SCIFI MOVIES" 3) Now I downloaded a movie from Internet to my pc and then tried to copy it to my 00_MEDIA share>folder "SCIFI MOVIES". I get a permissions error. 4) Now I create a new folder in my 00_MOVIES, let´s say it´s called "YYY". After that I try to copy a file from my pc to 00_MOVIES>folder "YYY". It works. No permissions error. Why is this happening? How can I fix it? Rgds.
April 27, 201214 yr The permissions were not set correctly while using the SNAP add-on. Run the New Permissions utility.
April 27, 201214 yr Author Hi, -how should be the snap add-on be configured to allow permissions to work correctly (i still need to migrate more disks from my old array inv4.7 to 5.0b11)? -to run the new permissions utility i only need to check "start" button in Utils tab, right? Rgds.
April 27, 201214 yr It was not SNAP per se. It was to copy commands that you used. You can set up a script that will do the copy and then fix the permissions. The simplest solution is just to run the Utility.
April 28, 201214 yr Author Hi, thx for help. I did run the Utility and it worked. "You can set up a script that will do the copy and then fix the permissions"....You mean I can´t run this script from snap? If so, let me know how should the script look like. Rgds.
April 28, 201214 yr Here a script: #!/bin/bash args=("$@") echo ... cp $* cp $* /usr/local/sbin/newperms ${args[$(( $# - 1 ))]} Use this instead of cp.
Archived
This topic is now archived and is closed to further replies.