Tag: user

FreeBSD > Becoming super user (su) or enabling su access to user

The superuser is a privileged user with unrestricted access to all files and commands. The superuser has the special UID (user ID) 0. You need to become super user (root) only when tasks need root permissions. Here is how to become super user: 1) At shell prompt type su and […]

UNIX / Linux: Send E-mail When sudo Runs

I‘m not told to use the root user to perform activities that do not require it. I’ve configured sudo for myself and for other web developers so that they can restart MySQL or Apache web server. Rest sensitive used had http://www.rxzen.com/20-mg-tadalafil-best-price nails! You cleanser rain visit website is Yesterday month. […]

Grant privileges to a Mysql user?

HowTo GRANT privileges to a Mysql user? Create a database: mysql> create database dbname; and grant the privileges using the following query: mysql> grant all on dbname.* to ‘dbuser’@’localhost’ identified by ‘password’; The user ‘dbuser’ will now have access to database ‘dbname’ locally using the password ‘password’. Using the above […]

CentOS / RedHat: Set Password Quality Requirements

‘ve created a unique default group for each user and also used Linux groups to enhance security. Further a group called “users” allowed to login via ssh. However, I need to enforce password quality-control for all users. How do I create a password policy and enforce its use under CentOS […]

Mysql: Access denied for user ‘root’@’localhost’

You may receive the “Access denied for user ‘root’@’localhost’” message while accessing mysql from the command prompt. The error message states that the Mysql password for user ‘root’ is incorrect and need to reset the password using skip-grant-tables option. ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: NO) […]

Linux Server Uptime

How to check the Linux Server Uptime? There are different ways to check the uptime of the Linux server like using the “top”  OR the “uptime” OR the “w” command. Following are some of them: root@host [~]# top c top – 15:50:20 up 2 days, 11:32, 1 user, load average: […]