[9.1] How to hide dot files in samba?
Cant get samba to hide the dot files in a directory... Tried the "hide dot files = yes" in both the global and directory sections. But it doesn't load. And i get no errors in the log testparm doesnt show the command either: #> cat /etc/samba/smb.conf # Global parameters [global] workgroup = RIKJOH.COM interfaces = 127.0.0.1, eth0 bind interfaces only = Yes map to guest = Bad User hide dot files = yes [lvm] path = /mnt/lvm read only = No hide dot files = yes #> testparm # Global parameters [global] workgroup = RIKJOH.COM interfaces = 127.0.0.1, eth0 bind interfaces only = Yes map to guest = Bad User [lvm] path = /mnt/lvm read only = No What am i doing wrong?? -- /Rikard ------------------------------------------------------------------------------------ Rikard Johnels email : rikjoh@norweb.se Web : http://www.rikjoh.com Mob : +46 735 05 51 01 ------------------------ Public PGP fingerprint ---------------------------- < 15 28 DF 78 67 98 B2 16 1F D3 FD C5 59 D4 B6 78 46 1C EE 56 >
On Saturday 11 September 2004 19.41, Rikard Johnels wrote:
Cant get samba to hide the dot files in a directory...
Tried the "hide dot files = yes" in both the global and directory sections. But it doesn't load. And i get no errors in the log testparm doesnt show the command either:
#> cat /etc/samba/smb.conf
# Global parameters [global] workgroup = RIKJOH.COM interfaces = 127.0.0.1, eth0 bind interfaces only = Yes map to guest = Bad User hide dot files = yes [lvm] path = /mnt/lvm read only = No hide dot files = yes
#> testparm
# Global parameters [global] workgroup = RIKJOH.COM interfaces = 127.0.0.1, eth0 bind interfaces only = Yes map to guest = Bad User [lvm] path = /mnt/lvm read only = No
What am i doing wrong??
-- /Rikard
--------------------------------------------------------------------------- --------- Rikard Johnels email : rikjoh@norweb.se Web : http://www.rikjoh.com Mob : +46 735 05 51 01
------------------------ Public PGP fingerprint ---------------------------- < 15 28 DF 78 67 98 B2 16 1F D3 FD C5 59 D4 B6 78 46 1C EE 56 >
Should add that i try to access the share with a Win XP -- /Rikard ------------------------------------------------------------------------------------ Rikard Johnels email : rikjoh@norweb.se Web : http://www.rikjoh.com Mob : +46 735 05 51 01 ------------------------ Public PGP fingerprint ---------------------------- < 15 28 DF 78 67 98 B2 16 1F D3 FD C5 59 D4 B6 78 46 1C EE 56 >
On Saturday 11 September 2004 19:41, Rikard Johnels wrote:
Cant get samba to hide the dot files in a directory...
Tried the "hide dot files = yes" in both the global and directory sections. But it doesn't load. And i get no errors in the log testparm doesnt show the command either:
testparm doesn't show it because it is the default value. Use "testparm -v" to see all variables, including those set to default values 'hide dot files' won't hide the files, just give them the 'hidden' attribute. Do you perhaps have 'view hidden files' activated in windows? Look at the file properties in your windows browser and check if the attribute is set
On Saturday 11 September 2004 20.11, Anders Johansson wrote:
On Saturday 11 September 2004 19:41, Rikard Johnels wrote:
Cant get samba to hide the dot files in a directory...
Tried the "hide dot files = yes" in both the global and directory sections. But it doesn't load. And i get no errors in the log testparm doesnt show the command either:
testparm doesn't show it because it is the default value. Use "testparm -v" to see all variables, including those set to default values
'hide dot files' won't hide the files, just give them the 'hidden' attribute. Do you perhaps have 'view hidden files' activated in windows? Look at the file properties in your windows browser and check if the attribute is set
*Slaps his forehead* Embarrasing! Thats it.. I have the "view hidden files" enabled.. Stupid of me. Thank you for setting me straight :) Is there a way of hiding the dotfiles all together? My users are a bit stupid, and keep wanting to enter those folders. And as they are linuxspecific (and most often system files) i dont want them tampered with. They keep viewing hidden files on their own workstations. so setting the view hidden wont work. I dont want them to be seen at all in listings. Is there a way to make that happen? -- /Rikard ------------------------------------------------------------------------------------ Rikard Johnels email : rikjoh@norweb.se Web : http://www.rikjoh.com Mob : +46 735 05 51 01 ------------------------ Public PGP fingerprint ---------------------------- < 15 28 DF 78 67 98 B2 16 1F D3 FD C5 59 D4 B6 78 46 1C EE 56 >
On Saturday 11 September 2004 20:35, Rikard Johnels wrote:
Is there a way of hiding the dotfiles all together? My users are a bit stupid, and keep wanting to enter those folders. And as they are linuxspecific (and most often system files) i dont want them tampered with. They keep viewing hidden files on their own workstations. so setting the view hidden wont work.
I dont want them to be seen at all in listings. Is there a way to make that happen?
I haven't tried it myself, but "veto files" perhaps? Something like veto files = /.*/ could be worth a try
On Saturday 11 September 2004 20.43, Anders Johansson wrote:
On Saturday 11 September 2004 20:35, Rikard Johnels wrote:
Is there a way of hiding the dotfiles all together? My users are a bit stupid, and keep wanting to enter those folders. And as they are linuxspecific (and most often system files) i dont want them tampered with. They keep viewing hidden files on their own workstations. so setting the view hidden wont work.
I dont want them to be seen at all in listings. Is there a way to make that happen?
I haven't tried it myself, but "veto files" perhaps? Something like
veto files = /.*/
could be worth a try
Hmm. Semi works.. The directory is hidden, but i cant cd into it. Not a too bad thing, but a little cumbersome as i as admin sometimes need to access those folders from a windows box. But well.. i can always fire ssh up :) Thanks for the tip. -- /Rikard ------------------------------------------------------------------------------------ Rikard Johnels email : rikjoh@norweb.se Web : http://www.rikjoh.com Mob : +46 735 05 51 01 ------------------------ Public PGP fingerprint ---------------------------- < 15 28 DF 78 67 98 B2 16 1F D3 FD C5 59 D4 B6 78 46 1C EE 56 >
Rikard wrote regarding 'Re: [SLE] [9.1] How to hide dot files in samba?' on Sat, Sep 11 at 13:50:
On Saturday 11 September 2004 20.43, Anders Johansson wrote:
On Saturday 11 September 2004 20:35, Rikard Johnels wrote:
Is there a way of hiding the dotfiles all together? My users are a bit stupid, and keep wanting to enter those folders. And as they are linuxspecific (and most often system files) i dont want them tampered with. They keep viewing hidden files on their own workstations. so setting the view hidden wont work.
I dont want them to be seen at all in listings. Is there a way to make that happen?
I haven't tried it myself, but "veto files" perhaps? Something like
veto files = /.*/
could be worth a try
Hmm. Semi works..
The directory is hidden, but i cant cd into it. Not a too bad thing, but a little cumbersome as i as admin sometimes need to access those folders from a windows box.
But well.. i can always fire ssh up :)
Thanks for the tip.
Make a second share with a different name. Use "copy = originalshare" and override the veto files directive (set it to "veto files = ", then grant read access only to your admin users + set browsable to no - depending on how much you want to keep the other users out. Then when you need your full admin access, just go to your super secret share. Using the copy= directive helps with admin headaches, so if you change something in the one share those changes get propogated to your copy. --Danny
participants (3)
-
Anders Johansson
-
Danny Sauer
-
Rikard Johnels