All files tagged as "hidden system files"!!?

FTP Server, File Server, DDNS, SAMBA, AFP, NFS
Desmodromic
Starting out
Posts: 20
Joined: Sat Jan 10, 2009 6:28 am

Re: All files tagged as "hidden system files"!!?

Post by Desmodromic »

Hi Force,

I am a little bit noobish to Linux.

I created a file using notepad with the content you mentioned and gave it the right name.

Then I ftp'ed it to the NAS server, to the folder with the hidden content (and visible folders).

When I execute the file, nothing happens.

Could you tell me what I am doing wrong, or could you give a step-by-step description of the right procedure?

Many thanks in advance!
Desmodromic
Starting out
Posts: 20
Joined: Sat Jan 10, 2009 6:28 am

Re: All files tagged as "hidden system files"!!?

Post by Desmodromic »

I think I found the reason your script did not execute well.

I noticed that I use spaces in the folder names. Linux doesn't seem to like that, so that could explain the problem.

I am renaming the folder names in order to remove the spaces in the titles.

Do you have a tool for that? ;)
Eraser-EMC2-
Been there, done that
Posts: 711
Joined: Sat Oct 13, 2007 5:26 pm
Location: Germany

Re: All files tagged as "hidden system files"!!?

Post by Eraser-EMC2- »

For folders with spaces inside, it helps to put " outside of $1 like that :
Force wrote: ------------------------------------------------------------------------------

#!/bin/sh
#
# script name : setrights
#
# purpose : Set rights of all files to 766 and all dirs to 777 (recursive)
# author : Force
# date : 2008/12/15
#
if [ $# -eq 1 ]
then
chmod -R a+rw "$1"
chmod -R a-x "$1"
chmod -R g+X,o+X,u+x "$1"
fi
_________________
Windows 7 32/64bit, German
TS-439 , 1x 512GB SSD/1x 512GB Samsung ; SAMBA as NT4 PDC, DHCP/DNS-Server
TS-431+, 1x 1TB WD green, 2x 3TB WD red , 1x 2TB Samsung
TS-220 , 2x 2TB Samsung, for Backup
jinaun
Starting out
Posts: 28
Joined: Sat Jun 13, 2009 12:13 pm

Re: All files tagged as "hidden system files"!!?

Post by jinaun »

i'm using FW 2.1.6 and this issue still happens.. on my brand new 239

the workaround that i found helpful in this forum is editing the samba config file..which so far seems to be working and chmod the files so the files will be visible

i'm i right to expect this issue be resolved in the next FW release? or it will not happen?
Desmodromic
Starting out
Posts: 20
Joined: Sat Jan 10, 2009 6:28 am

Re: All files tagged as "hidden system files"!!?

Post by Desmodromic »

As a noobian I'd like to share a lesson learned with anyone who experiences the 'hidden XP files' problem and uses the setrights script.

I had some problems getting the script to run correctly, but I finally managed!

I solved my problem as follows:
1. Copy the setrights.sh script to the right folder (in my case it is /share/Qmultimedia/MyMusic).
2. Make sure you are in the right folder (execute for example: cd /share/Qmultimedia/MyMusic/ ).
3. Execute the following command from shell: /share/Qmultimedia/MyMusic/setrights.sh . (don't forget the '.' at the end! That is what solved my problem ;) ).
4. Wait until the scipt is finished.
5. Your files are now nicely visible for XP! Without having to use the (IMHO) quick and dirty solution to make protected files visible under XP.

I hope this helps!

Note: many thanks to Eraser-EMC2 for sharing the script he wrote!
User avatar
QNAPRobert
Starting out
Posts: 22
Joined: Wed Apr 08, 2009 1:12 pm
Location: TeletubbyLand!

Re: All files tagged as "hidden system files"!!?

Post by QNAPRobert »

Hi,all:
There's a system script that might come handy :

Code: Select all

/sbin/set_volume_mode <Share_Folder_name>
the share folder must be on root folder level,that is : on the share folder list in the Web administration GUI.

eg.
/sbin/set_volume_mode Public
would set all the folders mode and files mode back to QNAP default.

*Thanks Lee Buskey of U.S.A. informed me and all your efforts.
dreken
New here
Posts: 2
Joined: Fri Aug 15, 2008 5:09 pm

Re: All files tagged as "hidden system files"!!?

Post by dreken »

WONDERFUL! This litte feature just made my day!
lifeisfun
Know my way around
Posts: 128
Joined: Sun Nov 30, 2008 5:09 am

Re: All files tagged as "hidden system files"!!?

Post by lifeisfun »

I have similar problem with my 509
some avi files copied long time ago from external drive are set as hidden but there is no way
from windows to change it since that option is grayed out.
My folder structure is that each avi is in it's individual folder
(about 1000 of them and only about 100 having this problem )

Can you guys PLEASE help me with instructions what to do. I'm fine with windows
but never used Linux. :oops:

Thanks
lifeisfun
Know my way around
Posts: 128
Joined: Sun Nov 30, 2008 5:09 am

Re: All files tagged as "hidden system files"!!?

Post by lifeisfun »

Dropnuts
Getting the hang of things
Posts: 70
Joined: Sat Oct 31, 2009 2:09 pm
Location: Australia

Re: All files tagged as "hidden system files"!!?

Post by Dropnuts »

QNAPRobert wrote:Hi,all:
There's a system script that might come handy :

Code: Select all

/sbin/set_volume_mode <Share_Folder_name>
the share folder must be on root folder level,that is : on the share folder list in the Web administration GUI.

eg.
/sbin/set_volume_mode Public
would set all the folders mode and files mode back to QNAP default.

*Thanks Lee Buskey of U.S.A. informed me and all your efforts.
I know this is an old thread, but this advice was working nicely for me.

But since a system reboot this script produces the output:
[~] # /sbin/set_volume_mode /share/Qmultimedia/
Volume: /share/Qmultimedia/
Path: Can't find it in /etc/smb.conf


Any idea why?
[TS-509] - E7600 C2D CPU, TS-809 firmware on 16GB SSD DOM
User avatar
schumaku
Guru
Posts: 43579
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: All files tagged as "hidden system files"!!?

Post by schumaku »

Just use the share name, instead of tha share path:

Code: Select all

[~] # /sbin/set_volume_mode /share/Qmultimedia/
Volume: /share/Qmultimedia/
Path: Can't find it in /etc/smb.conf

[~] # /sbin/set_volume_mode Qmultimedia
Volume: Qmultimedia
Path: /share/HDA_DATA/Qmultimedia
Set directory mode to 777 and file mode to 666
-Kurt.
Dropnuts
Getting the hang of things
Posts: 70
Joined: Sat Oct 31, 2009 2:09 pm
Location: Australia

Re: All files tagged as "hidden system files"!!?

Post by Dropnuts »

Thanks for that. Worked a treat. I'm sure it used to work the other way before. Might be imagining things though.
[TS-509] - E7600 C2D CPU, TS-809 firmware on 16GB SSD DOM
SamTHorn
New here
Posts: 5
Joined: Thu Apr 08, 2010 7:28 am

Re: All files tagged as "hidden system files"!!?

Post by SamTHorn »

I am not sure if you've resolved this yet but try right clicking the folder and in the properties un-select hidden. That should do the trick...
fulanke
Getting the hang of things
Posts: 50
Joined: Mon Jul 27, 2009 12:04 am

Re: All files tagged as "hidden system files"!!?

Post by fulanke »

I am kicking into this thread as I haven't got any response to my own thread. I am facing exactly the same problem on my TS209PRO2 and after reading this thread, I do confirm that I have the same issue. Randomly files were being marked as hidden and system and I needed quite some time fixing this via SSH.

qnap support, please get alife and comment on this. File system permissions and file visibility are a critical thing for all qnap users, so I would like to see some priority on such issues. It can't be solution to force users doing SSH and chmod actions - especially given that QNAP claims to be a Plug&Play storage solution. Unexperienced users will freak out over this or return the box to the dealer as defective.
iggibuh
Starting out
Posts: 19
Joined: Fri Dec 24, 2010 5:10 pm

Re: All files tagged as "hidden system files"!!?

Post by iggibuh »

i couldent understand that some friends said they couldent get acces to some shares of mine but after trying to change file attribues and just seeing them frozen via filemanager im rather annoyd with qnap for not fixing this.

im not that all into computers for the advanced fix or what u might call it and disappointed that qnap dosent take fix the issue at hand, i for one wont buy any more qnap products due to this issue not being taken seriously
Locked

Return to “File Sharing”