Jump to content

How to change system files back to normal in terminal

Featured Replies

Posted

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

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

 

  • 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

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.

That was the post I stumbled upon when I had the same problem.  Thanks BRiT!

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.  :P

  • Author

Thanks, Will have a read up on those topics

 

Josh

Archived

This topic is now archived and is closed to further replies.