A very useful script to create a bunch of user accounts from an array.
A nice script to generate a few Linux user accounts from a script.
A nice script to generate a few Linux user accounts from a script.
How to use Systemd to get user information very easily. List user sessions.
How to get information about users on a Linux system easily.
Some useful tips and tricks for using Wireshark on your network.
How to use Wireshark to list all browsers and operating systems on a LAN. This is very interesting.
Getting started with Linux can be tricky, here are some guides and information to help out new users.
Some suggestions for new users of Linux and thoughts on modern Linux distributions. Linux is very annoying in various ways.
Adding a new user on Linux is very easy, this can be done with the groupadd and useradd commands. I am adding a new user group to Linux and then adding the new user to it. Firstly, add the new user group. jason@jason-Lenovo-H50-55:~$ sudo groupadd -g 1001 cudauserjason@jason-Lenovo-H50-55:~$ sudo groupadd -g 1001 cudauser Then we … Read more
This simple command-line will create a new user on Linux named test5. ┌──[[email protected]]─[~] └──╼ ╼ $ sudo useradd test5 -m -K PASS_MAX_DAYS=5 -K PASS_WARN_AGE=3 -K LOGIN_RETRIES=1┌──[[email protected]]─[~] └──╼ ╼ $ sudo useradd test5 -m -K PASS_MAX_DAYS=5 -K PASS_WARN_AGE=3 -K LOGIN_RETRIES=1 Then set a password for the new user. ┌──[[email protected]]─[~] └──╼ ╼ $ sudo passwd test5 New … Read more
How to mount a partition on Linux and make your old home directory accessible to your user To add a directory in a mounted drive as a folder accessible by a normal user, use this command to change the ownership of all files and directories to that of your current user. [root@darkstar Videos]# chown -R … Read more
This is an interesting command to view your command history when you are using Bash. ┌──[[email protected]]─[~] └──╼ ╼ $ hash hits command 1 /usr/bin/gethostip 1 /usr/bin/sudo┌──[[email protected]]─[~] └──╼ ╼ $ hash hits command 1 /usr/bin/gethostip 1 /usr/bin/sudo This command is a Bash shell built-in command. If you are using the tcsh or zsh shells; this command … Read more
Block Internet access for a specific user or user group on Linux. This works very well using iptables. A potentially very useful Linux tip.
This is how to add a new user account on your Ubuntu Linux machine. This is very simple using the useradd command. Useradd takes parameters instead of asking for details like adduser, this means it is better to use in a script. 4.4 Wed Feb 12 jason@Yog-Sothoth 0: $ sudo useradd test6 -m -s /bin/bash … Read more
It is easy to get comprehensive information about a user on Linux by using the command line. I will show you how to see password expiry information and other details. This example shows the use of the chage command to retrieve password expiry information. 4.4 Mon Jan 13 jason@Yog-Sothoth 0: $ sudo chage -l jason … Read more
What is the difference between a hard link and a symbolic link? The output below shows the process of creating firstly a hard link and then a symbolic link. The hard link appears exactly the same as the original file; but the symbolic link displays as a link from the symlink to the original file. … Read more
The default user account settings may easily be changed with the command line, here is an example. Changing the default login shell with the command line. 4.4 Mon Jul 22 jason@Yog-Sothoth 0: $ sudo useradd -D -s /bin/bash4.4 Mon Jul 22 jason@Yog-Sothoth 0: $ sudo useradd -D -s /bin/bash Get the default settings like this, … Read more
This is an easy way to get information about running services on your Ubuntu machine. I am after user services, so I am using systemctl to get this information. This is very easy. Get information about a certain service. jason@kaio:~$ systemctl status –user pulseaudio ● pulseaudio.service – Sound Service Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; disabled; vendor preset: … Read more
Very useful information for a new Linux user Very comprehensive .bashrc file for your Linux system. http://securitronlinux.com/debian-testing/very-comprehensive-bashrc-file-for-your-linux-system/. How to generate a random password using the command line. http://securitronlinux.com/bejiitaswrath/how-to-generate-a-random-password-using-the-command-line/. UNIX & Linux PDF Ebooks. Many useful Linux and BSD E-Books available. learn all you can about Linux by reading these useful books. http://securitronlinux.com/nix-pdfs/. Setting defaults for … Read more
To get information about Linux users with the shell, give these examples a go. Get a listing of all /home folders on Linux. jason@Yog-Sothoth:~/Documents$ sudo gawk -F: ‘{ print $6 }’ /etc/passwd | grep /home /home/syslog /home/jason /home/justin /home/danieljason@Yog-Sothoth:~/Documents$ sudo gawk -F: ‘{ print $6 }’ /etc/passwd | grep /home /home/syslog /home/jason /home/justin /home/daniel Count … Read more
Linux User Groups India There are many Linux user groups, (LUG) in India. They meetup and discuss various open-source software topics. This is a great way to meet other Linux users and learn from others. One large Linux User Group in India is the Indian Linux Users Group. http://linux-delhi.org/. Their website hosts many tips and … Read more