code logs -> 2008 -> Tue, 11 Nov 2008< code.20081110.log - code.20081112.log >
--- Log opened Tue Nov 11 00:00:11 2008
--- Day changed Tue Nov 11 2008
00:00
<@Consul>
You have to chown it to root, I think.
00:00
<@C_tiger>
Ok, I did that.
00:00
<@Consul>
Then give it user execute privs.
00:00
<@Consul>
then it's just chmod 0755
00:00
<@Consul>
Typically.
00:00
<@Consul>
YMMV
00:00
<@C_tiger>
but it still is spitting out permission denied.
00:00
<@Consul>
Really?
00:00
<@Consul>
Distro?
00:01
<@C_tiger>
um... I'm not sure, it's on a file server.
00:01
<@Consul>
Hrm...
00:01
<@C_tiger>
I have a script that I want to cronjob to move files over on a regular basis.
00:01
<@C_tiger>
but I need root permissions to access the file it wants to move.
00:02
<@Consul>
Does cron run as its own user?
00:02
<@Consul>
Oh, I see.
00:02
<@Consul>
Nevermind..
00:02
<@Consul>
Is the script also chown-ed to the root group?
00:02
<@C_tiger>
and I can't seem to elevate the script to have permissions to do that.
00:02
<@C_tiger>
yep.
00:02
<@Consul>
chown root:root filename
00:02
<@C_tiger>
maybe root:root
00:03
<@Consul>
Man, my sysadmin skills are so out of practice...
00:03
<@Consul>
But...
00:03
<@C_tiger>
hmmm... root:root works.
00:03
<@C_tiger>
Ok, I guess that was it.
00:03
<@Consul>
Ah, okay.
00:04
<@Consul>
I don't have to go off on my next flight of fancy. :-)
00:10
<@ToxicFrog>
I note that that's not quite what you asked for, although if it works now, it probably is what you actually needed.
00:10
<@C_tiger>
...
00:10
<@ToxicFrog>
root:root mode 755 is "owned by root; in group root; root can read, write and execute; users in group root can read and execute; everyone else can read and execute"
00:10
<@ToxicFrog>
But if, say, bob runs it, it'll run as bob.
00:11
<@C_tiger>
I did +s also
00:11
<@ToxicFrog>
If it needs to run with root permissions even when bob runs it, the term you're looking for is setuid, which is...yes.
00:11
<@C_tiger>
but I couldn't make +s work which is why I came here... because apparently you need root:root and not just root.
00:13
<@ToxicFrog>
That does strike me as odd
00:15
<@C_tiger>
nevermind, no, it doesn't run as bob
00:15
<@C_tiger>
-rwsr-sr-x 1 root root 304 Nov 10 16.:07 cwang.bash
00:16
<@C_tiger>
what's wrong?
00:16
<@ToxicFrog>
What happens when you try?
00:16
<@C_tiger>
it runs but it gets the permission denied message.
00:16
<@C_tiger>
when it tries to copy.
00:17
<@C_tiger>
cp: cannot open `[file]' for reading: Permission denied
00:17
<@ToxicFrog>
But as root, you can read it?
00:17
<@C_tiger>
yep.
00:17
<@C_tiger>
sudo ./cwang.bash works just fine
00:17
<@ToxicFrog>
*flail*
00:17 Vornucopia is now known as Vornicus
00:19
<@C_tiger>
Vornicus?
00:19
<@C_tiger>
can you save me?
00:19
< Vornicus>
C_tigericus?
00:19
< Vornicus>
No.
00:19 * C_tiger sobs.
00:19
< Vornicus>
I don't know how to do setuid.
00:20
< Vornicus>
C_tiger: Looking at your permissions line, I see s s x
00:20
< Vornicus>
You have to be in the root group to run it?
00:20
<@C_tiger>
actually you have to run it as root.
00:20
<@C_tiger>
I'm in the root group and I can't even run it.
00:20
<@ToxicFrog>
s is setuid/setgid
00:20
< Vornicus>
okay.
00:20
<@ToxicFrog>
Ie, it inherits that effective group or user id when run, regardless of who runs it
00:21
< Vornicus>
Right, run it /properly/, that is
00:21
<@C_tiger>
wikipedia says that some file systems ignore setuid for shell scripts.
00:21
<@ToxicFrog>
At least in theory, a file that's rwsr-sr-x root:root will have an effective uid and gid of root when run even if bob runs it
00:22
<@Consul>
I would imagine some servers could have security set up in such a way that setuid doesn't work?
00:22
<@Consul>
Considered a security risk?
00:22
<@C_tiger>
yeah.
00:22
<@ToxicFrog>
Usually that's handled by dropping the setuid and setgid bits when the permissions change
00:23
<@ToxicFrog>
So you can, say, either make your script setuid self, or give it to root, but not make it setuid root
00:23
<@C_tiger>
Hmmm... ok, so how do I do this?
00:23
<@C_tiger>
can I put sudo in a bash script and not provide a password?
00:24
<@ToxicFrog>
Not unless the system is set up to let you sudo without a password
00:24
<@C_tiger>
which it isn't.
00:24
<@ToxicFrog>
I don't see how ignoring setuid on shell scripts gives any benefit, though
00:25
<@C_tiger>
I guess if you accidentally give w permissions to someone, suddenly they have superpowers.
00:25
<@ToxicFrog>
Right, but the correct answer there is "so don't do that, then"
00:26
<@ToxicFrog>
Giving users write permission to, say, /etc/passwd, you're boned whether setuid is allowed on shell scripts or not
00:31 Vornotron [~vorn@Admin.Nightstar.Net] has joined #code
00:32 Vornicus [~vorn@ServicesOp.Nightstar.Net] has quit [Ping Timeout]
00:33 Vornotron is now known as Vornicus
00:33
<@C_tiger>
can cron run scripts with root permissions?
00:34 Vornicus is now known as NSGuest-807
00:34
<@C_tiger>
(now trying a different approach)
00:34 NSGuest-807 is now known as Vornicus
00:34
< Vornicus>
C_tiger: cron can run as root, to be sure
00:35
< Vornicus>
or rather, root gets a crontab.
00:35
<@C_tiger>
so I just sudo - and then crontab right?
00:35
<@C_tiger>
right.
00:37
<@C_tiger>
or su - and apparently I can't do that.
00:53
<@ToxicFrog>
sudo crontab, or sudo su -; nano crontab
00:56 Derakon [~Derakon@Nightstar-4920.hsd1.ca.comcast.net] has joined #code
00:56 mode/#code [+o Derakon] by ChanServ
01:46 Attilla [~The.Attil@Nightstar-9469.cdif.cable.ntl.com] has quit [Quit: <Insert Humorous and/or serious exit message here>]
02:33 gnolam [lenin@79.136.60.ns-4387] has quit [Quit: The gnomes have found a new way to say hooray]
03:03
<@Derakon>
Argh. Any HTML gurus here?
03:03
<@Derakon>
http://derakon.dyndns.org/~chriswei/wh/debug.html
03:03
<@Derakon>
Why is the green bar not covering all the content?
03:05
<@McMartin>
It looks like it is to me
03:05
<@McMartin>
Though the content is only like a fifth of my window width.
03:06
<@McMartin>
Or do you mean vertically?
03:06
<@Derakon>
Vertically.
03:06
<@Derakon>
There's a 10px green bar at the top that should contain all the text and borders.
03:07
<@McMartin>
Aha.
03:10
<@Derakon>
Rather, it should contain them, but because it is 10px, it does not.
03:16
<@McMartin>
Rargh
03:16
<@Derakon>
No luck?
03:16
<@McMartin>
Are precompiled headers good for *anything* except spurious build failures?
03:17
<@Derakon>
Heh.
03:22
<@McMartin>
OK, screw it.
03:23
<@McMartin>
The buildbots have their orders, it's a one-line fix confirmed on the other platform, and it's going to take at least an hour to get around to noticing that there was even ever a problem in the first place, much less confirming the fix.
03:23
<@McMartin>
I'm getting dinner.
03:23
<@McMartin>
Foolish robots.
04:07 Vornotron [~vorn@Admin.Nightstar.Net] has joined #code
04:08 Vornicus [~vorn@ServicesOp.Nightstar.Net] has quit [Ping Timeout]
04:09 Vornotron is now known as Vornicus
04:44
< Vornicus>
hm. a blackletter would be nice. I can almost do blackletters myself, if i can find that calligraphy pen.
04:52 * Vornicus also discovers he has downloaded a font called "Kelt", but has no idea where he got it, but man it's nice.
05:31 * Vornicus bites font designers that don't make their numbers monospace.
05:35
<@Derakon>
Silly typo: instead of "gameData", I got "gameDada".
05:37 * Vornicus unleashes Dali on Der's data.
05:42 * Derakon implements rejoining of games.
05:42
<@Derakon>
Now I don't have to wipe the database every time the test game hits 8 players.
05:44
<@Derakon>
I also had an idea for making the game semi-synchronous even though AJAX is pull-only.
05:44
<@Derakon>
When it's not the player's turn, his browser opens a request to the server, which the server just holds open (refreshing every 20 seconds or so to keep it alive), until something happens that the player needs to know about.
05:45
<@Derakon>
Aside from the continual "page loading" effect in the browser, I don't see any reason this wouldn't work.
05:47 gnolam [lenin@79.136.60.ns-4387] has joined #Code
05:47 mode/#code [+o gnolam] by ChanServ
05:47 ToxicFrog [~ToxicFrog@Nightstar-25829.acanac.net] has quit [Operation timed out]
06:27 AnnoDomini [~farkoff@Nightstar-29390.neoplus.adsl.tpnet.pl] has joined #Code
06:27 mode/#code [+o AnnoDomini] by ChanServ
06:41 Derakon is now known as Derakon[AFK]
07:18 ToxicFrog [~ToxicFrog@Nightstar-24217.acanac.net] has joined #code
07:18 mode/#code [+o ToxicFrog] by ChanServ
07:28 gnolaptop [~lenin@Nightstar-23059.netlogon.liu.se] has joined #Code
07:39
< gnolaptop>
So. What's a good PDF viewer under Linux?
08:15
<@McMartin>
I use evince.
08:18 Vornicus is now known as Vornicus-Latens
08:28
< gnolaptop>
Mmmkay.
09:00 gnolaptop [~lenin@Nightstar-23059.netlogon.liu.se] has quit [Quit: I am become gone, quitter of IRC]
09:15 You're now known as TheWatcher
14:48 Reiver [~reaverta@Admin.Nightstar.Net] has quit [Ping Timeout]
15:11
<@AnnoDomini>
What kind of table do I look up the result of: ts = (tz - tc)/sigma, where tz and tc are different times, and sigma is standard deviation? What if I get a negative result?
15:14
<@AnnoDomini>
My notes say that I need to look at a cumulative distribution function, but damn it, I'm getting a negative result.
15:14
<@AnnoDomini>
Which isn't on there.
15:17
<@AnnoDomini>
My understanding of this is very fuzzy.
15:22 * AnnoDomini mumbles. Fuck it, I'll assume it's symmetrical or something.
15:23
<@AnnoDomini>
But then comes the problem of actually knowing how to read this fucker.
15:58
<@C_tiger>
um, you mean a normal distribution table?
16:00
<@AnnoDomini>
I don't know what it's called in English.
16:00
<@C_tiger>
or maybe erf?
16:01
<@C_tiger>
I have to go to work but if you describe exactly what you're trying to do, someone else can answer.
16:01
<@AnnoDomini>
http://stat.is.uw.edu.pl/tablice-normalny-chi.pdf
16:02
<@C_tiger>
yeah, it's erf.
16:02
<@C_tiger>
just take the negative of your result (so make it positive) and then subtract from 1
16:02
<@AnnoDomini>
I see.
16:02
<@AnnoDomini>
Thank you.
17:25 AnnoDomini [~farkoff@Nightstar-29390.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
18:18 AnnoDomini [~farkoff@Nightstar-29643.neoplus.adsl.tpnet.pl] has joined #Code
18:18 mode/#code [+o AnnoDomini] by ChanServ
18:21 Attilla [~The.Attil@Nightstar-9469.cdif.cable.ntl.com] has joined #code
18:21 mode/#code [+o Attilla] by ChanServ
19:52 Emma [~nsJChat@Nightstar-17302.charles-city.k12.ia.us] has joined #code
19:52
< Emma>
hello
19:52
<@AnnoDomini>
Hello.
19:52
< Emma>
how are you?
19:55
<@AnnoDomini>
Good.
19:57
< Emma>
thats good. school is so boring! im in studyhall. i jsut got done watching Twilight trailers. I CANT WAIT for the movie to come out
19:57
<@AnnoDomini>
Oh, god. Twilight as in that vampire stuff when they sparkle in daylight?
19:57 Emma is now known as EdwardsGift
19:57
< EdwardsGift>
yup
19:58 EdwardsGift is now known as Emma
19:58
<@AnnoDomini>
Not to sound rude, but from what I've read about it, it's... bad. Very bad. Horribly bad.
19:58
< Emma>
its a good book
19:58
<@AnnoDomini>
How old are you?
19:58
< Emma>
14
19:58
<@AnnoDomini>
Figures.
19:59
< Emma>
almost everyone in my high school is reading it now
19:59
<@AnnoDomini>
http://www.encyclopediadramatica.com/Twilight <- Enjoy.
19:59
< Emma>
no thanks.
20:00
<@AnnoDomini>
Suit yourself.
20:00
< Emma>
twilight will kick harry potter's ass once again! (sorry, i act like a little kid when it comes to things i like
20:01
<@AnnoDomini>
Harry Potter was tolerable. Can't say the same of this thing.
20:02
< Emma>
i like the movies, i cant stand the books though
20:04
<@AnnoDomini>
And why is that?
20:04
< Emma>
im not sure. the harry potter books just bore me
20:04
< Emma>
i tried reading it this year and i got like the first chapter and stop reading. it was so boring
20:05
<@AnnoDomini>
Whatever HP books are, they aren't boring. I should know - I tried to read the unabridged version of Pride of Prejudice.
20:05
<@AnnoDomini>
Now that's boring.
20:05
<@AnnoDomini>
s/of/and
20:05
< Emma>
lol
20:06
<@AnnoDomini>
After fifty pages of nothing fucking happening, I couldn't go on.
20:06
< Emma>
Midnight Embrace and Full Moon Rising are some more really really good vampire books i like. FMR has a sex scene in each chapter! i cant wait to buy the book!
20:07
<@AnnoDomini>
You read anything without vampires in it?
20:07
< Emma>
i read The Outsiders
20:08
< Emma>
ive read over 2000 books in 10 years. i love reading
20:08
<@AnnoDomini>
2000 books?
20:08
< Emma>
2,000
20:08
< Emma>
yeah
20:08
<@AnnoDomini>
That'd be 200 books per year.
20:08
< Emma>
i spend all my free time reading and riding horses
20:08
<@AnnoDomini>
!roll 365/200
20:09
<@AnnoDomini>
That's 1.85 days per book.
20:09
<@AnnoDomini>
I'm not certain I want to believe that.
20:09
< Emma>
i can read a 20 chapter book in one day, you have no clure how much freetime i get
20:10
<@AnnoDomini>
About as much as any 14 year old kid?
20:10
< Emma>
i skip school occasinaly. and i never have home work so... maybe like a couple mintues more XD
20:11
< Emma>
eh. sorry, i get really board then i ramble on
20:11
< Emma>
well. i g2g class is over. e-mail me if ya want
20:11
<@AnnoDomini>
I'm not really inclined to.
20:11
< Emma>
stop.slaughter@hotmail.com
20:11
< Emma>
i said if you want to
20:11
< Emma>
bye!
20:11 Emma [~nsJChat@Nightstar-17302.charles-city.k12.ia.us] has quit [Quit: Nightstar's Java Chat http://www.nightstar.net]
20:16
<@AnnoDomini>
Good thing there are still kids who read books. Too bad that sometimes, their taste is just so bad.
20:24
<@C_tiger>
It's the ADD society.
20:24
<@AnnoDomini>
Advanced Dungeons and Dragons? :P
20:24
<@C_tiger>
Attention Deficit Disorder.
20:24
<@AnnoDomini>
I know. :P
20:25
<@C_tiger>
They can't invest the time to read a book where the main draw comes from character development or sweeping themes.
20:25
<@AnnoDomini>
Hmm. Explain.
20:26
<@C_tiger>
I was reading To Kill A Mockingbird at 14. It was tough book to understand but deeply powerful. That said, there's no ACTION.
20:27
<@AnnoDomini>
I see.
20:27
<@C_tiger>
Good vs Evil books are easy reading, it's easy to know who to cheer for, there's constant action, people are thrown from cliffs or dodging bullets.
20:29 * AnnoDomini nods.
20:30
<@C_tiger>
These days, the kids don't read the sort of novel which just paints a portrait of a historical period, involve a single deeply conflicted character, even the standard coming-of-age (what's the german word for this again?) story is now rewritten so the actual development happens quickly and then the hero can go slay a few monsters.
20:30
<@AnnoDomini>
Bildungsroman.
20:32
<@C_tiger>
Right.
20:32
<@C_tiger>
I honestly can't see your typical teen voluntarily reading Great Expectations these days.
20:32
<@AnnoDomini>
One of my favourite books was just that. The Power of One.
20:57
<@McMartin>
C: I have to admit, many aspects of the craft of novel-writing did not evolve to something I find pleasant to read until the mid-20th century, if then.
20:57
<@McMartin>
With a few other ones.
20:57
<@McMartin>
(Hilariously, the fact that, for instance, Bram Stoker's Dracula is all 19th Century and otherwise unreadable gets a pass precisely because it is epistolary)
21:01 * TheWatcher readsup, notes that To Kill A Mockingbird might have a good story in it somewhere. If it did, it was utterly annihilated by his GCSE english lit course (ditto Cider with Rosie, and The Scottish Play, Romeo and Juliet, and a few other of the Bard's works)
21:08
<@AnnoDomini>
Huh?
21:10
<@McMartin>
Great Gatsby still more or less holds up, even if it is "lol obnoxious rich people wrecking their lives"
21:11
<@McMartin>
Moby Dick isn't *bad* if you skip the five+ chapters of "and now, a cetology text."
21:11
<@McMartin>
A lot of the things we often now consider flaws even in fanfic are rampant in early 20th century-and-before writing.
21:12
<@McMartin>
Hemingway is... interesting, but I personally consider his style kind of a failure
21:12
<@McMartin>
However, anyone writing screenplays needs to read and study his technique carefully.
21:12
<@McMartin>
(Most of his books we get no internal monologue; I think this doesn't work on the page, but for film you don't *get* those)
21:14
<@AnnoDomini>
(It's a necessity in PbP games with PvP enabled. :P)
21:28
<@gnolam>
<AnnoDomini> Good thing there are still kids who read books. Too bad that sometimes, their taste is just so bad.
21:28 * gnolam lols.
21:29
<@McMartin>
It's true!
21:32
<@AnnoDomini>
:)
21:33
<@McMartin>
Sturgeon's Law continues in full force. If there's some 10% that everyone's liking, though, loot your kid brother's library. >_>
21:33 Reiver [~reaverta@Nightstar-10569.xdsl.xnet.co.nz] has joined #Code
21:33 mode/#code [+o Reiver] by ChanServ
21:36
<@gnolam>
Of course, it should read "Good thing there are still FBI agents who read books".
21:37 Reiver [~reaverta@Nightstar-10569.xdsl.xnet.co.nz] has quit [Quit: Changing servers]
21:38 Reiver [~reaverta@Admin.Nightstar.Net] has joined #Code
21:38 mode/#code [+o Reiver] by ChanServ
21:38
<@AnnoDomini>
gnolam: Pffft.
21:38
<@AnnoDomini>
I didn't even bite at that offer of emailing. :P
21:39
<@gnolam>
(The Internet - where the men are men, the women are men, and the 14-year-old girls are FBI agents)
21:39
<@gnolam>
(In case /anyone/ had missed that one)
21:39
<@AnnoDomini>
4chan Party Van. :P
21:40
<@gnolam>
But I doubt any FBI agent would be willing to put himself through a book series like that. Even for a case.
21:41
<@AnnoDomini>
Indeed.
21:41
<@AnnoDomini>
http://nonadventures.com/
21:54
<@MyCatVerbs>
gnolam: I thought it was the 14-year-old boys who were FBI agents, traditionally.
22:00
<@gnolam>
Only in #Belgium.
22:09
<@gnolam>
Bah. This wxWidgets thingy isn't moving forward.
22:09
<@gnolam>
I should probably try to do something about this 04-06 sleep schedule I've got going. :P
22:31 AnnoDomini [~farkoff@Nightstar-29643.neoplus.adsl.tpnet.pl] has quit [Quit: "... Why are you smiling? I just beat you!" "Did you? Look at yourself. Look at what you've /become/."]
23:21 GeekSoldier [~Rob@Nightstar-8573.midstate.ip.cablemo.net] has joined #code
23:21 mode/#code [+o GeekSoldier] by ChanServ
--- Log closed Wed Nov 12 00:00:02 2008
code logs -> 2008 -> Tue, 11 Nov 2008< code.20081110.log - code.20081112.log >