<    April 2017    >
Su Mo Tu We Th Fr Sa  
                   1  
 2  3  4  5  6  7  8  
 9 10 11 12 13 14 15  
16 17 18 19 20 21 22  
23 24 25 26 27 28 29  
30
00:04 dirac1 joined
00:21 grayhemp joined
00:24 grayhemp_ joined
00:31 kvda joined
00:43 czart__ joined
01:21 s33se_ joined
01:27 mdillon joined
01:28 kvda joined
01:46 minimalism joined
01:51 ogres joined
01:59 Emperor_Earth joined
02:34 kl3_ joined
02:35 kn330 joined
02:52 mdillon joined
03:04 mguentner joined
03:10 kvda joined
03:15 mguentner2 joined
03:29 dunx_ joined
03:52 dunx joined
04:02 avih joined
04:36 atomi joined
04:38 avih joined
04:52 mdillon joined
04:53 kn330 joined
05:31 kn330 joined
06:41 grayhemp joined
07:01 tmh1999 joined
07:07 kn330_ joined
07:14 kn330_ joined
07:42 sergey__ joined
07:54 `jpg joined
08:46 Berra joined
08:55 fekepp joined
09:27 syntrx joined
09:46 slappymcfry joined
10:08 fekepp joined
12:05 Skele joined
12:08 fabled joined
12:09 kvda joined
12:25 BitL0G1c joined
12:28 IHAVENONICK joined
12:33 terra joined
12:35 kvda joined
12:49 kn330_ joined
12:59 skyroveRR joined
12:59 <skyroveRR> Hey guys, what are the typical UNIX permissions on the "locate" and "updatedb" binary programs from the mlocate software package?
13:06 <^7heo> damn good question.
13:06 <^7heo> I wouldn't know, I use find...
13:06 <^7heo> locate only needs to read the updatedb's db
13:07 <^7heo> but updatedb needs root to read the filesystem's root files I'd say.
13:07 <^7heo> it gets as simple as this, I would believe.
13:08 <skyroveRR> I'm actually *not* using alpine linux, and it sucks having to use root for running updatedb and locate as root.
13:10 <skyroveRR> ^7heo: so.. what does ls -lh $(which locate) tell you? And ls -lh $(which updatedb) ? :)
13:11 <^7heo> command not found: locate
13:11 <^7heo> so...
13:11 <skyroveRR> ...
13:12 <skyroveRR> Well, install mlocate :P
13:12 <^7heo> findutils is actually in main.
13:12 <^7heo> mlocate is in testing.
13:12 <^7heo> http://pkgs.alpinelinux.org/contents?branch=v3.5&name=findutils&arch=aarch64&repo=main
13:13 <^7heo> and find is aliased to busybox when it's not installed from findutils.
13:13 <^7heo> I mean, that's http://pkgs.alpinelinux.org/contents?branch=v3.5&name=findutils&arch=x86_64&repo=main the link for my arch
13:13 <^7heo> but yeah.
13:14 <skyroveRR> find is way less interesting to me than mlocate/slocate :)
13:15 fabled_ joined
13:16 <^7heo> skyroveRR: why?"
13:16 <hiro> locate sucks
13:16 <hiro> use du
13:16 <^7heo> that's not the question ;)
13:16 <^7heo> du?!
13:16 <^7heo> find, you mean...
13:16 <^7heo> https://pagure.io/mlocate/blob/master/f/src
13:17 <hiro> yes, if it's installed, but i use find like du
13:17 <^7heo> here is the mlocate tree.
13:17 <hiro> find|grep bla
13:17 <hiro> cause fuck this stupid find syntax, too.
13:17 <^7heo> it's not that optimal
13:17 <^7heo> but yeah ok.
13:17 <hiro> find -yourmom -yourname -yourfathername
13:17 <^7heo> :D
13:17 <_ikke_> find . -name '*test*'
13:17 <skyroveRR> ^7heo: I've got the source already....
13:17 <^7heo> sure, but how would you use du instead of find?
13:18 <hiro> _ikke_: sorry i always forget the .
13:18 <^7heo> _ikke_: you don't need the .
13:18 <hiro> ^7heo: you don't??
13:18 <^7heo> at least with zsh
13:18 <^7heo> not with zsh no
13:18 <hiro> ^7heo: well, i wouldn't know
13:18 <^7heo> same as doing grep -rni 'foo' .
13:18 <^7heo> you can just do `grep -rni 'foo'`
13:18 <hiro> find is too confusing
13:18 <hiro> nobody in their right mind can remember all it's options
13:19 <^7heo> well, also works fine with busybox's ash
13:19 <^7heo> find -name 'test'
13:19 <^7heo> finds stuff.
13:19 <hiro> du|grep test is shorter
13:19 <^7heo> ahh I see what you mean.
13:19 <^7heo> du is actually listing the files for their size
13:19 <^7heo> and du is half the effort to type
13:19 <^7heo> so it works better for you ;)
13:19 <hiro> yeah, but it works. everywhere. without -yourmom or . or zsh
13:20 <^7heo> yeah
13:20 <^7heo> but on the other hand
13:20 <hiro> btw. apropro zsh :P
13:20 <^7heo> find works without the . by spec I'd say
13:20 <^7heo> because it works with ash too.
13:21 <hiro> as one of the few people actually using simple (a)sh based shells: watching this right now: https://www.youtube.com/watch?v=2kEJoWfobpA
13:21 <^7heo> so yeah, find works without the '.'
13:22 <hiro> 15:19 ^7heo du is actually listing the files for their size
13:22 <hiro> find also does that
13:22 <hiro> it can do a hell lot more than that
13:22 <skyroveRR> Oh, found the permissions :P
13:22 <hiro> it's fucking insane
13:22 <^7heo> yeah I dunno
13:22 <^7heo> skyroveRR: what are they?
13:22 <skyroveRR> In the Makefile
13:22 <skyroveRR> In the source.
13:23 <skyroveRR> chmod g+s,go-w "$(DESTDIR)$(binddir)/locate
13:24 <^7heo> aaaah
13:24 <^7heo> THAT is what you meant for the permissions of locate.
13:24 <^7heo> not what permissions it need to run
13:24 <^7heo> but what permissions the FILE has.
13:24 <skyroveRR> What did you mean when I said "UNIX permissions"..
13:25 <skyroveRR> * What did you think when I said "UNIX permissions"...
13:25 <hiro> he said root, which i understood as synonymous with suid :D
13:25 <hiro> so i was wondering wtf the problem was haha
13:25 <^7heo> skyroveRR: I just wrote what I thought.
13:25 <^7heo> yeah ;)
13:26 <^7heo> well it guid tho.
13:26 <^7heo> it's*
13:26 <hiro> g + suid bit, no?
13:26 <hiro> it applies to the group...
13:26 <^7heo> yeah that's what I meant.
13:27 <skyroveRR> In case anyone in the future wants them...
13:27 <skyroveRR> $ ls -lh /bin/updatedb
13:27 <skyroveRR> -rwxr-sr-x 1 root root 90K Apr 13 20:18 /bin/updatedb*
13:27 <skyroveRR> $ ls -lh /bin/locate
13:27 <skyroveRR> -rwxr-sr-x 1 root root 111K Apr 13 20:18 /bin/locate*
13:27 <^7heo> yeah
13:28 <^7heo> I wonder why it's group suid and not user suid
13:28 <hiro> in case you wanna give it to a group named like fs or admin
13:33 <hiro> users shouldn't be allowed to locate in dirs that are off their reach
13:38 jackmcbarn joined
13:38 Kooda[b] joined
13:52 terra joined
13:55 kn330_ joined
14:13 armin joined
14:17 armin joined
14:40 kn330_ joined
14:45 skyroveRR left
15:12 karim__ joined
15:19 blueness joined
15:44 ^7heo joined
15:44 blackwind_123 joined
15:47 Zucca joined
16:07 manacit joined
16:22 cyborg-one joined
16:23 blueness joined
16:46 dlewen joined
16:52 blueness joined
17:07 karim__ joined
17:08 BitL0G1c joined
17:11 ^7heo joined
17:13 ^7heo joined
17:28 Nobabs27 joined
17:49 BitL0G1c joined
18:00 sergey_ joined
18:13 <hiro> but what's that about dude! :D
18:13 <hiro> sry
18:18 kunev joined
18:29 ogres joined
18:49 kunev joined
18:53 cyborg-one joined
19:45 mortis304 joined
19:54 atomi joined
20:01 `jpg joined
20:26 lesion joined
20:32 karim__ joined
20:36 jackmcbarn joined
20:45 `jpg joined
20:48 `jpg joined
20:48 terra joined
20:55 babs_ joined
21:01 <Xe> is there a way to add authentication information to an apk repo?
21:02 <^7heo> wat?
21:04 <Xe> HTTP basic auth
21:10 Kirra joined
21:24 madsa joined
21:41 kvda joined
21:52 babs__ joined
22:09 LouisA joined
22:29 slappymcfry joined
22:43 czart_ joined
22:46 `jpg joined
22:51 dirac1 joined
23:47 `jpg joined