July 31, 201015 yr To start off, I am running a new unRAID 4.5.6 server. When I initially transferred my data to the server I mounted my old data disks out of the array and copied the data over via the command line copy command. Everything went fine with the first copy, but I screwed something up with the second disk and the permissions do not appear to be correct. When I access the share via the network, all of the existing data files show as lock and I am unable to add any new files to the existing sub-directories, but I was able to transfer a new sub-directory to the share and I have normal permissions for the created file. The permissions for the existing directories and files are: dr-xr-xr-x 1 root root -r--r--r-- 1 root root While the permissions for the new directory and files are: drwx--x--x 1 root root -rwx------ 1 root root In addition the permission for the directory and files from the other copy are: drwxr-xr-x 1 root root -rw-r--r-- 1 root root So my question is, what are the default permissions for unRAID supposed to be and what is the easiest way to modify the permissons for all of the files to be correct? This is about 2 TB worth of data in total between the first copy and the second copy. Thanks in advance.
July 31, 201015 yr I can't claim any deep knowledge, but at a guess, your problems are due to the missing 'w' in the permissions (3rd character). Those directories/files have no users allowed to write. To fix, I would suggest a command something like this: 'chmod -R u+w <drive>' This will add write permission for the user (root) to all the directories/files on that device. PS. Perhaps I should add that: this command can be run from the console, or from a telnet connection to your unRAID server <drive> will be /mnt/diskn/, where diskn will be disk1 or disk2 or whichever is the one with the problems.
July 31, 201015 yr I am having the same problem except, when I browse the share from a Linux machine the directorys show but all the files are hidden, even though they don't start with a period (.) !! I too would like to know what the default permissions need to be for all the files and folders in the array.
July 31, 201015 yr Use 775 for directories and 664 for files. find /mnt/user -type d -exec chmod 0775 {} \; find /mnt/user -type f -exec chmod 0664 {} \;
July 31, 201015 yr I am having the same problem except, when I browse the share from a Linux machine the directorys show but all the files are hidden, even though they don't start with a period (.) !! I too would like to know what the default permissions need to be for all the files and folders in the array. That is a "feature" of samba. It maps the hidden and system attributes in windows to unix permissions. See this post: http://lime-technology.com/forum/index.php?topic=4674.msg43584#msg43584 Most people just set the window's file explorer to show hidden and system files.
Archived
This topic is now archived and is closed to further replies.