=== Sabbathlives_ is now known as Sabbathlives [00:52] How can I change the default umask for a directory? [01:01] I don't believe you can set umask on a per-directory basis. [01:02] markthomas, I have a web dir that SPGrab uploads snapshots to, by default it doesn't allow others to read, resulting in forbidden when someone tries to access my screenshots, so I have to go in and change the permissions on the newly uploaded pics [01:04] Not familiar with spbrab. But umask is per-process, not per dir. You probably need to chmod in the process or some such. [01:05] maybe setfacl? [01:05] I've never worked much with ACLs. [01:05] Yeah. That I couldn't tell you. [01:05] SPGrab works fine on my CentOS machine, really wanting it on my Ubuntu one [01:05] I tried recursive permissions, don't work [01:06] What file ownership are the files getting when they're uploaded? [01:07] -rw-rw---- [01:07] And the ownership? [01:07] What are the owner and group? [01:07] the user I upload via FTP as [01:08] SPGrab is used to take snapshots of your desktop, upload via ftp to a web dir, and share a link [01:08] Hmm... [01:09] I just want others to have read access on new created files in /var/www/screenshots/ [01:09] :P [01:09] So, you need to set the umask not for a specific directory, but as part of the FTP process. Is this process the only thing using the ftpd on that box? [01:09] no [01:09] Hmm... [01:10] Do they need access immediately after upload? [01:10] i.e. can there be a couple minute delay? [01:11] Sorry about that, my ssh tunnel died. :S [01:12] :) [01:12] I'm at the end of my workday, and I'll need to run. If a couple minute delay after upload is acceptable, try throwing a chmod into your cron. [01:13] s/cron/crontab/ [01:13] It's a workaround, but it may do while you look into using ACLs. [01:13] hmm [01:14] No, it's not attractive. [01:14] I've heard of sticky permissions, not sure if that's it [01:15] It's not. === security is now known as megha [05:44] trying to remove the default login on ubuntu server 12.10 -> any hints for me? [05:45] i know issue and issue.net and the other one [05:46] motd [05:47] seems like i change it and then resets? [05:57] gay [06:08] i figured it out [06:43] Hello! I am new to This IRC channel. I was wondering if someone knows much about load balancing webservers in ubuntu 12.10 ? === mollerup_ is now known as mollerup === Jikan is now known as Jikai === Jikai is now known as Jikan [10:12] Question: i've installed exim4 with a relay, and have set the MAILTO= in crontab. Via 'dpkg-reconfigure exim4-config' i was able to masquerade the domain. The only thing I can't figure out, is to change the username 'root' in the From-Address to another username. So, how to change root(at)domainname.com to user(at)domainname.com ? [11:13] hm... scripting in bash, I want to run this nagios check seven times and then return the largest exit code of all those tests combined (0-3). any idea of how to do that most easily? [11:20] RoyK: Start Nagios from a script and put each exit status into an array. That's the start [11:22] RoyK: After that you can sort the array and display the X number of top results [11:38] RoyK: Alternative approachy, which may or may not apply, take a look at the check_multi plugin? [12:39] Hi, I've got a 5 1TB disk RAID 5 array and I'd like to migrate to 3 3TB disk array… what's the best way to do this? [12:39] I've got enough SATA slots to where I can run the old array in degraded state and run the new array in a degraded state as well. [12:40] Is this the recommended procedure? Run both in degraded, copy all the data over, then, remove the old disks and reboot with all the three new disks in? [12:46] billy_ran_away: if you place a 3T disk into a raid with 1T disk and rebiuld it you will lost 2T because raid will cuts it on 1T [12:46] billy_ran_away: I probably would not do it like that, I would use two machines in your situation, or another controller added in [12:47] Can't I run both in degraded state? [12:47] davegarath: I don't think he wants to do that, he's just running out of sata ports? [12:47] billy_ran_away: you probably can. like I said, I wouldn't do it like that. what happens if you have disk failure in that state? [12:48] depends how important your data is, I assume your backups are all current :D [12:48] Then I insert my 5th drive back in and order another 1TB drive [12:48] I don't think you are listening to me. good luck. [12:49] Hey. When I install 13.04 beta now, will I be up to date when the final version is released? [12:49] yes [12:50] thanks Nafallo [12:50] yw [12:55] Why is mdadm -C /dev/md0 -l 5 -n 3 /dev/sd[hg]1 missing not making a 6TB array when I'm using 3TB disks? [13:05] Why is neither cfdisk nor fdisk making the right size partitions on this 3Tb drive? [13:06] maybe your hardware can't handle the sector size change? === mjeanson_ is now known as mjeanson === wedgwood_away is now known as wedgwood [14:07] mdadm -C /dev/md0 -l 5 -N media -R -n 3 /dev/sdd1 /dev/sdc1 missing [14:07] mdadm: cannot open /dev/sdd1: Device or resource busy [14:07] WTF? I just rebooted... === cmagina_away is now known as cmagina [14:10] if I upload my files by ftp how do I make sure they get www-data:www-data 775 like my other files in /home/zastaph/web ? [14:10] setgid and umask? and what user should I use for ftp === daniel_- is now known as Guest20460 === security is now known as megha === daniel_- is now known as Guest59919 [16:41] kirkland: howdy!! did you upload testdrive 3.18 to the ubuntu archive or only ppa? [16:51] ppetraki: hey - what would you say would be the most appropriate way to determine (from C) whether a blockdev is an lvm2 LV? The functions in /usr/include/lvm2app.h ? [16:51] hallyn, /me looking [16:56] thx! [16:57] hallyn, just posting publicly now :) [16:57] the chessy way out to test for the negative, INQUIRY [16:57] block devices don't respond to SCSI cmds [16:57] all this code assumes you're trying to manage LVM [16:57] so you pick a VG, and use that handle to get a list of LVs [16:57] which is a royal pain in the ass [16:57] shortcut, just interrogate device mapper [16:57] ppetraki: what i'm doing is a generic blockdev layer in lxc, [16:57] which should take the 'source path', the blockdev in lvm case, and decide 'yes, i can handle this' [16:58] (so then it knows how to do snapshots) [16:58] yeah, anything with a linear driver in DM table is either an LV or MP path [16:58] well, an LV [16:59] ppetraki: in the current script-based clone, i just do lvdisplay $dev [17:00] hallyn, you could also use the sg api and just pound all the devices with inquiry, not difficult, http://pastebin.ubuntu.com/5713668/ [17:00] suppose i could go see how that command works [17:00] hallyn, it tried to fail back, SCSI and ATA passthrough, both failed. [17:01] hallyn, as if you concat a bunch of devices, which ones ID do you return? [17:01] you're talking mp? [17:01] hallyn, that's LVM [17:02] concat devices? [17:02] hallyn, likely true of MP but I don't have system access to confirm [17:03] hallyn, sysfs is also useful, as block devices don't have make and model attrs, nor are they attached to the sd driver in sysfs device model [17:03] ok, so your comment was about sg... i demand the actual lvm device, not one of the backing physical devices, so hopefu [17:03] oh yeah, lemme check sys [17:05] hallyn, http://pastebin.ubuntu.com/5713690/ [17:06] so i see: [17:06] cat /sys/dev/block/252:9/dm/uuid [17:06] LVM-B78EDPMWoBOMaP0szouAOQ6QDLsHCszyqKBLlxvtB41UudUh3CJyIFO0cDM35Df6 [17:06] I wonder if LVM- is predictable? [17:06] hallyn, you can do set exclusion at that point [17:07] dm is not necessarily lvm right [17:07] hallyn, actually, yes :) [17:07] hallyn, http://pastebin.ubuntu.com/5713696/ [17:07] hallyn, fixed? [17:08] ppetraki: sweet, thanks :) [17:08] hallyn, UUID_PREFIX is hardcoded, so I think you're good, unless some uses udev to rename it [17:08] hallyn, at a minimum you've covered the common case [17:08] if they want to mess with udev like that, they can get what's coming :) [17:08] hallyn, agreed :) [17:09] ppetraki: thanks! ttyl [17:09] hallyn, anytime! === james_ is now known as Guest69845 [17:50] is keyring and seahorse installed by default in ubuntu? [18:48] I just did apt-get update/upgrade on my server running Ubuntu 12.04 LTS and noticed that PHP is ancient (5.3.10). The latest version of php is 5.4.14. The latest release of php 5.3 is 5.3.24. Why on earth has canonical (or someone) not provided more up-to-date packages for PHP? This is kind of ridiculous. [18:55] Jaith: see https://wiki.ubuntu.com/SecurityTeam/FAQ#Versions and http://www.debian.org/security/faq#oldversion [18:56] Jaith: see also http://people.canonical.com/~ubuntu-security/cve/pkg/php5.html [18:56] sarnold++ [18:57] hey RoyK :) [18:58] sarnold: ;) [19:04] sarnold: thx [19:04] oops.. [19:38] hello [19:39] i'm having issues with automatically start tightvncserver at boot, any volunteers to help out? [19:39] not... all... at... once... plz :) [19:40] disturbed: chillax. [19:40] disturbed: how did you install it [19:40] sudo apt-get install tightvncserver [19:40] okay, and how do you currently start the server [19:41] tightvncserver -geometry 1980x1020 :0 [19:41] that works... [19:41] then i made a /etc/init.d/tightvncserver, chmod +x [19:41] okay [19:41] and that script works to start it? [19:42] this post seems to explain it pretty well [19:42] http://askubuntu.com/questions/120973/how-do-i-start-vnc-server-on-boot [19:42] if i execute: sudo /etc/init.d/tightvncserver it works [19:42] but it doesn't do that at boot [19:42] right [19:43] you have to update it to run at boot [19:43] update-rc.d tightvncserver defaults [19:43] should do it [19:43] can i do: update-rc.d tightvncserver -geometry 1980x1020 :0 ? [19:43] no [19:44] literally [19:44] update-rc.d tightvncserver defaults [19:44] :| [19:45] ok brb [19:45] right, now i also see it in chkconfig, so looks good, tnx, => rebooting [19:49] still not rebooted... [19:49] heh [19:49] btw i saw that link before and already tried rc.local and @reboot crontab thingy [19:50] did you try the accepted answer [19:50] lol [19:51] @reboot seemed the easiest one :) [19:51] right, rebooting :) [19:51] @reboot likely won't work like you think it does, but alright :) [19:53] no luck: ps -ef|grep vnc => nothing [19:54] ok [19:54] a vnc server is hard to get to work at boot, since it requires the display and stuff to already be working [19:55] not really a server if it has a GUI imo [19:55] ... [19:55] :) [19:55] well, i would have been happy with mint linux [19:55] except that it could not boot without a monitor connected to it [19:55] not a nas when it needs a monitor constantly [19:56] perhaps #ltsp [19:58] i'll try webmin and see how far i get :) [19:58] !webmin [19:58] webmin is no longer supported in Debian and Ubuntu. It is not compatible with the way that Ubuntu packages handle configuration files, and is likely to cause unexpected issues with your system. [19:58] *$!# :) [19:59] disturbed_: better use the commandline - it doesn't take to long to learn the basics [19:59] and it helps a good while in the long term [20:00] where's my xanax [20:00] (by actually understanding what you're doing instead of just clicking some fancy GUI) [20:00] benzodiazepines aren't good for you, disturbed_ - beleive me [20:01] should be a nas, so samba, daatp, owncloud, plexserver, ... [20:01] well, buy one [20:01] get a nas box [20:01] doesn't cost that much [20:01] see, i'm not doing basics :) [20:02] disturbed_: it's rather easy to learn ;) [20:02] i'd like to have a small server that can do samba, bittorrent, itunes server, ... [20:02] yeah, it's easy [20:02] easy peasy [20:02] just learn the basics [20:02] but, since it's in the fitness room, i also sometimes want to connect a monitor and play music on that [20:02] don't be so bloody lazy [20:03] without having to use my playstation 3 for the dlna [20:03] don't see how i'm gonna play my music on my nas, in text mode :) [20:03] over the net - sure [20:04] but then - use a laptop or something if you don't want to learn too much [20:04] setup a homeserver and samba and you're all set [20:04] think you're missing the point [20:05] probably more hassle with a webbased admin interface than with something on the commandline [20:05] i want it to server a nas and media server [20:06] ps3mediaserver? [20:06] xbmc? [20:06] xbmc works well [20:07] openmediavault, nas4free, ... [20:07] well, learn it, please [20:07] don't just ask [20:07] or join the channels where those products are supported [20:08] ubuntu server can give you storage on raid and support for a bunch of applications [20:08] but this channel isn't for end users for media server setup [20:09] nvm [20:09] heh [20:09] (idiots) [20:22] single, doesn't surprise me