Re: [dev] [slock] Configure OOM killer as non-root
-- 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 u+s slock > > If you use "make install", this happens automatically. It would not work with stow though, would it? I use make install PREFIX=/usr/local/stow/slock-$(date "+%Y-%m-%d") cd /usr/local/stow/ stow slock-$(date "+%Y-%m-%d") s.
Re: [dev] [slock] Configure OOM killer as non-root
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 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. > > Cheers, > Danilo >
Re: [dev] [slock] Configure OOM killer as non-root
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. Cheers, Danilo
Re: [dev] [slock] Configure OOM killer as non-root
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 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 fix the > shadow-support in slock. It took a while to debug. > > Cheers > > FRIGN > > -- > FRIGN >
Re: [dev] [slock] Configure OOM killer as non-root
On Tue, 08 Jul 2014 12:04:29 +0200 Danilo 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 fix the shadow-support in slock. It took a while to debug. Cheers FRIGN -- FRIGN
Re: [dev] [slock] Configure OOM killer as non-root
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 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 someone help me > out here? > > Thanks, > Danilo >
[dev] [slock] Configure OOM killer as non-root
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 someone help me out here? Thanks, Danilo