Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi all folks,
How to limite access to shared folder only by WinME user.
Followings are my tests.
(A sub-directory named "satimis-shared" created in "satimis" the latter
of which is also a subdirectory under "home")
1)
/etc/samba/smb.conf
[global]netbios name = M40G
workgroup = SEC
guest account = nobody
encrypt passwords = yes
security = user[homes]
comment = Home Directories
read only = No
guest ok = No
Following directories appeared in WinME 'workgroup' (SEC)
-homes
-satimisMany hidden files found in each directory. Subdirectory "satimis-shared" also found in each directory.
But there is no directory name "homes"(plural) under root (super root)
2) Changed "homes" to "home" (singular) and "Home Directories" to "Home Directory" (also singular)/etc/samba/smb.conf
[global]netbios name = M40G
workgroup = SEC
guest account = nobody
encrypt passwords = yes
security = user[home]
comment = Home Directory
read only = No
guest ok = No
Only "home" (singular) was found in the WinME workgroup. Also there area many hidden files there but subdirectoris "satimis" and "satimis-shared" disappeared.Browsing /home/ with Konqueror, no hidden file was found there only a subdirectory "satimis" there. In "satimis" there are many hidden files and "satimis-shared" was also there.
Kindly advise how to only allow "satimis-shared" appears in WinME workgroup.
Thanks
Stephen Liu

The way you have samba setup is
user satimis has a home folder in /home/satimisso now samba will share out that user home folder
because you the entry in the smb.conf file
that what homes section does in samba if you remove it no home folder will be shared.[homes]
comment = Home Directory
read only = No
guest ok = Noso that user has access to his home folder from a windows client
you will see hidden file maybe from gnome or .bash config filesto setup a separate folder
from the shell
type
cd /
mkdir test
chmod 777 test
give everyone access
add a new entry to smb.conf file[test]
comment = test folder
path = /test
read only = no
broseable = yes
then
type testparm
check for errors
then restart samba
service samba restart

Hi Trevor,
Thanks for your further advice.
Your advice works but 'homes' and 'satimis' still appear in the network. They are duplicate folder.
1) Could I hide either one of them and how?
2) Whether these 2 folders are visible to public or only 'test' is open to public.
Thanks
Stephen Liu

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |