LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-09-2008, 04:21 AM   #1
the_imax
Member
 
Registered: Apr 2004
Distribution: RHEL 4/ CentOS
Posts: 159

Rep: Reputation: 30
smb.conf having share names ending in "$"


In windows If you put a $ at the end of a share than it becomes hidden,

is this also true for samba ? i.e. if we put a $ at the end of a share name in smb.conf than it will become hidden
 
Old 03-09-2008, 04:34 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Yes in a way. Look in your smb.conf file. You may have a [printer] service.

There is the "browseable = No" option that you set to hide the service from the browser. From another linux computer on the LAN run "smbclient -L <hostname>" to print out the services. Notice the "printer$" service.

Here you can try it out for yourself.
1) Create two directories to share:
sudo mkdir -P /srv/samba/{public,secret}
sudo chmod a=rwxt /srv/samba -R

Add this to the smb.conf file. Then run "testparm to test your smb.conf file.
Code:
[public]
        comment = Public Share test
        path = /srv/samba/public
        read only = no
        guest ok = yes
        browseable = Yes
[secret]
        comment = secret share
        path = /srv/samba/secret
        read only = no
        guest ok = Yes
        browseable = No
3) Restart the samba services (smbd, nmbd).

Now browse to this computer from another computer on the LAN.

You may need to restart the client browser to dump any name caching in the client.

Last edited by jschiwal; 03-09-2008 at 04:58 AM.
 
Old 03-09-2008, 08:55 AM   #3
the_imax
Member
 
Registered: Apr 2004
Distribution: RHEL 4/ CentOS
Posts: 159

Original Poster
Rep: Reputation: 30
Thanks, I suppose that both the "browseable" and including $ at the end of share name in smb.conf serve the same purpose

as mentioned here
http://www.cae.wisc.edu/site/public/...title=linbegin
 
Old 03-11-2008, 05:50 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Just adding the "$" character, I was able to browse to the "secret$" share. Using both, the $ was required to be entered as the name. So just use "browseable = No". That's what it is for.
 
  


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
smb set to "share", xp login asking for password creznedmick Linux - Networking 10 05-17-2007 04:18 AM
difference between "service smb restart" and "/etc/rc.d/init.d/smb" powah Linux - Software 1 01-17-2007 05:17 PM
SMB share "does not exist" ??? litlmary Linux - Networking 3 01-02-2007 06:33 PM
"hosts allow" in smb.conf expects only FQDN, not alias or netbios name!? Not now, John! Linux - Networking 1 10-13-2006 05:17 AM
open office "input/output error" saving to smb share PK2K Linux - Software 6 03-09-2005 01:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:49 AM.

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