Author Topic: Change the samba homepath?  (Read 5385 times)

DeTe

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Change the samba homepath?
« on: June 23, 2010, 09:56:48 am »
Hi everyone!

First i'm sorry for my bad english!

I got a problem, I also use the search but I found nothing about this topic. I try to change the path of the Samba home, profile and group folders at the smb.conf form the standard path (/home/samba/profiles etc.) to my specific path /usrprofiles/profiles (its an own partion for the profiles and groups).

Now when I create a new user ebox will generate the home and profile folder at the old location. How can I fix that?

Here is my smb.conf:
Code: [Select]
[global]
 workgroup = azbremen.lan
 netbios name = linuxpdc
 server string = PDC Server
 enable privileges = yes
 interfaces = lo,eth2
 bind interfaces only = Yes
 passdb backend = ldapsam:ldapi://%2fvar%2frun%2fslapd%2fldapi
 ldap ssl = Off
 log level = 1
 syslog = 0
 log file = /var/log/samba/%m
 max log size = 50
 vfs objects = full_audit
 full_audit:success = connect opendir open disconnect unlink mkdir rmdir rename
 full_audit:failure = none
 smb ports = 137 138 139 445
 name resolve order = wins bcast hosts
 time server = Yes
 printcap name = CUPS
 wins support = Yes
 dns proxy = Yes
 ldap suffix = dc=linuxpdc,dc=azbremen,dc=lan
 ldap machine suffix = ou=Computers
 ldap user suffix =  ou=Users
 ldap group suffix =  ou=Groups
 ldap idmap suffix = ou=Idmap
 ldap admin dn = cn=ebox,dc=linuxpdc,dc=azbremen,dc=lan
 map acl inherit = Yes
 printing = cups

 encrypt passwords = true
 obey pam restrictions = No
 ldap passwd sync = Yes
 mangling method = hash2

 logon script = logon.bat
 logon drive = H:
 logon home =
 logon path = \\linuxpdc\usrprofiles\profiles\%U

 domain logons = Yes
 os level = 65
 preferred master = Yes
 domain master = Yes
 add user script = /usr/sbin/smbldap-useradd -m "%u"
 ldap delete dn = Yes
 add machine script = /usr/sbin/smbldap-useradd -w "%u"
 add group script = /usr/sbin/smbldap-groupadd -p "%g"
 add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
 delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
 set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"

[netlogon]
 path = /usrprofiles/netlogon/
 browseable = No
 read only = yes

[profiles]
 path = /usrprofiles/profiles
 read only = no
 create mask = 0600
 directory mask = 0700
 browseable = No
 guest ok = No
 profile acls = yes
 csc policy = disable
 valid users = %U
 admin users = @"Domain Admins"
 hide files = /desktop.ini/outlook*.lnk/*Briefcase*/

[homes]
 path = /usrprofiles/homes
 comment = Home Directories
 valid users = %S
 read only = No
 browseable = No
 vfs objects = full_audit

[ebox-internal-backups]
 path = /var/lib/ebox/conf//backups
 read only = No
 valid users = @"Domain Admins"
 admin users = @"Domain Admins"
 force group = ebox
 force user = ebox
 browseable = Yes

[ebox-quarantine]
 path = /var//lib/ebox/quarantine
 read only = No
 valid users = @"Domain Admins"
 admin users = @"Domain Admins"
 browseable = Yes

[print$]
 comment = Printer Drivers
 path = /var/lib/samba/printers
 browseable = yes
 read only = yes
 guest ok = no
 write list = @"Domain Admins"
 use client driver = yes
 valid users = "@Domain Users"

greetings DeTe

DeTe

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Change the samba homepath?
« Reply #1 on: June 23, 2010, 02:07:01 pm »
I forget to wirte that I'am using Ubuntu 10.4 with ebox 1.5 moduls

z

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Change the samba homepath?
« Reply #2 on: January 13, 2011, 10:12:28 am »
Hi,

You should check the following configuration files to make permanent changes:

/usr/share/ebox/stubs/samba/smb.conf.mas
/usr/share/ebox/stubs/samba/smbldap.conf.mas

Note that if you want to deactivate profiles comment the following line in the /usr/share/ebox/stubs/samba/smbldap.conf.mas file

#userProfile="\\<% $netbios %>\profiles\%U"
and change it to
userProfile=""

Also you might want to comment the profile share in smb.conf.mas