Setting defaults for new users on a Linux system.

Setting defaults for new users on a Linux system To set defaults for new users on your Linux system, the /etc/skel folder will come into play. You may place the .bash_profile, .bashrc & .bash_logout files that set defaults for the user such as the BASH shell prompt, and the logout…

Read More

How to enable sudo on your Linux system with the visudo command.

The visudo command for Linux allows a user to edit the sudoers file and change permissions for users on the system. Open the sudoers file this way. NEVER edit it with a standard text editor. ┌─[jason@neo]─[~] └──╼ $su Password: root@neo:/home/jason# visudo┌─[jason@neo]─[~] └──╼ $su Password: root@neo:/home/jason# visudo This is the result…

Read More

Send a message to logged in Linux users and other nice tricks.

To send a message to logged in Linux users with the wall command, just open it and type a message. Then press ^D to send it. jason$ wall Hi   Broadcast message from jason@jason-desktop (pts/0) (Sat Aug 27 22:24:05 2016):   Hijason$ wall Hi Broadcast message from jason@jason-desktop (pts/0) (Sat…

Read More

Create a new group on Linux and add a new user to it easily.

To add a new group to a Linux system, enter this command as root. root@neo:/home/jason# groupadd deptroot@neo:/home/jason# groupadd dept Then, create our new user with this command. root@neo:/home/jason# useradd -m -g dept -d /home/user -s /bin/bash userroot@neo:/home/jason# useradd -m -g dept -d /home/user -s /bin/bash user Now our user is…

Read More

Different ways to get user and system information on Linux.

The who command on Linux and UNIX systems will list all currently logged in users on your system. jason@darknet:~$ who -Htu NAME LINE TIME IDLE PID COMMENT jason :0 2016-02-13 13:43 ? 1895 (:0) jason tty2 2016-02-13 13:43 00:01 2164 jason pts/0 2016-02-13 13:43 . 2178 (:0.0)jason@darknet:~$ who -Htu NAME…

Read More

Some useful Windows commands to use in the cmd window. Get information about your user.

This command lists the information about your user. C:\Users\homer>net user Administrator User name Administrator Full Name Comment Built-in account for administering the computer/domain User’s comment Country code 000 (System Default) Account active No Account expires Never   Password last set 11/2/2006 11:08:15 PM Password expires Never Password changeable 11/2/2006 11:08:15…

Read More

Viewing information about your user on Linux.

View information about your user on a Linux system The groups command displays the list of groups that your user is a member of. [neo@deusexmachina]:~> groups neo cdrom floppy audio dip video plugdev bluetooth scanner netdev[neo@deusexmachina]:~> groups neo cdrom floppy audio dip video plugdev bluetooth scanner netdev Using the id…

Read More