viernes, 14 de junio de 2013

cifs.upcall

mount.cifs nightmares!

OK, create a user for cifs, e.g. cifsuser and use ktutil to stick his key into  /etc/cifs.keytab

Make sure that /etc/requestkey.conf has this line:

create cifs.spnego * * /usr/sbin/cifs.upcall -d /etc/cifs.keytab %k
(notice, there's no -c which tells mount to look for a key beginning with cifs/)

the -d /etc/cifs.keytab bit is if you applied the patch to cifs-utils which Jeff Layton sent me. I asked if we could have a switch to choose another keytab other than /etc/krb5.keytab. And he just dd it:) If not, stick cifsuser in /etc/krb5.conf and miss off the -d /etc/cifs.keytab

domingo, 2 de junio de 2013

VirtualBox: increase size of disk


VBoxManage modifyhd openSUSE\ file\ server.vdi --resize 16000

-download System Rescue CD from here: http://sourceforge.net/projects/systemrescuecd/
-boot the vm from the CD
-at the command prompt type startx
-when X Windows starts, type gparted in the terminal that is open on screen
-in gparted select the root partition and drag it to the bigger size
-when it's done right click on the disk and choose Manage Flags, and make sure it is set to Boot
-exit gparted and power off the 
-boot the VM into your nw install on it's new bigger disk!
gparted under the xfce rescue system

viernes, 31 de mayo de 2013

Provisioning Samba 4.0.6 with BIND9_DLZ

There's a problem provisioning or samba_upgradedns-ing on openSUSE 64bit.

So:
ln -s /usr/bin/tdbbackup /usr/lib/mit/sbin

If you are changing from the internal server: /usr/local/samba/etc/smb.conf

# Global parameters
[global]
workgroup = HH3
realm = HH3.SITE
netbios name = HH16
server role = active directory domain controller
# dns forwarder = 192.168.1.1
idmap_ldb use:rfc2307 = Yes
server services = -dns

Obvious really lol.