How to block, lock, or deny access to a user into Linux
If you need to block a user and do not allow him / her to log into your Linux system, maybe because she is a user who stopped working at your organization, or because she was moved to other department, or any other reason.
I’m going to show how to do it temporarily as to do it permanent you just need to erase the user account.
Nginx | Create custom 404 page not found error page
I’m working with Nginx since more than a year ago, it is an extremely fast web server, specially to work in front of Apache serving static content.
Well, if you need to customize your 404 (file not found) error page in Nginx, you are in the right place.
How to find which process is eating RAM in Linux
If you are running out of RAM on your Linux system, you will want to find the culprit in order to solve the problem, either by reconfiguring the RAM-hungry application or by stopping it.
sudoers file, is one of the most visited articles at Go2Linux.org, so I’m going to expand a little bit that article, by adding this small tips about sudoers file and sudo command.
How to share files and printers with samba Linux for Windows
Sharing files and printers with Windows machines is something that sooner or later you will have to do. If you are using Linux as you only operating system, you really a great chance to have to share something with the windows universe, unfortunately they are more than us.
But do not worry Samba is here to save you.
We will see here a simple yet effective samba configuration file, that will give you a good idea about how it works, and how you can share files and printers between Linux and Windows.
How to install Linux Kernel headers on Debian or Ubuntu
Since a long time not using it I tried to use VMware again today with my Debian Squeeze, and as the kernel have been upgraded, I had to reconfigure it by running
/usr/bin/vmware-config.pl
But it could not run, because of I had no kernel headers, it complained, saying this:
VirtualBox dlopen(“/usr/lib/virtualbox/VirtualBox.so”,) failed: /usr/lib/libGL.so.1
I have installed VirtualBox on Debian Squeeze and, once installed, when I tried to run it, I got this error:
Linux crontab, cronjob Syntax, How to and tips
Cron is a time-based job scheduler in Unix-like computer operating systems. The name cron comes from the word “chronos”, Greek for “time”.1 Cron enables users to schedule jobs (commands or shell scripts) to run periodically at certain times or dates. It is commonly used to automate system maintenance or administration, though its general-purpose nature means that it can be used for other purposes, such as connecting to the Internet and downloading email
Cron is driven by a crontab (cron table) file, a configuration file that specifies shell commands to run periodically on a given schedule. The crontab files are stored where the lists of jobs and other instructions to the cron daemon are kept. Users can have their own individual crontab files and often there is a system wide crontab file (usually in /etc or a subdirectory of /etc) which only system administrators can edit.
How to change banner / welcome message, ssh server shows at login time.
Opensshd has a nice feature, that lets you present a welcome message to users who are login in to the Linux server. This feature is useful if you need to present a warning or any other message to users before they log into the system.
How to execute commands when you log out .logout file
I like all about automation, and who no?. How about automatically run commands when you logout from a shell session in Linux.
You can use this to erase temp files you may have use during your session, or anything you may want to execute each time you logout from your Linux Operating system.
setsid how to keep commands running after you exit shell prompt
If you need to run any program or command, and then leave the shell session or ssh session, but be sure to leave the command running behind you, then you can use setsid.
This article was first posted on Guillermo's opinions
No comments:
Post a Comment