[02:32] <EvilResistance> is there any way to automatically enforce specific ownership permissions for files in a given directory upon creation?
[02:32] <EvilResistance> say, user:www-data for a public_html folder
[04:08] <SpamapS> EvilResistance: suid/sgid bits, yes
[04:08] <SpamapS> EvilResistance: chmod g+s will enforce group, u+s will enforce user
[05:39] <banseljaj> Hello
[05:40] <banseljaj> I need help setting up a DHCP seerver
[05:41] <banseljaj> I have installed a DHCP server on my laptop
[05:41] <banseljaj> How do i check if my wlan card has host mode?
[05:41] <banseljaj> And how do i set up a small DHCP based, adhoc WLAN server
[05:44] <seekwill> I'm not sure if that's possible
[05:44] <banseljaj> I may not have been clear
[05:44] <banseljaj> may i explain my network?
[05:44] <seekwill> wlan = wireless?
[05:44] <banseljaj> seekwill: yes
[05:46] <banseljaj> Look, I have a laptop, that can become a wireless hotspot
[05:46] <banseljaj> Also, I have a server, installed as a virtual machine, inside that laptop
[05:46] <banseljaj> I have installed DNS and DHCP servers
[05:46] <banseljaj> I have 6 students, all with laptops.
[05:47] <banseljaj> I want them to connect to my laptop's access point
[05:47] <banseljaj> and through that accesspoint, DNS server, I want ti r=to access the virtual machine server
[05:47] <banseljaj> Complicated, I know
[05:47] <banseljaj> seekwill: ^
[05:48] <seekwill> Oh, you have built-in 4G? No idea
[05:48] <banseljaj> I am not sure if its $G
[05:48] <banseljaj> 4G
[05:48] <seekwill> Oh 3G...
[05:49] <banseljaj> Yeah.
[05:49] <seekwill> Regardless, I've never had any experience with those
[05:49] <seekwill> Sorry :(
[05:49] <banseljaj> :(
[05:49] <banseljaj> okay, here's an easier question
[05:49] <seekwill> 42
[05:50] <banseljaj> How do i configure my DNS server and DHCP server to hand out static IP to the virtual machine inside it?
[05:50] <banseljaj> For all intents and purposes, I think it can be treated as a seperate computer with a NAT
[06:04] <airtonix> what hypervisor are you using ?
[06:07] <banseljaj> hypervisor?
[06:09] <tdhz77> quick question about smb.conf?
[07:46] <arbir> is there a page where i can see a list of packages for 12.04 ?
[11:12] <airtonix> anyone got a working Marvell 88SE6145 SATA II PCI-E controller with ubuntu 11.10 or 12.04
[15:57] <RoyK> [ 3476.111492] zfs-fuse: sending ioctl 2285 to a partition!
[15:57] <RoyK> any idea what that might mean?
[16:04] <Patrickdk> http://groups.google.com/group/zfs-fuse/browse_thread/thread/a3be60a69ab7c8ce?pli=1
[18:12] <arbir> Hello… will apache 2.4 and php 5.4 make it to his release ?
[18:17] <qman__> arbir, while I'm not authoritative on it in any way, if it's not in the beta, it's probably not going to be in release
[18:17] <arbir> qman__: i have been searching at packages.ubuntu.com, but could not find it.
[18:18] <arbir> so i thought, i might be on the wrong track
[18:18] <qman__> just searched, looks like apache is 2.2.22 in precise  http://packages.ubuntu.com/search?keywords=apache&searchon=names&suite=precise&section=all
[18:19] <arbir> qman__: yeah, 2.2.22 is there, not the new apache 2.4
[18:20] <qman__> and php is 5.3.10
[18:20] <qman__> http://packages.ubuntu.com/search?keywords=libapache2-mod-php&searchon=names&suite=precise&section=all
[18:20] <arbir> qman__: ditto, yeah, not 5.4 … both apache and php have been out for a while
[18:20] <arbir> i was hoping :-(
[18:21] <arbir> especially that, apache 2.4 is supposed to be as fast as nginx and no longer the old elephant.
[18:21] <qman__> rule of thumb, stuff usually has to be out a year or more to make it, especially with an LTS release
[18:22] <qman__> I see a lot of people complain but I've never had performance issues with apache
[18:22] <qman__> yes, it's not as light as some alternatives, but it's not exactly slow
[19:17] <FunnyLookinHat> I noticed that /etc/resolv.conf will be overwritten - is there a proper place to put my nameservers ?
[19:23] <kklimonda> FunnyLookinHat: afair edit /etc/network/interfaces and add dns-nameservers x.x.x.x y.y.y.y
[19:23] <FunnyLookinHat> kklimonda, ah ok - I didn't know you could do that in /etc/network/interfaces
[19:28] <FunnyLookinHat>  kklimonda That worked - thanks!
[20:24] <undecim> why would my scripts in /etc/cron.hourly not be running?
[20:26] <undecim> the line in /etc/crontab seems to be fine.... 17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly
[20:27] <seekwill>  Is cron running?
[20:27] <undecim> yes
[20:27] <seekwill> Why do you think cron.hourly isn't running?
[20:28] <undecim> Because none of my scripts are having any affect...
[20:29] <undecim> I check them... make sure they're executable, have the proper #! line, etc... come back in an hour, and e.g. the permissions in /opt/craftbukkit still aren't fixed (like my script is supposed to do), but I can fix it by running the script manually
[20:29] <undecim> Same with my script to update my dynamic DNS
[20:30] <undecim> I checked the timeout with dig to make sure that wasn't just caching, too
[20:30] <undecim> watched it count down to 0, and still no change
[20:30] <undecim> Run the script manually, let it reach 0 again, and it changes
[20:31] <seekwill> Try a small test script
[20:33] <seekwill> My guess is your script uses some environment variables not set when cron runs it
[20:34] <blendedbychris> how do i force ntpd to check the stupid date and set it?
[20:34] <undecim> My permissions script shouldn't rely on environment variables... just "chown -R craftbukkit:craftbukkit /opt/craftbukkit"
[20:34] <undecim> Is all that's there
[20:35] <seekwill> undecim: Try /bin/chown ?
[20:38] <undecim> seekwill: It seems like run-parts is causing the issue. I made a test script with absolute paths to commands, and running the line in /etc/crontab " run-parts --report /etc/cron.hourly" as root does nothing.
[20:38] <seekwill> Sorry, I don't know. I usually just throw things in /etc/cron.d
[20:39] <undecim> Guess I'll do the same.
[20:39] <seekwill> All that stuff is too fancy for me :)
[20:39] <undecim> lol
[20:40] <undecim> Well it seemed to me to be a convenient setup... just put your script there and let it do its thing.... but it doesn't work
[20:40] <EvilResistance> is there a method to force persistently a specific ownership setting on a file/folder?
[20:40] <EvilResistance> say, user:www-data on a public_html folder
[20:40] <undecim> EvilResistance: I'm just using a cron job
[20:40] <EvilResistance> undecim:  how often are you running it?
[20:40] <undecim> EvilResistance: Hourly
[20:40]  * EvilResistance is using a cron job now as well, but wants to know if there's an easier persistent setup
[20:41] <EvilResistance> ah, i've got mine running every 5 minutes
[20:41] <seekwill> How does it change?
[20:41] <EvilResistance> but meh
[20:41] <undecim> If you need real-time permission setting, I've heard lsync can do that
[20:41] <undecim> Never used it myself though
[20:42] <EvilResistance> problem is because its FTP
[20:42] <EvilResistance> if a new file is uploaded, by default it has a different permission setup than i want it
[20:42] <EvilResistance> s/FTP/SFTP/
[20:42] <EvilResistance> so i at least need to set a persistent group setting
[20:43] <EvilResistance> (www-data)
[20:43] <seekwill> oh
[20:43] <EvilResistance> by default it gets user:user or w/e it is
[20:44] <EvilResistance> so i need it to be at least persistently user:www-data
[20:44] <undecim> EvilResistance: Looks like with Lsyncd, you can just set 'onCreate = chown user:www-data ^targetPathname" ' to get what you want
[20:44] <seekwill> I didn't know people still used FTP :)
[20:45] <EvilResistance> seekwill:  SFTP (ssh tunnelled FTP)
[20:45] <seekwill> I would think the FTP server would be able to do something like that
[20:45] <undecim> seekwill: SFTP is a file transfer built into SSHd
[20:45] <seekwill> Sure
[20:45] <maxb> SFTP isn't really the same as ssh-tunnelled-FTP
[20:45] <seekwill> scp or https! :)
[20:46] <undecim> EvilResistance: You'll have to compile Lsyncd yourself, but it will do what you want http://code.google.com/p/lsyncd/downloads/list
[20:47] <undecim> Or so it says... Like I said, I've never used it myself, but it seems fairly straightfoward to set up
[20:47] <undecim> Come to think of it, I should set this up on our public share
[20:49] <EvilResistance> maxb:  *shrugs*
[20:49] <EvilResistance> regardless
[20:50] <qman__> blendedbychris, you can't, at least not directly
[20:50] <EvilResistance> i'll take a look at lsyncd later, for now i'll stick with the cronscript :P
[20:50] <qman__> solution is to stop ntpd, set manually or use ntpdate-debian to update to a known good time server, then start ntpd again with good time servers configured
[20:52] <qman__> EvilResistance, look into the sticky bit
[20:52] <qman__> it doesn't enforce, per say, but it does change the default creation behavior
[20:52] <qman__> which may or may not do what you want
[20:54] <qman__> actually nevermind, I mixed it up with something else
[20:55] <qman__> maybe it's a mount option, I don't remember
[20:55] <undecim> qman__: I was about to ask, lol...
[20:55] <qman__> in any case, there's a way to make it so that files are created with parent directory's group-owner instead of user's default group-owner
[20:57] <qman__> quick google says setgid bit
[20:58] <undecim> qman__: I think that you're thinking of the mask mount options, which don't enforce permissions or change the default, but just ignore them completely... I think with a default of "allow". It's also filesystem specific
[20:59] <qman__> undecim, this is what I'm talking about: http://www.linuxquestions.org/questions/linux-newbie-8/inherit-permissions-of-the-parent-directory-in-newly-created-file-754097/
[20:59] <qman__> like I said, it doesn't enforce the permissions, it just changes the default creation behavior, which I think is all he wants in this case
[21:00] <qman__> so that newly uploaded files will have the correct group-owner and be usable by the web server
[21:01] <undecim> oic
[21:01] <undecim> Much more elegant that what I suggested
[21:01] <qman__> I use this and a daily cron script on one of my samba shares
[21:02] <qman__> it's not a real enforcement, just mostly functional
[21:03] <qman__> I also use the sticky bit so users can't delete other users' files, which is probably why I mixed them up
[22:33] <philipballew> has anybody used naigos before?
[22:42] <qman__> !anyone
[22:42] <qman__> philipballew, thousands of people, if not more, have used nagios before
[22:48] <philipballew> qman__, sorry. What advantages does it give me or what is the ease of use it provides?
[22:49] <qman__> philipballew, nagios is pretty simplistic in its design, its main benefit is in its modular design
[22:49] <qman__> you can define checks to do literally anything, and report back into the main system
[22:50] <qman__> it has a web interface and can email alerts
[22:51] <qman__> it's popular and has been around a while, so there's a lot of existing plugins you can use
[22:51] <philipballew> I was goin to follow this guide? http://www.debian-administration.org/articles/299
[22:53] <qman__> looks good, not sure if there are any changes for ubuntu
[22:53] <qman__> that's a good website
[22:54] <qman__> check the server guide first, I think there's a section on it
[22:54] <qman__> yeah: https://help.ubuntu.com/10.04/serverguide/C/nagios.html
[22:55]  * philipballew hugs and high fives qman__ 
[22:56] <qman__> it doesn't say so at the top, in that example server01 is the monitoring server and server02 is just another server being monitored
[22:58] <philipballew> I can get notification emailed to me, can that just come to my ubuntu/gmail or would that need to go to my own domain email?
[22:58] <qman__> can go to anywhere your server is able to mail to
[22:59] <qman__> if you have an internet-configured mail server on your network, you can just configure it as a satellite system and it will be able to send to any email on the net
[22:59] <qman__> with your mail server as the smart host
[22:59] <qman__> if not, there are ways to configure postfix to use a gmail account or similar to send mail to the internet
[23:00] <philipballew> this could be fun!
[23:01] <qman__> I set mine up with a gmail account before I had a static IP
[23:01] <qman__> that was with 8.04 though, been a while
[23:01] <philipballew> qman__, Im to cheap for a static :)
[23:01] <philipballew> or poor
[23:02] <philipballew> 8.04 server was nice
[23:02] <qman__> yes it was, miss the days before all this plymouth nonsense
[23:04] <qman__> but you take the bad with the good, high resolution consoles that actually work are nice
[23:04] <philipballew> qman__, yeah, I personally like to see whats happening with my kernel
[23:05] <qman__> yep, and my fsck
[23:08] <philipballew> but its good for your joe plumber user qman__