Posted September 17, 201113 yr Hi All, Not sure when this happened but some of my media files are recognised by windows as system files and hidden. Is there a command I can change the attributes like the dos attrib command? I'd like to it to apply to all .iso files for instance (some are system files some aren't) Like to dos command: attrib -s -h *.iso Thanks Josh
September 17, 201113 yr This is the script I used a while ago and haven't had a problem since SCRIPT_DIR=/boot/custom/bin [ -d "$SCRIPT_DIR" ] || mkdir -p $SCRIPT_DIR SCRIPT=$SCRIPT_DIR/fix_samba_config.sh cat >$SCRIPT <<EOF sed -i -e 's/hidden\(.*\)[Yy]es\(.*\)/hidden\1no\2/' /etc/rc.d/rc.samba; /etc/rc.d/rc.samba restart EOF chmod +x $SCRIPT echo "$SCRIPT" >>/boot/config/go $SCRIPT http://lime-technology.com/forum/index.php?topic=4674.msg43603#msg43603 Also see this, but haven't used it: http://lime-technology.com/forum/index.php?topic=12494.msg118665#msg118665
September 17, 201113 yr Author Would that be an issue with the samba shares even though only some show up as system files but others don't? It seems awfully complex, I thought it was just a file setting. When I copy the file from unRAID over to a windows PC, I can run the DOS attrib command and the file is all good again. Thanks Josh
September 17, 201113 yr It has to do with Samba using unix permissions to translate Windows attributes. Since I used the script....no more hidden files; and no other issues with Samba. prostuff1 BRiT also explained this very well...but right now all I could find was this http://lime-technology.com/forum/index.php?topic=10647.msg101232#msg101232 http://oreilly.com/catalog/samba/chapter/book/ch05_03.html
September 17, 201113 yr Check out the topic in my signature [Files missing or hidden?]. It deals with the hidden and system permissions. It may also have additional discussions in that link.
September 17, 201113 yr It has to do with Samba using unix permissions to translate Windows attributes. Since I used the script....no more hidden files; and no other issues with Samba. prostuff1 BRiT also explained this very well...but right now all I could find was this http://lime-technology.com/forum/index.php?topic=10647.msg101232#msg101232 http://oreilly.com/catalog/samba/chapter/book/ch05_03.html darn, I almost got credit for something I did not do.
Archived
This topic is now archived and is closed to further replies.