Ubuntu 10.04LTS and Likewise-Open
A little background. We've had some issues with winbind since the AD servers were all upgraded to Server 2008 R2. The problems have been our (Web Geeks) fault. We've not been as proactive at upgrading software/servers as often as we should have been.
The problem is that our Samba version didn't play well with the new Domain Controllers so our Linux servers were removed from the Domain. This caused an issue since all SSH, FTP and Samba activities were conduncted under Domain accounts. Also, user 1 (root) was previously set to not be allowed ssh access.
This caused an issue for us since all transfers between our servers (4 servers total) were conducted using SSH and SCP.
After upgrading to Ubuntu 10.04LTS I realized that manually configuring WinBind can be a pain in the neck. A student suggested that I use Likewise-Open.
Here is the document write up that I created to help me configure likewise-open with future installs.
Installing Ubuntu Server and Likewise-open
- Install Ubuntu Server 10.04 lts amd64
- LAMP
- OpenSSH
- Samba
- Install Likewise-Open
Find the latest stable release of Likewise-Open. At the time of this article's writing the latest was 6.0- Go to http://www.likewise.com/community/index.php/download/ and get the link for the appropriate download.
Then sudo wget {The Link you just found} - sudo chmod a+x <filename> on the file you just downloaded to make the file executable
- Run the file. Sudo ./<filename>
- Follow prompts to install likewise-open
- Go to http://www.likewise.com/community/index.php/download/ and get the link for the appropriate download.
- Join computer to domain
- Sudo domainjoin-cli join alfredstate.edu <username>
- Configure domain settings using /opt/likewise/bin/lwconfig
- ./lwconfig
- –list: lists all of the settings that can be changed
- – detail: gives the details of the setting you specify
- sudo ./lwconfig AssumeDefaultDomain true: sets default domain so all users logging in will be assumed to be ASC/ except local accts
- sudo ./lwconfig UserDomainPrefix “PREFIX”
- sudo ./lwconfig HomeDirTemplate “/%H/%D/%U” - This sets all domain uers home at /home/<domain>/<uname>
- sudo ./lwconfig RequireMembershipOf “ASC\\LinuxAdmins”
- sudo ./lwconfig LoginShellTemplate “/bin/bash”
- Add all users of group LinuxAdmins to sudoers
- Edit /etc/sudoers add: %<domain_admin_group> ALL=(ALL) ALL
- Restart ssh
- Configure Samba – edit /etc/samba/smb.conf
- workgroup = ALFREDSTATE.EDU
- security = ads
- realm = <REALM_NAME>
- idmap backend = lwopen
- idmap uid = 10000-20000
- idmap gid = 10000-20000
- [homes]
- comment = Home Directories
- browseable = no
- readonly = no
- Configure SSL/Apache2