LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-07-2004, 12:39 PM   #1
jsmarshall85
Member
 
Registered: Aug 2003
Posts: 386

Rep: Reputation: 30
view home directory through samba on winxp


i have samba setup and working on my debian system and can browse to the share i have setup. i have also setup other users to be able to browse to it also. i want to be able to map a drive on XP to my home directory on my debian box without others seeing it. here is my smb.conf file. can anyone see what is wrong or how do i set up my home directory to be seen by me only.

thanks

Code:
#======================= Share Definitions =======================

;[homes]
;comment = Home Directories
;browseable = yes

create mask = 0777
writable = yes
directory mask = 0777

;[netlogon]
;   comment = Network Logon Service
;   path = /home/samba/netlogon
;   guest ok = yes
;   writable = no
;   share modes = no

[share]
comment = Jango's Linux Share
path = /share
read only = no
guest ok = no
browseable = yes
writable = yes
create mask = 0777
directory mask = 0777

[jango]
comment = Jango's Home Share
path = /home/jango
read only = no
guest ok = no
browseable = no
writable = yes
create mask = 0777
directory mask = 0777
case sensitive = no
 
Old 10-07-2004, 12:55 PM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Use the valid users option. For example:
Code:
[jango]
comment = Jango's Home Share
path = /home/jango
valid users = jango
read only = no
guest ok = no
browseable = no
writable = yes
create mask = 0777
directory mask = 0777
case sensitive = no
Also, in order to share all home directories, the best way is to use the default [homes] share.
Note the valid users = %S line.
Code:
[homes]
comment = Home Directories
browseable = no
valid users = %S
writable = yes
create mask = 0770
directory mask = 0770
 
Old 10-07-2004, 01:19 PM   #3
jsmarshall85
Member
 
Registered: Aug 2003
Posts: 386

Original Poster
Rep: Reputation: 30
tried the valid user = line, same thing

what does the %S do? i added it and now the other person i allow to see the /share directory cant see it but he can still see my home directory
 
Old 10-07-2004, 01:50 PM   #4
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Can you post your new smb.conf ?
If you are using the [homes] share, make sure you un-commnet it (;).

The %S is the current share's name variable.
 
Old 10-07-2004, 02:37 PM   #5
jsmarshall85
Member
 
Registered: Aug 2003
Posts: 386

Original Poster
Rep: Reputation: 30
ok, i did a little tweaking so it might not look like i had it before, but same results. i have two samba users on my linux box and both users can see the /share and /home/jango directories from their windows xp boxes. i want one user to see only /share and the other user (me) to see /share and /home/jango. the users names on linux match their winxp account names on the domain.

here is my smb.conf
Code:
#======================= Global Settings =======================

[global]

## Browsing/Identification ###

netbios name = kamino
workgroup = corp
server string = %h server (Samba %v)
;   wins support = no
;   wins server = w.x.y.z
include = /etc/samba/dhcp.conf
dns proxy = no
;   name resolve order = lmhosts host wins bcast

#### Debugging/Accounting ####

log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
username = nbk1w4a
encrypt passwords = true
passdb backend = tdbsam guest
obey pam restrictions = yes
invalid users = root
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .

######## File sharing ########

# Name mangling options
;   preserve case = yes
;   short preserve case = yes

############ Misc ############


;   include = /home/samba/etc/smb.conf.%m

# Most people will find that this option gives better performance.
# See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/speed.html
# for details
# You may want to add the following on a Linux system:
#         SO_RCVBUF=8192 SO_SNDBUF=8192
socket options = TCP_NODELAY


#======================= Share Definitions =======================

;[homes]
;comment = Home Directories
;browseable = no
;valid users = %S
;read only = no
;create mask = 0777
;directory mask = 0777

[share]
comment = Jango's Linux Share
path = /share
read only = no
guest ok = no
browseable = yes
writable = yes
create mask = 0777
directory mask = 0777

[jango]
comment = Jango's Home Share
path = /home/jango/
;vaid users = @jango
browseable = no
case sensitive = no
msdfs proxy = no
read only = yes
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
FC4, SAMBA & WinXP home basic setup help please?! :) KevinAlaska Linux - Networking 3 11-09-2005 10:53 AM
Samba Home Directory bodhisattvia Linux - Software 0 07-12-2005 08:42 AM
Can't access samba from WinXP home Provi Linux - Networking 5 08-05-2004 11:21 AM
How can home directory from another computer using Samba linuxeagle Linux - Networking 1 02-05-2004 01:33 PM
Can't view home directory with Samba Phaethar Fedora 2 12-04-2003 10:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:47 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