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

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

 



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 :(
-- 
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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux