[Samba] home drive mapping

mallapadi niranjan niranjan.ashok at gmail.com
Tue Nov 22 08:36:55 GMT 2005


Hi all

I have samba 3 . i have configured as PDC, by default the home drive of the
user gets mapped in the winodws clients when they login with the username of
the server.
I don't want the home drive to get mapped.
if i remove the home share. The windows clients the user is unable to create
a profile, ie local profile not roaming profile.

i have not configured the samba to create any profiles, just user should
able to login but i don't want to map the home directory..

my smb.conf file is
###################################################################################
# Global parameters
[global]
workgroup = mydomain.com <http://mydomain.com>
server string = Internet Server
interfaces = eth0, lo
bind interfaces only = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*
username map = /etc/samba/smbusers
unix password sync = Yes
log file = /var/log/samba/%m.log
max log size = 50
name resolve order = wins lmhosts bcast
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = /etc/printcap
add user script = /usr/sbin/useradd -m '%u'
delete user script = /usr/sbin/userdel -r '%u'
add group script = /usr/sbin/groupadd '%g'
delete group script = /usr/sbin/groupdel '%g'
add user to group script = /usr/sbin/usermod -G '%g' '%u'
add machine script = /usr/sbin/useradd -s /sbin/nologin -d /dev/null '%m'$
domain logons = Yes
os level = 65
preferred master = Yes
domain master = Yes
dns proxy = No
wins support = Yes
name resolve order = wins lmhosts bcast
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = /etc/printcap
add user script = /usr/sbin/useradd -m '%u'
delete user script = /usr/sbin/userdel -r '%u'
add group script = /usr/sbin/groupadd '%g'
delete group script = /usr/sbin/groupdel '%g'
add user to group script = /usr/sbin/usermod -G '%g' '%u'
add machine script = /usr/sbin/useradd -s /sbin/nologin -d /dev/null '%m'$
domain logons = Yes
os level = 65
preferred master = Yes
domain master = Yes
dns proxy = No
wins support = Yes
hosts allow = 192.168.127., 127.0.0.1 <http://127.0.0.1>

[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No

[public]
comment = Public Stuff
path = /public
write list = @sambaclients
browseable = No


###################################################################################

Regards
Niranjan


More information about the samba mailing list