Re: Can't make Directory in /sys/fs/cgroup as SU

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/23/2010 11:56 AM, valent.turkovic@xxxxxxxxx wrote:
> On Fri, Nov 19, 2010 at 8:27 PM, Konstantin Svist<fry.kun@xxxxxxxxx>  wrote:
>> Try this one, instead (mostly from http://lkml.org/lkml/2010/11/16/413)
>>
>> add to .bashrc:
>>
>> if [ "$PS1" ] ; then
>>          mkdir -m 0700 -p /cgroup/cpu/user/$$
>>          echo 1>  /cgroup/cpu/user/$$/notify_on_release
>>          echo $$>  /cgroup/cpu/user/$$/tasks
>> fi
>>
>> create /bin/rmcgroup:
>>
>> #!/bin/bash
>> rmdir /cgroup/cpu/$1
>>
>> add to /etc/rc.local:
>>
>> mount -t cgroup -o cpu none /cgroup/cpu
>> mkdir -p -m 0777 /cgroup/cpu/user
>> echo "/bin/rmcgroup">  /cgroup/cpu/release_agent
>
> Should I edit .bashrc of root user or from my standard user account?
>
> I try to use  "mkdir -m 0700 -p /cgroup/cpu/user/$$" as standard user
> but as expected don't have privileges to write in / directory :(


The 3 lines added to /etc/rc.local require a reboot to take effect.
Or you can also run those 3 lines as root if you don't want to reboot. 
Although, without a reboot, only new TTY sessions will be grouped.

HTH

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux