Skip to content
Code Utility
  • Home
  • Donate
  • About
  • Codes
    • Ada
    • Agency Insight
    • AMPL
    • Android
    • Apple
    • Arduino
    • ASP
    • AWK
    • Bash
    • C
    • C#
    • C++
    • Clojure
    • Codes
    • ColdFusion
    • D
    • Dart
    • Erlang
    • F#
    • Falcon
    • Forth
    • Groovy
    • Haskell
    • INTERCAL
    • iOS
    • JavaScript
    • Kotlin
    • Linux
    • Lua
    • MATLAB
    • Modula-3
    • MySQL
    • Objective-C
    • Perl
    • Python
    • Scala
    • Sh
    • Smalltalk-80
    • Tcl
    • Windows
    • YACC
  • Linux
  • Python
  • Windows
  • Support
  • Web Stories

Users

Drupal – Altering the admin/content form

The bad news is that having inspected the code, the form alter layer is the only place to really do …

Read more

Categories Codes Tags 7, nodes, Users

Allow user1 to “su – user2” without password

Add the following lines underneath the pam_rootok.so line in your /etc/pam.d/su: auth [success=ignore default=1] pam_succeed_if.so user = martin-test auth sufficient …

Read more

Categories Bash, Linux Tags authentication, Pam, Password, Users

Allow paswordless user to change to another passwordless user

If what you want is to allow dev to run arbitrary commands as tomcat, then don’t bother with su, stick …

Read more

Categories Codes Tags Not Root User, security, Su, sudo, Users

WordPress – Allowing user to edit only certain pages

The first thing to do to implements such task is to be able to recognise which page an user can …

Read more

Categories Codes Tags Pages, Users

WordPress – Allowing users to edit only their page and nobody else’s

You can add this to your functions.php file in your template to allow the user to edit pages that they …

Read more

Categories Codes Tags User Access, user-roles, Users

WordPress – Admin Page Redirect

/** * Redirect admin pages. * * Redirect specific admin page to another specific admin page. * * @return void …

Read more

Categories Codes Tags admin, redirect, Users, Wp Admin, Wp Redirect

adduser says user exists when the user does not exist

Is there any reason you are specifying the uid rather than letting the system choose one for you? You can …

Read more

Categories Codes Tags Adduser, Users

WordPress – Add Custom User Capabilities Before or After the Custom User Role has Been Added?

There’s a reason why add_role() has the $capabilities as 3rd parameter. First some insights on what happens, when you use …

Read more

Categories Codes Tags Capabilities, permissions, Plugin Development, user-roles, Users

WordPress – Add new user : make the fields First Name and Last name required

If you were looking to make the fields required in the WordPress admin form for adding new user as i …

Read more

Categories JavaScript Tags forms, Functions, permissions, Users

WordPress – Adding fields to the “Add New User” screen in the dashboard

user_new_form is the hook that can do the magic here. function custom_user_profile_fields($user){ ?> <h3>Extra profile information</h3> <table class=”form-table”> <tr> <th><label …

Read more

Categories Codes Tags Functions, User Meta, User Registration, Users, Wp Admin
Post navigation
Older posts
Page1 Page2 Next →

More Answers

  • ruby – Rails db:setup aborted because wrong number of argument – Code Utility
  • javascript – WebStorm Run JS File with Stdin argument – Code Utility
  • Page not found – Code Utility
  • sql – Postgres trigger refreshing a materialized view not working after some time – Code Utility
  • ssl – Where does the dtls domain args in webrtc come from? – Code Utility
  • Azure Storage Account cannot create new or delete directory – Code Utility
  • java – new data source and connection pool are not displayed in the JDBC resources and Connection pool – Code Utility
  • python – How to create a for loop for OneHotEncoder – Code Utility
  • asp.net core – Ocelot – Add Token to Downstream Url – Code Utility
  • Page not found – Code Utility

.net amazon-web-services android android-studio angular arrays azure c# css dart dataframe django docker excel firebase flutter git html ios java javascript jquery json kotlin laravel linux mysql node.js pandas php postgresql python python-3.x r react-native reactjs spring spring-boot sql sql-server string swift typescript vue.js windows

  • About
  • Privacy Policy
  • Terms and Conditions
  • Use of Cookies
  • Contact
  • Web Stories
© 2020 - 2022 Code Utility