March 6, 201214 yr Hi everyone, thanks in advance for any help that you can provide me. Disclaimer: I have read the majority of the help documentation and searched the forums however haven't quite found the info I need as I am a pretty basic user so hoping someone can help me out with the level of detail I need. Ok so I have been using unRaid for about 6 months now, absolutely loving the platform, despite being a novice I was able to set up the server pretty easily following the guides and it has been running perfectly for quite a while now. I am still running the official stable release of version 4.7 as I am not confident upgrading just yet unless I require some new functionality in the new release. The problem I have hit is the other day when my wife was trying to access one of my shares she started receiving errors that she did not have permission to access certain files (however was able to access some other files) To try and fix this problem I started playing around with permissions simply using windows explorer (right click>properties>security) Now after playing around with the settings I can not even see any files in the share, I can see the folders but not the individual files, i can also see that the files still exist as the folder icons have previews for the photos that are in the folders. Obviously I have broken the security permissions and my hope is that someone can help me out with fixing it, I have spent quite a lot of time playing around in the same way I did when I broke things but haven't been able to get the situation resolved. Thanks to everyone in advance!
March 6, 201214 yr Check and make sure they aren't hidden. You can go to Control Panel > Appearance > Show Hidden Files and Folders. Its best not to mess with permissions via Windows as you could take control of the files on the server, which would ultimately add to the confusion/problem. If the files aren't hidden you can change the permissions yourself from either telnet or the server directly. To check the permissions using telnet or at the server, navigate to the directory: cd /mnt/user/documents To change the permissions use CHMOD, such as CHMOD 770 or 764 using octals. If you aren't sure how to set the permissions read up first on using chmod so you understand what your doing. 770 gives the user(owner) and the group(users belong to same group) Read/Write and Execute permission, while giving others no permissions. First number is User, Second is Group, Third is Other. Read = 4 Write = 2 Execute = 1 You add the numbers together for permissions, so someone with R/W+E is 7, just R/W is 6. You can also do CHMOD u+rwx which says"Give User read, write and execute permissions". Same goes for group(g) and other(o). Octals are just a bit quicker at this. Not sure how much of that you knew but hopefully its enough to help,
March 6, 201214 yr Please attach a syslog to a post. zip if needed. Restore the permissions to their previous settings. Look in a directory that has not been modified if you can't remember the proper settings.
March 7, 201214 yr Author Thanks for the feedback guys, once I get home I will give this a try (unfortunately on a training course for the rest of the week) Sorry for not attaching a syslog to the post, I am not actually sure how to do this but once i get home i will go and look it up, i assume it should be somewhere in the wiki or forums. Cheers
June 7, 201214 yr Author Hi Guys, Thanks for the help you previously provided, I know it has been a little while since I first posted but i still have the problem. I had a quick go at trying to fix the problem shortly after the replies but didnt really get anywhere and didnt have the time for a more concerted effort, a couple of days ago however I decided to have a really good go at trying to get this issue resolved however I am still seeing problems and dont really know how to proceed. My knowledge of linux is practically zero having not played around with it much before starting to use unraid so the more explicit the instructions the better. I will try and provide some more information and have attached my syslog in case it helps (I looked in there and just got confused) So i have a share on my server called "Home Media" which basically contains all my personal photos and videos. From my windows PC and any other device i can only see folders but not actual files. When I telnet on to my server i can browse to the directory /mnt/user/Home\ Media and see all the files sitting there so I know that everything still exists I tried to change the permissions on the directory user the command "chmod 777 Home\ Media" I used 77 because at this stage i simply want everyone to see whats there and resolve the problem and later i may try to tighten security once i have a better understanding of whats going on. I didn't get an error at all so it seemed like it worked, however i still cannot see any files in the share when I browse from my windows PC. I am planning on dedicated the whole weekend to trying to get this resolved, as well as trying to set up DLNA in unraid using either the plex plugin or PS3Media Streamer so I have plenty of time to try things and report back if you guys have the time to help me out. Many Thanks PS I am still only running version 4.7 of unraid as I have not yet been confident of the process to upgrade to 5 syslog.txt
June 8, 201214 yr Doing just chmod will do the file or folder in question. to do all files in a directory you have to do chmod -R if you post the output of ls -l on some of the files in question it would shed some light on what's going on as well
June 8, 201214 yr Author Thanks for the help Influencer, sorry i forgot to mention that i looked up the command for doing a recursive chmod and found that i needed to add -R so i have already done that. I have attached a screenshot of my telnet session with all the files for the directory using ls -l as you asked. Thanks very much
June 8, 201214 yr Just saw the last line of your post that you are still on 4.7, I'm not 100% sure on how permissions with 4.7 go, since on the 5 beta's everything is owned by nobody:users instead of root:root... Someone else will have to chime in that uses 4.7,
June 8, 201214 yr Author No worries, thanks for your help anyway Influencer In your option should I upgrade to beta 5? when I first set up the server I tested out an earlier version of the 5 beta and just couldn't get things to work correctly, is it reasonably stable now? Also if i am going to upgrade which version of the beta should I move to? I see that beta 5 v6 is now classified as stable, is this where I should migrate? If I upgrade is there any risk of losing any information stored in my shares? If i upgrade and then encounter problems how easy is it to go back to my previous system? do i simply want to create a backup of the flash drive? Sorry for smashing you with questions, you help is very much appreciated
June 8, 201214 yr I would suggest updating to 5RC3 or 5RC4, both are stable in pretty much every regard. If you run a SuperMicro 8-port card, I believe there is currently an issue, but other than that its been solid. I'm running RC3 currently(just haven't had the chance to update) and its rock solid. If you follow the upgrade instructions posted, there is no risk. Simple rule, do NOT select a parity disk unless you are SURE that the disk is indeed parity. If you select a data disk as parity unraid will detect bad parity and start a rebuild, which would destroy data on the disk. Take a picture of your disks now from the webgui main page, so you can see which disk is which serial number, and when you start back up, make sure to put them in the same location. Again, parity is the most important to get in the right spot. Creating a backup of the flash drive before upgrading makes rolling back as simple as it gets, And no problem, always glad to help. This page shows the release notes, including the official instructions for upgrading from 4.7 http://lime-technology.com/wiki/index.php?title=UnRAID_Server_Version_5.0-beta_Release_Notes
June 8, 201214 yr See here for correct permission settings: http://oreilly.com/openbook/samba/book/ch05_03.html The safest option is to check the permissions for a directory and a file that you are able to access properly and then change the others to match. Enter "ls -l" for a listing that shows permissions.
June 8, 201214 yr Author Hey guys thanks for all your help! I have fixed the problem. The link dgaschk posted showing how permissions fully worked helped, it seemed the problem was that I had somehow made the files hidden, and when i did chmod -R 777 it hadnt fixed the issue because the hidden property was still active. Once i did a chmod 770 the problem was fixed. Chalk this one up to being a complete Linux novice, however the plus side is that i have learned a lot about file permissions so I thank everyone who has helped me out, i really appreciate it. Now to upgrade to version 5!
June 8, 201214 yr Glad you got it sorted out. If anyone hits this thread again... This post was helpful to me when I had a similar issue: http://lime-technology.com/forum/index.php?topic=4674.msg43603#msg43603 Which prevents the hidden bit from ever being active... Anyways, this isn't required in 5x but was for me in 4.7
Archived
This topic is now archived and is closed to further replies.