Posts Tagged ‘Server’

Sendmail Relay To Exchange Server

Thursday, July 20th, 2006

Done (thanks to this thread).

#sudo nano /etc/mail/sendmail.cf

search for DS

# “Smart” relay host (may be null)
DSfoo.domain.bar
[Note! There is no space between DS and the domain.)

#sudo /etc/init.d/sendmail restart

Now I can spend my time playing with Joomla!

Really quick follow up, Ubuntu + Active Directory…

Wednesday, July 19th, 2006

By now, if your still reading, you might be bored to tears with the topic but I made some serious headway today. I’ve got ACLs working so that a Windows user can set permissions and take ownership of folders and files. This was stupid easy by adding acl to fstab:

/dev/hda1 / ext3 defaults,errors=remount-ro,acl 0 1

Yup, that easy. The only outstanding thing is granting sudo rights to AD groups, I can to individuals but oddly not groups. Need to figure that one out.

So by this afternoon I had a fully functioning file/web/database server that has joined a Windows domain. Last on the list, beyond sudo, is getting Sendmail to rely mail to the Exchange server so that our web apps are fully functional.  I am fairly certain I can find a work around tomorrow to get that going.
Nap time.

Follow up thoughts on Ubuntu plus Active Directory

Tuesday, July 18th, 2006

One of the key things that was missed in the HOWTO I linked yesterday was enumeration of users and groups by winbind. If you do not have this set to ‘yes’ than you’ll be gnashing your teeth in frustration trying to set up shares with Active Directory permissions. Check it out:

smb.conf–>
[global]
# Changes
security = ADS
netbios name = linux-foo
realm = bkm.com
password server = ADS.foo.bar
workgroup = FOO
idmap uid = 500-10000000
idmap gid = 500-10000000
winbind separator = +
winbind enum users = yes
winbind enum groups = yes

winbind use default domain = yes
template homedir = /home/%D/%U
template shell = /bin/bash
client use spnego = yes
domain master = no

Wth that set you should be able to run getent group and see both the local groups as well as the AD groups which will then allow you to set AD permissions in the Samba share:

smb.conf–>
[Foo-Public]
comment = Foo Public Directory
read only = no
browseable = yes
path = /shares/public
users = @”FOO+Domain Users”

At the moment I have it semi-granular rights working in that everyone can browse the shares but only certain groups  possess Read-Write-Execute rights. If I switch browseable = no than people just need to know the location of the share to get to it, i.e. security through obfuscation. So the challenge that remains now is to use the ACLs as determined by AD and to find a way to edit those ACLs through the Windows MMC. A thread over on the Samba newsgroup talked about needing to enable ACL on the mount point in fstab so I’m going to add another disk in VM-Ware and then mount it with ACL turned on rather than futzing with my primary mount. If I can get ACLs working than likely I can tighten security so that it is only viewable to those as indicated rather than to the general public.

Makes my eyes bleed.

Management Approves New Server!

Friday, May 19th, 2006

This morning I got the sign off to purchase new hardware to build another server to replace the one currently driving the site. I spec’d a AMD64 3000+ 2GHz, with 1 GB of RAM, and a MSI K8NGM2-L motherboard; here’s the list over at Newegg. I’ll be sourcing a 400GB SATA from work and installing Ubuntu Dapper 64 to round things out.  This should keep things humming for more than a couple of years at 0.333.

Downside?  Likely I won’t get approval for any videogames or consoles this year but I’ll have a new server!