don't delete share directory

Asked by skyone

Binary package hint: samba

user,a normal directory->properties->share->share this directory ,now , can be use this directory on other machines ,but close the propertie's window ,open it again , the share's forum not be choose ,
the other machines always can be use that directory ,and I don't know how to close that share

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
ExecutablePath: /usr/bin/yelp
NonfreeKernelModules: nvidia
Package: yelp 2.25.1-0ubuntu5
ProcEnviron:
 PATH=(custom, no user)
 LANG=zh_CN.UTF-8
 SHELL=/bin/bash
SourcePackage: yelp
Uname: Linux 2.6.28-12-generic i686

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu samba Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was originally filed as bug #375939.

Revision history for this message
skyone (yuexinguo) said :
#1
Revision history for this message
Druciferre (drewchapin) said :
#2

I'm uncertain as to what you mean by "the share's forum", but it sounds to me like you've created a shared directory under Samba and are wanting to remove that folder from the share list. If this is correct, then follow this procedure

In a terminal, type:
$ gksu gedit /etc/samba/smb.conf

Scroll towards the bottom and you will see a section that looks similar to this:
[Share name]
writable = yes
path = /path/to/directory
public = yes
guest ok = yes
guest only = yes
guest account = nobody
browsable = yes

Delete all of these lines, and hit save.
Go back to your terminal and type:
$ sudo /etc/init.d/samba restart

The folder should no longer be accessible from other machines.

Can you help with this problem?

Provide an answer of your own, or ask skyone for more information if necessary.

To post a message you must log in.