July 23, 201213 yr I just upgraded from 4.7 to 5.0 RC 4. I added a new user (different from root), and also ran the new permissions script in the utils panel. I can see unraid in my network places, but when I try to go in, I see what's in the attached JPEG. I also try to map the drive via a batch file using the below and I get "access denied". I have NOT set a password in the users panel. Attached is my syslog and a screenshot of the issue. Any help? syslog.zip
July 23, 201213 yr Author Look in the Credentials control panel. not seeing that. Where is that in version 5.0 RC4?
July 23, 201213 yr Double check that the workgroup names match (including capitalization) on both the server and your windows machine.
July 23, 201213 yr Author Double check that the workgroup names match (including capitalization) on both the server and your windows machine. The workgroup names do match. MILKYWAY in all caps on both win7 and in the unraid settings > SMB. I also rebooted my windows 7 machine and still get the same. I can see "UNRAID" in my network. I can also click into the top level UNRAID folder to see all my disks (disk 1,2,3, etc. as well as "flash" and "unraid"), but I can't get path that to get into any folders beneath that top level. if I do this script from a telnet as suggested in other posts, will this "reset" my permissions, or is there another way of clearing all unraid permissions to make it completely public? newperms /mnt/user/unraid/
July 23, 201213 yr What is your security setting in unRAID? You can check by clicking on 'Shares', then click on the name of the share-- it's in blue on my interface. Scroll down to 'SMB Security Settings'. I have mine set to 'Export' and 'Public'.
July 23, 201213 yr Author What is your security setting in unRAID? You can check by clicking on 'Shares', then click on the name of the share-- it's in blue on my interface. Scroll down to 'SMB Security Settings'. I have mine set to 'Export' and 'Public'. Both NFS Security Settings and SMB Security Settings are set as: Export: Yes Security: Public Per another thread on this forum I did activate NFS features in windows 7 Ultimate and also added the 2 reg keys below. Should I turn off NFS in unraid, disable NFS in windows 7, and then remove the 2 registry entries I did? HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default AnonymousGid: DWORD = 0 AnonymousUid: DWORD = 0 I'll try reverting back the NFS features and the reg keys unless anyone thinks I should keep them in.
July 24, 201213 yr This is a Windows control panel. And I'm looking for what in there? Saved credentials for the server.
July 24, 201213 yr Author This is a Windows control panel. And I'm looking for what in there? Saved credentials for the server. Nothing present there for unraid at all.
July 24, 201213 yr Telnet into your unRAID server. Login as 'root' and use your unRAID password You will now be operating in the 'command mode' and will have to type everything in. Type (replacing 'Media' with the share name--Capitalization is IMPORTANT): ls -al ../mnt/user/Media This will give a listing of everything in the folder 'Media'. Typical output will look like this: drwxrwx--- 1 nobody users 200 2012-05-02 19:46 ./ drwxrwx--- 1 nobody users 104 2012-05-02 19:42 ../ drwxrwx--- 1 nobody users 264 2012-06-08 17:38 Blu_ray\ Movies/ drwxrwx--- 1 nobody users 392 2012-05-03 23:42 DVD\ Movies/ drwxrwx--- 1 nobody users 200 2012-05-03 10:36 Family\ DVD\ Videos/ drwxrwx--- 1 nobody users 136 2012-05-04 15:07 Music/ The first column is the permissions: the first 'd' means that the entry is a directory. Following that are three groups of three letters for access permissions for the owner, for a defined user group, and the final one for public. (the 'r' means read permission, 'w' write permission and the 'x' for execute permission, '-' means permission is denied.) Notice that public is denied permission!!! Only the owner and group are given permission. "nobody" is the the owner and "users" is the group. To gain access to these files, you MUST be either the owner (nobody) or a member of the group (users). I believe that this owner and group have a special meaning to unRAID. All unRAID shares that available to the outside world without a login and password must have this owner and group assigned to them. Check to see that you have this owner and group and the permission string as shown. (My install is pure villain with with no changes to increase security.) EDIT: You can also do all of the above from the console (Keyboard and monitor connected directly to the server)
July 24, 201213 yr Author Telnet into your unRAID server. Login as 'root' and use your unRAID password You will now be operating in the 'command mode' and will have to type everything in. Type (replacing 'Media' with the share name--Capitalization is IMPORTANT): ls -al ../mnt/user/Media This will give a listing of everything in the folder 'Media'. Typical output will look like this: drwxrwx--- 1 nobody users 200 2012-05-02 19:46 ./ drwxrwx--- 1 nobody users 104 2012-05-02 19:42 ../ drwxrwx--- 1 nobody users 264 2012-06-08 17:38 Blu_ray\ Movies/ drwxrwx--- 1 nobody users 392 2012-05-03 23:42 DVD\ Movies/ drwxrwx--- 1 nobody users 200 2012-05-03 10:36 Family\ DVD\ Videos/ drwxrwx--- 1 nobody users 136 2012-05-04 15:07 Music/ The first column is the permissions: the first 'd' means that the entry is a directory. Following that are three groups of three letters for access permissions for the owner, for a defined user group, and the final one for public. (the 'r' means read permission, 'w' write permission and the 'x' for execute permission, '-' means permission is denied.) Notice that public is denied permission!!! Only the owner and group are given permission. "nobody" is the the owner and "users" is the group. To gain access to these files, you MUST be either the owner (nobody) or a member of the group (users). I believe that this owner and group have a special meaning to unRAID. All unRAID shares that available to the outside world without a login and password must have this owner and group assigned to them. Check to see that you have this owner and group and the permission string as shown. (My install is pure villain with with no changes to increase security.) EDIT: You can also do all of the above from the console (Keyboard and monitor connected directly to the server) Thank you Frank1940, I will do this and report back. I really appreciate all of the detail. I've had the unraid for 3 years without any large issues, so my experience with having to fix issues is new.
July 24, 201213 yr Author Telnet into your unRAID server. Login as 'root' and use your unRAID password You will now be operating in the 'command mode' and will have to type everything in. Type (replacing 'Media' with the share name--Capitalization is IMPORTANT): ls -al ../mnt/user/Media This will give a listing of everything in the folder 'Media'. Typical output will look like this: drwxrwx--- 1 nobody users 200 2012-05-02 19:46 ./ drwxrwx--- 1 nobody users 104 2012-05-02 19:42 ../ drwxrwx--- 1 nobody users 264 2012-06-08 17:38 Blu_ray\ Movies/ drwxrwx--- 1 nobody users 392 2012-05-03 23:42 DVD\ Movies/ drwxrwx--- 1 nobody users 200 2012-05-03 10:36 Family\ DVD\ Videos/ drwxrwx--- 1 nobody users 136 2012-05-04 15:07 Music/ The first column is the permissions: the first 'd' means that the entry is a directory. Following that are three groups of three letters for access permissions for the owner, for a defined user group, and the final one for public. (the 'r' means read permission, 'w' write permission and the 'x' for execute permission, '-' means permission is denied.) Notice that public is denied permission!!! Only the owner and group are given permission. "nobody" is the the owner and "users" is the group. To gain access to these files, you MUST be either the owner (nobody) or a member of the group (users). I believe that this owner and group have a special meaning to unRAID. All unRAID shares that available to the outside world without a login and password must have this owner and group assigned to them. Check to see that you have this owner and group and the permission string as shown. (My install is pure villain with with no changes to increase security.) EDIT: You can also do all of the above from the console (Keyboard and monitor connected directly to the server) Attached is a screenshot of my output. Not sure if I'm reading this correctly in comparing your typical output above, but most of them have "root root" where as your example has "nobody users". My unraid is used only by me within my home network. I think I need some additional help with translating this. I see the top level dot "." has "root root" and then one level down with the dot dot " ..", I have nobody users. Is that why I can at least see the top level disk structure and unraid in my network places, but then can't get to the next level of folders down without getting permission denied?
July 24, 201213 yr You will need to run the New Permissions script. Currently everything is owned by root, but it should be owned by the user "nobody".
July 24, 201213 yr Author You will need to run the New Permissions script. Currently everything is owned by root, but it should be owned by the user "nobody". I've done the new perms script in the utils tab of 5.0 RC4 but to confirm; is it the same as the below? "unraid" being the name of my network share newperms /mnt/user/unraid/
July 24, 201213 yr Author I ran the new perms script in the utils tab of unraid 5.0 RC4. I then did this again: ls -al ../mnt/user/unraid After running that, the only directory that has "nobody users" is below. All my other directories and files still have "root root". drwxrwx--- 1 nobody users 104 2012-07-19 04:21 ../
July 24, 201213 yr I ran the new perms script in the utils tab of unraid 5.0 RC4. I then did this again: ls -al ../mnt/user/unraid After running that, the only directory that has "nobody users" is below. All my other directories and files still have "root root". drwxrwx--- 1 nobody users 104 2012-07-19 04:21 ../ If you look at the jpg you posted, you will observe that the ../ was already 'nobody users'. It appears that the new permission script has never run. By the way if you have a lot of files, it will take along time to complete as if has to rewrite every file and directory entry. If it is not taking several minute to a couple of hours to run, something is wrong...
July 24, 201213 yr Author I ran the new perms script in the utils tab of unraid 5.0 RC4. I then did this again: ls -al ../mnt/user/unraid After running that, the only directory that has "nobody users" is below. All my other directories and files still have "root root". drwxrwx--- 1 nobody users 104 2012-07-19 04:21 ../ If you look at the jpg you posted, you will observe that the ../ was already 'nobody users'. It appears that the new permission script has never run. By the way if you have a lot of files, it will take along time to complete as if has to rewrite every file and directory entry. If it is not taking several minute to a couple of hours to run, something is wrong... from what I've seen in running the new perms script, it's taking maybe 10 minutes. I have about 2.5 TB of files on this server. Total available capacity is a bit over 5 TB. So I agree, something does seem wrong since I'd think it should take a lot longer. I appreciate thoughts on next steps, as I'm at a loss for what other scripts to run or things I can do.
July 24, 201213 yr I think at this point, you should consider modifying the title of this thread to reflect that you are having a 'New Permissions' problem. I know that the script calls standard utilities to do this job and tha any good Linux guru could fix the problem with one or two command lines. But I am not that guy. I know just enough to made me really, really dangerous if I was working on my computer but oh what I could do if I was working on one remotely!!! Oh!! Just saw sureguy's post. I do believe that will do the job
July 24, 201213 yr You will need to run the New Permissions script. Currently everything is owned by root, but it should be owned by the user "nobody". I've done the new perms script in the utils tab of 5.0 RC4 but to confirm; is it the same as the below? "unraid" being the name of my network share newperms /mnt/user/unraid/ What does newperms output? Telnet (putty) to the server and run the command again. Then copy and paste the terminal session into a post.
July 24, 201213 yr Author You will need to run the New Permissions script. Currently everything is owned by root, but it should be owned by the user "nobody". I've done the new perms script in the utils tab of 5.0 RC4 but to confirm; is it the same as the below? "unraid" being the name of my network share newperms /mnt/user/unraid/ What does newperms output? Telnet (putty) to the server and run the command again. Then copy and paste the terminal session into a post. from a telnet putty session, I see: processing /mnt/user/unraid/ ... chmod -R go-rwx,u-x,g+u,ug+X /mnt/user/unraid/
July 24, 201213 yr Author You could try issuing the following: chown -R nobody:users /mnt/user/unraid Sorry - I just saw this too. I am running that line now and will post back.
Archived
This topic is now archived and is closed to further replies.