Avinash Rao
2009-Aug-18 10:06 UTC
[Samba] Enforcing local profile doesn't let Home Directory mapping
Dear all,
I am using Ubuntu 8.04 Server 64-bit edition and I am trying to
enforce Local profile for all users and below is my smb.conf file.
According to the samba documentation, leaving the logon home and logon
path values to empty will enforce local profiles, it worked. But, my
main requirement is when users login their home directories are mapped
and they appear in My Computer window so they get to access all their
files. This disappears if i enable the above mentioned option.
How do i get both of them working?
Thanks
Avinash
[global]
workgroup = abc
server string = Samba on SUN
max log size = 1500
log level = 1
interfaces = eth2 100.100.100.50
bind interfaces only = True
log file = /var/log/samba/log.%m
domain logons = yes
os level = 65
prefered master = yes
domain master = yes
local master = yes
logon home logon path
winbind gid = 10000-20000
winbind use default domain = yes
idmap uid = 0-20000
idmap gid = 0-20000
add machine script = /usr/sbin/useradd -s /bin/false -d /home/nobody %u
dns proxy =No
hosts allow = 127. 10.10.10.
wins support = Yes
passdb backend = tdbsam
encrypt passwords = true
smb passwd file = /etc/samba/smbpasswd
security = user
netbios name = sunbox
username map = /etc/samba/smbusers
[homes]
comment = Home Dir
read only = NO
browseable = NO
valid users = %S
path = %H
directory mask = 0700
create mask = 0700
[share]
comment = test share
path = /sambashare
create mask = 0765
Avinash Rao
2009-Aug-18 14:29 UTC
[Samba] Enforcing local profile doesn't let Home Directory mapping
Thanks for the reply. My Homes share has this entry, but the global entry is overriding. Basically there three ways in which u can force local profile, one is through smb.conf file, the second one is to edit the registry key on winxp clients and the third one is do it in my computer properties and change it to local profile.. The last two are really time consuming coz i have more than 50 computers! Avinash On Tue, Aug 18, 2009 at 7:23 PM, Masao Garcia<masaog at fshac.com> wrote:> In my smb.conf file, I have > > Logon drive = H: > > But I'm no Samba expert by any means. ?My Samba server is acting as a PDC > and users have local profiles. > > -----Original Message----- > From: samba-bounces at lists.samba.org [mailto:samba-bounces at lists.samba.org] > On Behalf Of Avinash Rao > Sent: Tuesday, August 18, 2009 5:06 AM > To: samba at lists.samba.org > Subject: [Samba] Enforcing local profile doesn't let Home Directory mapping > > Dear all, > > I am using Ubuntu 8.04 Server 64-bit edition and I am trying to > enforce Local profile for all users and below is my smb.conf file. > According to the samba documentation, leaving the logon home and logon > path values to empty will enforce local profiles, it worked. But, my > main requirement is when users login their home directories are mapped > and they appear in My Computer window so they get to access all their > files. This disappears if i enable the above mentioned option. > > How do i get both of them working? > > Thanks > Avinash > > [global] > ? ?workgroup = abc > ? ?server string = Samba on SUN > ? ?max log size = 1500 > ? ?log level = 1 > ? ?interfaces = eth2 100.100.100.50 > ? ?bind interfaces only = True > ? ?log file = /var/log/samba/log.%m > > ? ?domain logons = yes > ? ?os level = 65 > ? ?prefered master = yes > ? ?domain master = yes > ? ?local master = yes > > ? ?logon home > ? ?logon path > > ? ?winbind gid = 10000-20000 > ? ?winbind use default domain = yes > ? ?idmap uid = 0-20000 > ? ?idmap gid = 0-20000 > ? ?add machine script = /usr/sbin/useradd -s /bin/false -d /home/nobody %u > ? ?dns proxy =No > ? ?hosts allow = 127. 10.10.10. > ? ?wins support = Yes > ? ?passdb backend = tdbsam > > ? ?encrypt passwords = true > ? ?smb passwd file = /etc/samba/smbpasswd > ? ? ? ?security = user > ? ? ? ?netbios name = sunbox > ? ?username map = /etc/samba/smbusers > > [homes] > ? ?comment = Home Dir > ? ?read only = NO > ? ?browseable = NO > ? ?valid users = %S > ? ?path = %H > ? ?directory mask = 0700 > ? ?create mask = 0700 > > [share] > ? ?comment = test share > ? ?path = /sambashare > ? ?create mask = 0765 > -- > To unsubscribe from this list go to the following URL and read the > instructions: ?https://lists.samba.org/mailman/options/samba > >
Dale Schroeder
2009-Aug-18 18:00 UTC
[Samba] Enforcing local profile doesn't let Home Directory mapping
Avinash, You should be able to map the drives by creating a [netlogon] share, then using logon scripts containing "net use" commands. Note: these scripts must be created with a DOS/Windows text editor. See example <http://oreilly.com/catalog/samba/chapter/book/ch06_06.html> Dale Avinash Rao wrote:> Dear all, > > I am using Ubuntu 8.04 Server 64-bit edition and I am trying to > enforce Local profile for all users and below is my smb.conf file. > According to the samba documentation, leaving the logon home and logon > path values to empty will enforce local profiles, it worked. But, my > main requirement is when users login their home directories are mapped > and they appear in My Computer window so they get to access all their > files. This disappears if i enable the above mentioned option. > > How do i get both of them working? > > Thanks > Avinash > > [global] > workgroup = abc > server string = Samba on SUN > max log size = 1500 > log level = 1 > interfaces = eth2 100.100.100.50 > bind interfaces only = True > log file = /var/log/samba/log.%m > > domain logons = yes > os level = 65 > prefered master = yes > domain master = yes > local master = yes > > logon home > logon path > > winbind gid = 10000-20000 > winbind use default domain = yes > idmap uid = 0-20000 > idmap gid = 0-20000 > add machine script = /usr/sbin/useradd -s /bin/false -d /home/nobody %u > dns proxy =No > hosts allow = 127. 10.10.10. > wins support = Yes > passdb backend = tdbsam > > encrypt passwords = true > smb passwd file = /etc/samba/smbpasswd > security = user > netbios name = sunbox > username map = /etc/samba/smbusers > > [homes] > comment = Home Dir > read only = NO > browseable = NO > valid users = %S > path = %H > directory mask = 0700 > create mask = 0700 > > [share] > comment = test share > path = /sambashare > create mask = 0765 >