Showing posts with label sudo. Show all posts
Showing posts with label sudo. Show all posts

2013-04-07

Default Sudo lecture

Here is a standard Sudo lecture, which can be seen at the user's first sudo run time (the following is an unmodified quote extracted from the sudo-$VERSION/plugins/sudoers/check.c source file found in the original sudo 1.8.6p7 source tarball):
#define DEFAULT_LECTURE "\n" \
    "We trust you have received the usual lecture from the local System\n" \
    "Administrator. It usually boils down to these three things:\n\n" \
    "    #1) Respect the privacy of others.\n" \
    "    #2) Think before you type.\n" \
    "    #3) With great power comes great responsibility.\n\n"
References:
  1. Sudo Main Page

2012-12-29

HOWTO: fix gksu not accepting your password

Sometimes you can get into a situation when gksu (or any application dependent on this GTK+ su frontend) doesn't accept your password (while gksudo may work OK).

It can be caused by incorrect gksu settings; to correct the situation:
  1. execute gksu-properties (without any arguments), so the "Privilege granting preferences" dialog window should pop up;
  2. select the correct authentication mode from the drop-down list:
    • su, if the system has an active root user with password;
    • sudo, if there's no active root user, and the superuser privileges are granted to a normal user through the use of sudo;
  3. close the settings window;
  4. finally, try to execute some gksu-dependent stuff to test it.