LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-29-2007, 08:24 PM   #1
webb.ryan
Member
 
Registered: Oct 2007
Location: Philippines / Pilipinas
Distribution: FedoraCore5 :: Debian Etch
Posts: 37

Rep: Reputation: 15
Talking make samba display only the directory you want


hi everyone!

whenever i use samba to share my directory, windows users are able to see a lot of mumble jumble that they're not supposed to see.

my problem is, how can i make samba display only the shared folder i want..

my samba share is at /home/samba/WST-FileCabinet.

i also have to mention about the mumble jumble i said were hidden files, but most windows users here are able to see hidden files.(a problem)

any suggestions is greatly appreciated^^

~ryan^^
 
Old 10-29-2007, 09:22 PM   #2
emeut
LQ Newbie
 
Registered: Jul 2007
Posts: 15

Rep: Reputation: 0
make samba display only the directory you want

Hi

I just tested my samba folder on my fedora 7 and i get the same hidden files as you are seing.
However from my laptop using xp home , i looked at the folder option under tab view and remove the see hidden file and it affected my samba immediatly.

The problem is from windows end not samba.Do your users need to see hidden file?
i did not check xp policies but there might be an option you could use

hope this will be of some help

emeut
 
Old 10-30-2007, 12:27 AM   #3
webb.ryan
Member
 
Registered: Oct 2007
Location: Philippines / Pilipinas
Distribution: FedoraCore5 :: Debian Etch
Posts: 37

Original Poster
Rep: Reputation: 15
Talking

hi emeut!

thanks so much for answering on both my threads regarding Samba!.

you know, i think likewise there's a windows side problem..

And yes, windows users see the hidden files...which are not necessary...
i think setting options for windows not to view hidden files might solve it! but unfortunately, is not applicable at our current situation.
many of our windows users needed to see hidden files..

if you found a work around about this, please let me know.^^

best regards,
~ryan^^
 
Old 10-30-2007, 12:35 AM   #4
bob_dobbs
LQ Newbie
 
Registered: Oct 2007
Location: Berlin Germany
Distribution: Sidux, Debian
Posts: 12

Rep: Reputation: 0
veto files in smb.conf

try:
$man smb.conf

Look at the veto files option talked about in the hide files section.. Unlike hide files, veto files doesn't lets Samba include them in shares, hidden or not.

example:
veto files = /.*/*.exe/

In this example no hidden (linux) files (.*) or any exe (*.exe) files will appear in the shares, regardless of their actual existence or attributes.

As boring as it probably is, a bit of RTFM is called for here. good luck!
 
Old 10-30-2007, 04:39 AM   #5
webb.ryan
Member
 
Registered: Oct 2007
Location: Philippines / Pilipinas
Distribution: FedoraCore5 :: Debian Etch
Posts: 37

Original Poster
Rep: Reputation: 15
hi again..

for your info, i removed the hidden file and managed to display only the shared folder i wanted using webmin 1.370.
i put the directory in /usr/<shared folder>
i accessed it from windows and see all hidden files(problem)

here's different...i opened webmin then clicked view connection..
then, i disconnected the user connected..(mine was wstuser)
then i clicked refresh on windows client..all that's left was the shared folder.

I never really tested all this yet..but if anyone tested this please give me some side effects..

~ryan^^
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Active Directory User Cannot Write to Samba Home Directory jonwatson Linux - Networking 2 12-19-2006 12:40 PM
Can I Make make Believe Root Is a Different Directory? binarybob0001 Linux - General 5 11-20-2006 03:33 AM
gvim does not display files in directory afterwards powah Linux - Software 1 06-01-2006 12:35 PM
redhat command to display the size of directory please! sandrinechen Linux - Newbie 4 04-19-2004 03:19 AM
How to make an entire drive or directory available to Win box using Samba ? lostboy Linux - General 7 05-05-2003 07:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration