Re: [dev] [slock] Configure OOM killer as non-root

2014-07-09 Thread S. R. Gal
-- From Danilo 08-07-2014 at 16:19 -- Hi Amadeus Am Di, 8. Jul 2014, um 16:08, schrieb Amadeus Folego: I also can't use it as non-root, how did you solve it? You need to change the owner of the binary to root and set the suid bit: $ sudo chown root slock $ sudo chmod

[dev] [slock] Configure OOM killer as non-root

2014-07-08 Thread Danilo
Hi all In commit ba3acfc, a patch has been applied to disable the Linux OOM killer for slock. While I like that change, I could not figure out what the proper way is to start slock without root privileges. A regular user does not seem to have write permissions on /proc/self/oom_score_adj. Can

Re: [dev] [slock] Configure OOM killer as non-root

2014-07-08 Thread Danilo
Oh, never mind that stupid question. Sorry about bothering you, when setting the suid bit I forgot to change the owner to root, so of course that didn't help... Have a nice day, Danilo Am Di, 8. Jul 2014, um 11:42, schrieb Danilo: Hi all In commit ba3acfc, a patch has been applied to

Re: [dev] [slock] Configure OOM killer as non-root

2014-07-08 Thread FRIGN
On Tue, 08 Jul 2014 12:04:29 +0200 Danilo m...@dbrgn.ch wrote: Oh, never mind that stupid question. Sorry about bothering you, when setting the suid bit I forgot to change the owner to root, so of course that didn't help... Hey Danilo, I ran into that issue, too, when I wrote the patch to

Re: [dev] [slock] Configure OOM killer as non-root

2014-07-08 Thread Amadeus Folego
Hi FRIGN, Danilo, I also can't use it as non-root, how did you solve it? Thanks, Amadeus. On Tue, Jul 08, 2014 at 03:16:33PM +0200, FRIGN wrote: On Tue, 08 Jul 2014 12:04:29 +0200 Danilo m...@dbrgn.ch wrote: Oh, never mind that stupid question. Sorry about bothering you, when setting

Re: [dev] [slock] Configure OOM killer as non-root

2014-07-08 Thread Danilo
Hi Amadeus Am Di, 8. Jul 2014, um 16:08, schrieb Amadeus Folego: I also can't use it as non-root, how did you solve it? You need to change the owner of the binary to root and set the suid bit: $ sudo chown root slock $ sudo chmod u+s slock If you use make install, this happens automatically.

Re: [dev] [slock] Configure OOM killer as non-root

2014-07-08 Thread Amadeus Folego
Oh, Thanks! I did not know about the make install thing, I was just building it. On Tue, Jul 08, 2014 at 04:19:41PM +0200, Danilo wrote: Hi Amadeus Am Di, 8. Jul 2014, um 16:08, schrieb Amadeus Folego: I also can't use it as non-root, how did you solve it? You need to change the owner