FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 04-17-2011, 10:21 AM
Sebastian Tarach
 
Default User cannot set process priority nice --10 despite changes in limits.conf

Hello,

I'm trying to allow user hlds to be able to start game server daemon with higher priority. Even though I've added fallowing line in /etc/security/limits.conf

#<domain> <type> <item> <value>
#

#* soft core 0
#root hard core 100000
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#ftp - chroot /ftp
#@student - maxlogins 4

# End of file
hlds - nice -20
I'm still getting

Kod:
starach@debian:/> nice --5 cat logfile
nice: cannot set niceness: Permission deniedWhat could I have done wrong?
 
Old 04-17-2011, 07:43 PM
Jonathan Matthews
 
Default User cannot set process priority nice --10 despite changes in limits.conf

On 17 April 2011 11:21, Sebastian Tarach <starach@gmail.com> wrote:
> Hello,
>
> I'm trying to allow user hlds to be able to start game server daemon with
> higher priority. Even though I've added fallowing line in
> /etc/security/limits.conf
>
> hlds - nice -20
>
> I'm still getting
>
> starach@debian:/> nice --5 cat logfile
> nice: cannot set niceness: Permission denied
>
> What could I have done wrong?

Doesn't look to me like you're running the command as the user you
specified in limits.conf.

Jonathan
--
Jonathan Matthews
London, UK
http://www.jpluscplusm.com/contact.html


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: BANLkTim570oOHX04LbL_QFSsX2wHEHtTdg@mail.gmail.com ">http://lists.debian.org/BANLkTim570oOHX04LbL_QFSsX2wHEHtTdg@mail.gmail.com
 
Old 04-17-2011, 08:28 PM
Sebastian Tarach
 
Default User cannot set process priority nice --10 despite changes in limits.conf

> Doesn't look to me like you're running the command as the user you
> specified in limits.conf.
>
> Jonathan
> --
> Jonathan Matthews
> London, UK
> http://www.jpluscplusm.com/contact.html

You are completely correct but despite my mistake on trying to
reproduce this problem on different machine it still remains.
hlds@gserver:/> nice --5 cat logfile
nice: cannot set niceness: Permission denied


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: BANLkTik41yh59X0shURtB6t7U7oGtmNd=w@mail.gmail.com ">http://lists.debian.org/BANLkTik41yh59X0shURtB6t7U7oGtmNd=w@mail.gmail.com
 

Thread Tools




All times are GMT. The time now is 07:32 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org