February 14, 200917 yr I just noticed that I have a couple mp3 albums on my unRaid music server that show all the files as hidden in Vista. I tried to change them through Vista, but unchecking "hidden" doesn't stick. I presume I need to change the attributes in Linux, but I'm not sure how. Can someone tell me how to change them? Also, can it be done through Midnight Commande or only through the command line?
February 14, 200917 yr I don't know if this will help since I expect you know more about this stuff than I do. I had an issue where files I was uploading via FTP needed to have their permissions changed or I was not able to see them (the directory looked empty when browsing via XP or Vista.) I installed the following script to run via cron every hour and my problem was solved. Of course if this would work for you you'll have to edit it for your needs: /boot/custom/bin/prod_permissions.sh #!/bin/bash # # Title: *_permissions.sh # # Summary: # The purpose of this script is modify directory and file permissions for files # uploaded to the server via FTP (or other) so that they are accessible # # Modify monitor File & directory so that permissions allow listing the directory # contents via FTP or other. find /mnt/disk2/monitor -type d -exec chmod g+rx,o+rx {} \; find /mnt/disk2/monitor -type f -exec chmod 644 {} \; And then in my GO script: /boot/config/go #!/bin/bash # Install Cron Jobs cd /boot chmod +x custom/bin/prod_permissions.sh cp custom/bin/prod_permissions.sh /etc/cron.hourly/
February 14, 200917 yr Author Thanks for your help jarodtufts. I was creating the script file you posted but I kept thinking that it's odd how none of my other files were showing as hidden. Even the files I've been copying over for the past few weeks are all fine. When I finally stopped and asked myself what was unique about them compared to the rest of my files I finally figured it out. The files were all mp3's by the same band (38 Special) and I noticed that the files all contained a period in front of the 38 (ex: .38 Special). I didn't know for sure that this was a problem for Linux, but when I removed the leading period, the files all showed fine. I guess files that start with a dot mean something in Linux. Anyway the problem is solved.
Archived
This topic is now archived and is closed to further replies.