May 13, 201016 yr Ok, so i tried playing a file from /mnt/disk2 in vlc and it said it couldn't open, i'd used an external HD that for some reason seems to mess up file permissions sometimes, so i logged in via ssh and typed cd /mnt/disk2/ then chmod -R 0777 TV a few seconds later and all the files dissapeared.. i had to untick "hide protected operating system files" for them to show.. not sure what i did wrong, or what i need to do to put it right again, any ideas.
May 13, 201016 yr It related to the mapping from UNIX permissions to Windows permissions. You initiated the hidden and protected bits. You should use something like the following instead: find /mnt/disk# -type d -exec chmod 0777 {} \; find /mnt/disk# -type f -exec chmod 0666 {} \; NOTE: There should be a WIKI entry on this if there isn't already as it always comes up and no one seems to search the forums.
May 13, 201016 yr Here's a previous post that explains this: http://lime-technology.com/forum/index.php?topic=5500.msg51222#msg51222 (repeated here to generate warm-fuzzies) It is not a bug. It depends on how you configured SAMBA to map additional non-unix attributes, like the WinOS HIDDEN flag. Look into the SAMBA options of "map hidden", "map archive", and "map system" within the smb.conf man pages.
May 13, 201016 yr Author Lol, sorry i didn't search, but i had no idea really what to even search for. Also i didn't configure samba to do anything, its just the default installation, thanks for your help BRiT, its most appreciated
May 14, 201016 yr In the current version of samba, both "map hidden" and "map system" default to "Yes". You can easily change that by adding the following two lines to the global section of your smb-extra.conf map hidden = No map system = No If smb-extra.conf doesn't exist in the config folder of your flash disk, create it! The easiest is to just telnet to your server and type in the following two lines: echo 'map hidden = No' >> /boot/config/smb-extra.conf echo 'map system = No' >> /boot/config/smb-extra.conf
May 14, 201016 yr Author Thanks purko, i ssh-ed in, copied and pasted those 2 lines, then went into unmenu and clicked stop then start samba and they appear to be showing up properly now
Archived
This topic is now archived and is closed to further replies.