Computing.Net > Forums > Linux > Samba shared folder problem

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Samba shared folder problem

Reply to Message Icon

Name: Stephen Liu
Date: October 24, 2002 at 22:00:40 Pacific
OS: RH8.0
CPU/Ram: AMD/512MB
Comment:

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
-satimis

Many 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



Sponsored Link
Ads by Google

Response Number 1
Name: Trevor
Date: October 25, 2002 at 06:01:11 Pacific
Reply:

The way you have samba setup is
user satimis has a home folder in /home/satimis

so 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 = No

so that user has access to his home folder from a windows client
you will see hidden file maybe from gnome or .bash config files

to 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


0

Response Number 2
Name: Stephen Liu
Date: October 25, 2002 at 18:37:48 Pacific
Reply:

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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Samba shared folder problem

samba shares www.computing.net/answers/linux/samba-shares/29280.html

Samba shares www.computing.net/answers/linux/samba-shares/28875.html

Access Samba Shares on WinXP www.computing.net/answers/linux/access-samba-shares-on-winxp/28978.html