|
Post by michaelw on Nov 15, 2006 3:59:33 GMT 7
Hello everyone,
Last week I bought a thecus N2100. I really like it thus fas, except for one thing. When I try to set extra file attributes (Read only, system or hidden) on a file or folder, the system just won't do it. Needless to say that i try to edit the files from an xp workstation.
My question, how can I make it accept the hidden file attribute settings?
I have a roaming profile that is stored on the NAS, but if it is copied back to the Windows client all files that where hidden lose that attribute.
Hope anyone can help
Mike
|
|
|
Post by michaelw on Nov 15, 2006 6:27:23 GMT 7
Well I'm not such an idiot after all I spoke to a guy on IRC and he pointed me out that perhaps this was a samba "issue". So I started to google for samba and "hidden attribute". It apperas that you can add a line in the smb.conf file "hidden files = /desktop.ini/RECYCLER/" Restart samba (well actually i restarted the box cause I don't know how to restart a service on linux ;-) and that's it. Hope this info helps!! Mike
|
|
|
Post by ryebank on Nov 16, 2006 6:56:58 GMT 7
To restart SAMBA on n2100 go in via SSH and enter /app/etc/rc.samba restart
Or just turn SMB sharing on and off in the web admin GUI of the N2100
|
|
|
Post by dbridges on Nov 16, 2006 10:47:30 GMT 7
We've ended up with two threads on the same topic Have a look at this one... thecususergroup.proboards106.com/index.cgi?board=modifications&action=display&thread=1163443728Edit: I should explain. User permissions in linux are Read (r), Write (w) and Execute (x) and exist at User, Group and World levels. Hidden files are prefixed with a '.' i.e .profile Windows filesystem is different (obviously) and in order to mimic it the samba commands map_hidden, map_archived and map_system, associate these three states with the read, write and execute permissions of the world level permissions for a file. Setting this in samba can generally cause more problems than it's worth which you've discovered
|
|
|
Post by michaelw on Nov 19, 2006 23:18:51 GMT 7
Hi,
Thanks for your reply!! Well I ended up with changing the samba config file like I explained in my second posting, but I want to learn a bit more on the Unix security style. Do you happen to have a good link that would explain this in more detail?
Thanks Mike
|
|
|
Post by michaelw on Nov 19, 2006 23:25:42 GMT 7
Whoops, almost forgot THANK YOU ryebank for explaining this to me
|
|
|
Post by dalryk on Apr 17, 2007 20:26:03 GMT 7
OK, so I've got an issue that sounds vaguely related to this one:
Got my Thecus 5200 up and running fine on my home network. I just have a couple of folders which are public and browseable by anyone, haven't bothered with setting up any users or permissions or anything.
Issue that I have is that I can copy files to and from the Thecus directories fine from other computers on the network, but when I try to move files around within the Thecus directories, more often than not they end up becoming set to 'hidden'
All the other comps on the network are running XP, and I can access the file 'properties' and change the hidden attribute without much fuss, but it's a bit of an annoyance to say the least.
Anyone got any ideas as to why this is happening and how I can stop it?
I have noticed that it only seems to happen when using the cut and paste method of moving files. I figure it might be related to the fact that when the files are selected and 'cut', their icons go translucent the same as when they are hidden. Then when I go to the target directory and 'paste', the relocated files remain translucent and show up as hidden in the file properties.
|
|
|
Post by dbridges on Apr 18, 2007 5:20:45 GMT 7
Have a look at the post i linked to further back in this thread.
In your samba conf set the map hidden, map archive and map system to "no" and try again.
Also go in and have a look at the permissions before and after you do the move and see what changes.
|
|
|
Post by dalryk on Apr 19, 2007 15:55:44 GMT 7
thanks for that dbridges, I did take a look at that thread before posting - but wasn't sure if it was a solution specific to the BT module issue.
But what you're saying is that it's a fundamental problem with the way they've set up the SAMBA system (which is some kind of file system manager for linux? sorry I'm a total linux noob), and making the changes you've suggested will set it up the way Thecus should have done it in the first place?
But to do that I need to install the SSH module and login and stuff around with the settings. I was kinda hoping i could avoid that, but from the sounds of things I should probably start getting comfortable with it if it want to get the most out of my N5200....
|
|
|
Post by dalryk on Apr 19, 2007 18:51:49 GMT 7
Alright, so I got the SHH login thing working. Now I got just one little issue; how do I actually edit the smb.conf file?
|
|
|
Post by dbridges on Apr 20, 2007 8:43:05 GMT 7
I thought that there was a PSMBCFG module created to do it... If you want to do it by hand though the easiest way is to copy it to a share and edit it there and copy it back when you're done. But you'll need an editor that can handle unix files. Textpad is free (i think). N2100:~# cd /raid/sysN2100:/raid/sys# cp smb.conf smb.conf.backupN2100:/raid/sys# cp smb.conf /raid/yourshareEdit the file through the share. N2100:/raid/sys# cp /raid/yourshare/smb.conf smb.confThen restart it... /app/etc/rc.d/rc.samba restartCheck that your shares are still working and that nothing bad has happened. They may need to be refreshed because they will temporarily drop out when samba restarts. If they're not working then copy the backup back into place. cp smb.conf.backup smb.confThen restart it... /app/etc/rc.d/rc.samba restartThen have a think about what may have gone wrong reboot if you think that it will help
|
|
|
Post by getmythe on Apr 20, 2007 22:15:50 GMT 7
Yes, the PSMBCFG module has been created to deal with this issue. Meanwhile it has been supersed by (a much improved) META script called patch_samba_config.sh. But, neither PSMBCFG nor META will actually help dalryk as he is using a N5200.
|
|
|
Post by dalryk on Apr 21, 2007 7:08:36 GMT 7
yeah, sorry. I really shoulda posted this in the 5200 section - but I just did a search for 'hidden' and then posted in what looked like a vaguely related thread. Dunno if a moderator wants to copy or link it into the 5200 section or something..... Back to the subject, I saw the patch you mentioned dbridges, but was concerned that it would only work for the 2100 (and would make my system explode or something). Judging from Getmythe's post it seems my concerns are at least partially justified - although I admit spontaneous explosions are a low probability. No matter though, doing it by hand will be more fun and I think you've given me enough info to do that. I'll let ya'll know how I go ;D
|
|
|
Post by dalryk on Apr 22, 2007 7:29:09 GMT 7
yaha! success.
managed to get into the config file as you suggested, but couldn't see any global settings for map system, hidden or archive. Each share folder had settings for map system and archive though, so I set them to 'no', and added the 'dos filesystem = yes' suggested by getmythe in the other thread.
Rebooted the system (the samba restart command suggested didn't seem to work), and voila. I can now copy and paste and move things around and everything remains normal and stable.
Thanks to dbridges and getmythe for your help, and to everyone else who make this place such an awesome resource!!
|
|
|
Post by dbridges on Apr 22, 2007 11:49:19 GMT 7
Glad it worked.
Sorry about missing the 5200 part. I'm usually pretty good at picking that up.
|
|