Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

capabilities

How does ping work on Fedora without setuid and capabilities?

August 11, 2022 by Magenaut

As far as I know, ping needs to create a raw socket (which needs either root access or cap_net_raw capabilities).

Categories Q&A, Unix & Linux Tags capabilities, security, setuid Leave a comment

How do I use capsh: I am trying to run an unprivileged ping, with minimal capabilities

August 10, 2022 by Magenaut

I am experimenting with capabilities, on Debian Gnu/Linux.

Categories Q&A, Unix & Linux Tags capabilities Leave a comment

How to prevent a process from writing files

August 8, 2022 by Magenaut

I want to run a command on Linux in a way that it cannot create or open any files to write. It should still be able to read files as normal (so an empty chroot is not an option), and still be able to write to files already open (especially stdout).

Categories Q&A, Unix & Linux Tags apparmor, capabilities, linux, security, selinux Leave a comment

Select other roles as custom post authors

August 6, 2022 by Magenaut

I created a custom post type (“Organization”), and I’ve also created a custom user role (“Representative”). Also, I’ve ensured that the Representative role has read/edit/create/publish post capabilities.

Categories Q&A, Wordpress Tags author, capabilities, custom-post-types, user-roles Leave a comment

How to keep the capability of users and disable Gutenberg editor in WordPress?

August 6, 2022 by Magenaut

I disabled Gutenberg web builder/ editor using the following code:

Categories Q&A, Wordpress Tags block-editor, capabilities, functions, php, user-roles Leave a comment

How to add custom JavaScript in functions?

August 6, 2022 by Magenaut

I want to write some JavaScript and want to assign that to a custom capability, I explored a lot but unfortunately none of them worked, any help will be appriciated.

Categories Q&A, Wordpress Tags capabilities, filters, functions, user-roles Leave a comment

How to write conditions based on user capabilities not on user role?

August 6, 2022 by Magenaut

How to write conditions on capabilities not on user role?

Categories Q&A, Wordpress Tags capabilities, user-roles Leave a comment

Logout users upon login, based on caps/role?

August 6, 2022 by Magenaut

To reduce spam registrations, users are assigned the pending role until they’re vetted (at which point they’re assigned the subscriber role). The pending role has no capabilities. When pending users log in, I want to log them out immediately and direct them to a page with an explanation. First, I tried the following:

Categories Q&A, Wordpress Tags capabilities, login, logout, plugin-development, user-roles Leave a comment

How to get all capabilities

August 5, 2022 by Magenaut

how to get all capabilities regardless of user roles? so far I am only seeing tutorial of how to get capabilities per user. I want to list all available capabilities in one page.

Categories Q&A, Wordpress Tags capabilities Leave a comment

current_user_can() causing critical error

August 5, 2022 by Magenaut

I am writing a function to add a link to the Media Library in the admin menu on front end:

Categories Q&A, Wordpress Tags capabilities, users Leave a comment
Older posts
Page1 Page2 … Page5 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress