MESSAGE
DATE | 2022-05-04 |
FROM | From: "nixCraft: Linux Tips, Hacks, Tutorials,
|
SUBJECT | Subject: [Hangout - NYLXS] nixCraft Linux / UNIX Newsletter
|
From hangout-bounces-at-nylxs.com Wed May 4 23:07:55 2022 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: from www2.mrbrklyn.com (www2.mrbrklyn.com [96.57.23.82]) by mrbrklyn.com (Postfix) with ESMTP id 53EE7164021; Wed, 4 May 2022 23:07:49 -0400 (EDT) X-Original-To: hangout-at-www2.mrbrklyn.com Delivered-To: hangout-at-www2.mrbrklyn.com Received: by mrbrklyn.com (Postfix, from userid 1000) id 663BD16401B; Wed, 4 May 2022 23:07:42 -0400 (EDT) Resent-From: Ruben Safir Resent-Date: Wed, 4 May 2022 23:07:42 -0400 Resent-Message-ID: <20220505030742.GA24594-at-www2.mrbrklyn.com> Resent-To: hangout-at-mrbrklyn.com X-Original-To: ruben-at-mrbrklyn.com Delivered-To: ruben-at-mrbrklyn.com Received: from mail-io1-f72.google.com (mail-io1-f72.google.com [209.85.166.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (not verified)) by mrbrklyn.com (Postfix) with ESMTPS id DF176164017 for ; Wed, 4 May 2022 17:05:28 -0400 (EDT) Received: by mail-io1-f72.google.com with SMTP id m205-20020a6b3fd6000000b006586ca958d2so1730133ioa.22 for ; Wed, 04 May 2022 14:05:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:reply-to:sender:precedence:list-unsubscribe:message-id :date:subject:from:to; bh=+DiMuhBKu8kWQV9daT4cQnBkglwkqZqWLHNKwY/Onvg=; b=jyH76bKW+GiETV0gFv+qg4b9nrJb8X16slzp5kUNmL/VYa9Crqn4fmqamrWS0Gc1JA vwwUQCDYr3dPCnM4ej66rglUDlp3+siACgqztiPLVbnQEjrIbVSMgsp5BROkwd/r0KwC Xxwt46U0q91c29hO5dcjxoQ9qkBag4S0vDxE6J2l9XuS2Whr3tjnl7AXRARi0dAB9BJw jHA/P8CUSR79fvveKNmJgVmn+gnyTgLyQV+4lbrfvKRZmmmRfiCzKSCR75ngVH9xyz36 tYCS0TVhPNuZ8x+FIPJJtL1uWuygqenVWnMprBmgkf8BWYGMg513GvrUA+aq8nBxMrQ4 Hqvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:reply-to:sender:precedence :list-unsubscribe:message-id:date:subject:from:to; bh=+DiMuhBKu8kWQV9daT4cQnBkglwkqZqWLHNKwY/Onvg=; b=hfbsNY+EaO/geSnORKcTqNf5PVPD/xkzCXQcVCya36qxRiZ+PaxDct9/K3juemVjDb KGibzZHNhaq5LMCNIin4mViAIQfWPb+/9+cWH0oZcvdtK8llZRjCXQQ8TvYQL68YdOcF GKcEcWKr2DB6onwYA+6wpYKT+VsoP5Mxq072LKViaB1QLvZnNfILKS9UPOhasK8qMYTy qOUIUEjshvszh1kTEldYh7fzSPhGvs3TNTcaS+2HJc9+A7bAqhlSNRSOx42f0IJ9SBWS xX0b2QnU2QJDxkcWZ6Y8ja5yyGyWpZjqT6EERuhrpvSSho1axSBanBrnFipAfe2AU0kE sHnw== X-Gm-Message-State: AOAM530q16mNQ6mvz/9qs/vO4ksr8q7o2LGPQXBtT3b5V8NomgfaY5P5 FboEZ4GWiXjauDX/J/1aKjraprwGPrGXOLGJu0KUcXg= MIME-Version: 1.0 X-Received: by 2002:a92:b305:0:b0:2c8:267b:7e25 with SMTP id p5-20020a92b305000000b002c8267b7e25mt9572813ilh.312.1651698327560; Wed, 04 May 2022 14:05:27 -0700 (PDT) Precedence: bulk Message-ID: <0000000000001724f705de35fc1b-at-google.com> Date: Wed, 04 May 2022 21:05:27 +0000 From: "nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format (RSS/FEED)" To: ruben-at-mrbrklyn.com X-UID: 92600 Subject: [Hangout - NYLXS] nixCraft Linux / UNIX Newsletter X-BeenThere: hangout-at-nylxs.com X-Mailman-Version: 2.1.30rc1 List-Id: NYLXS Tech Talk and Politics List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: "nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format \(RSS/FEED\)" Content-Type: multipart/mixed; boundary="===============0381983169==" Errors-To: hangout-bounces-at-nylxs.com Sender: "Hangout"
--===============0381983169== Content-Type: multipart/alternative; boundary="0000000000001bd4db05de35fc35"
--0000000000001bd4db05de35fc35 Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes
nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format (RSS/FEED)
/////////////////////////////////////////// Understanding the /etc/shells file
Posted: 04 May 2022 01:31 PM PDT https://bash.cyberciti.biz/guide//etc/shells
{Updated} Did you know? Many Linux system services and login under Linux or Unix OS consult /etc/shells file. It contains a list of login shells on the system. Applications use this file to determine whether a shell is valid. Setting the wrong shell path will deny login. The post Understanding the /etc/shells file appeared first on nixCraft.
/////////////////////////////////////////// How to make disk image with dd on Linux or Unix
Posted: 04 May 2022 01:26 PM PDT https://www.cyberciti.biz/faq/unix-linux-dd-create-make-disk-image-commands/
{Updated} How to make disk image with dd on a Linux or Unix for backup and restore purposes The post How to make disk image with dd on Linux or Unix appeared first on nixCraft.
/////////////////////////////////////////// A cautionary tale about locking Linux & FreeBSD user accounts
Posted: 04 May 2022 12:52 PM PDT https://www.cyberciti.biz/networking/a-cautionary-tale-about-locking-linux-freebsd-user-accounts/
Like every other solo developer and sysadmin, I do stuff using ssh. Some stuff is automated using scripts, and others require ssh login. For example, one of my scripts logs into my Linux and FreeBSD server using public ssh keys and does a particular type of work for me. I have a dedicated user account for that purpose called autovivek on Raspberry PI 4 for Ansible and custom script automation. Here is how it works:
{rpi4:~}$ ssh autovivek-at-192.168.2.17 /path/to/taks1
In other cases, it sends scripts and then executes them on the remote server named 192.168.2.17. Sounds good, right? So, when I need to make backups and other tasks, I lock down the autovivek user account on the server so that it will not modify data on disks. For example, here is how to lock down a user account:
{linux-server:~}$ sudo usermod -L -e 1 autovivek
## OR ##
{freebsd-server:~}$ sudo pw lock -n autovivek A cautionary tale about locking Linux and FreeBSD user accounts
However, I soon discovered that a user named autovivek can still log into the server and make changes despite being locked down on both Linux and FreeBSD servers.
Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit
The post A cautionary tale about locking Linux & FreeBSD user accounts appeared first on nixCraft.
-- You are subscribed to email updates from "nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format (RSS/FEED)." To stop receiving these emails, you may unsubscribe now: https://feedburner.google.com/fb/a/mailunsubscribe?k=Mogcj77AGstNQKqpfoHRvb2hluE
Email delivery powered by Google. Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States
--0000000000001bd4db05de35fc35 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
TF-8"> nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Fo= rmat (RSS/FEED) =3D"margin:0 2em;font-family:Arial, Helvetica, sans-serif;line-height:140%;= font-size:13px;color:#000000;"> tica, sans-serif;font-size:18px;" href=3D"https://bash.cyberciti.biz/guide/= /etc/shells">Understanding the /etc/shells file
3px 0;font-family:Arial, Helvetica, sans-serif;line-height:140%;font-size:1= 3px;"> Posted: 04 May 2022 01:31 PM PDT , sans-serif;line-height:140%;font-size:13px;color:#000000;"> "0" src=3D"https://bash.cyberciti.biz/uploads/bashwiki/thumb/9/93/Understan= ding_Linux_and_Unix_-etc-shells_file.png/800px-Understanding_Linux_and_Unix= _-etc-shells_file.png"> { Updated} Did you know? M= any Linux system services and login under Linux or Unix OS consult /etc/she= lls file. It contains a list of login shells on the system. Applications us= e this file to determine whether a shell is valid. Setting the wrong shell = path will deny login. The post de//etc/shells">Understanding the /etc/shells file appeared first on href=3D"https://www.cyberciti.biz/">nixCraft. | tica, sans-serif;font-size:18px;" href=3D"https://www.cyberciti.biz/faq/uni= x-linux-dd-create-make-disk-image-commands/">How to make disk image with dd= on Linux or Unix
3px 0;font-family:Arial, Helvetica, sans-serif;line-height:140%;font-size:1= 3px;"> Posted: 04 May 2022 01:26 PM PDT | tica, sans-serif;font-size:18px;" href=3D"https://www.cyberciti.biz/network= ing/a-cautionary-tale-about-locking-linux-freebsd-user-accounts/">A caution= ary tale about locking Linux & FreeBSD user accounts
3px 0;font-family:Arial, Helvetica, sans-serif;line-height:140%;font-size:1= 3px;"> Posted: 04 May 2022 12:52 PM PDT , sans-serif;line-height:140%;font-size:13px;color:#000000;"> |
--0000000000001bd4db05de35fc35--
--===============0381983169== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline
_______________________________________________ Hangout mailing list Hangout-at-nylxs.com http://lists.mrbrklyn.com/mailman/listinfo/hangout
--===============0381983169==--
--===============0381983169== Content-Type: multipart/alternative; boundary="0000000000001bd4db05de35fc35"
--0000000000001bd4db05de35fc35 Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes
nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format (RSS/FEED)
/////////////////////////////////////////// Understanding the /etc/shells file
Posted: 04 May 2022 01:31 PM PDT https://bash.cyberciti.biz/guide//etc/shells
{Updated} Did you know? Many Linux system services and login under Linux or Unix OS consult /etc/shells file. It contains a list of login shells on the system. Applications use this file to determine whether a shell is valid. Setting the wrong shell path will deny login. The post Understanding the /etc/shells file appeared first on nixCraft.
/////////////////////////////////////////// How to make disk image with dd on Linux or Unix
Posted: 04 May 2022 01:26 PM PDT https://www.cyberciti.biz/faq/unix-linux-dd-create-make-disk-image-commands/
{Updated} How to make disk image with dd on a Linux or Unix for backup and restore purposes The post How to make disk image with dd on Linux or Unix appeared first on nixCraft.
/////////////////////////////////////////// A cautionary tale about locking Linux & FreeBSD user accounts
Posted: 04 May 2022 12:52 PM PDT https://www.cyberciti.biz/networking/a-cautionary-tale-about-locking-linux-freebsd-user-accounts/
Like every other solo developer and sysadmin, I do stuff using ssh. Some stuff is automated using scripts, and others require ssh login. For example, one of my scripts logs into my Linux and FreeBSD server using public ssh keys and does a particular type of work for me. I have a dedicated user account for that purpose called autovivek on Raspberry PI 4 for Ansible and custom script automation. Here is how it works:
{rpi4:~}$ ssh autovivek-at-192.168.2.17 /path/to/taks1
In other cases, it sends scripts and then executes them on the remote server named 192.168.2.17. Sounds good, right? So, when I need to make backups and other tasks, I lock down the autovivek user account on the server so that it will not modify data on disks. For example, here is how to lock down a user account:
{linux-server:~}$ sudo usermod -L -e 1 autovivek
## OR ##
{freebsd-server:~}$ sudo pw lock -n autovivek A cautionary tale about locking Linux and FreeBSD user accounts
However, I soon discovered that a user named autovivek can still log into the server and make changes despite being locked down on both Linux and FreeBSD servers.
Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit
The post A cautionary tale about locking Linux & FreeBSD user accounts appeared first on nixCraft.
-- You are subscribed to email updates from "nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format (RSS/FEED)." To stop receiving these emails, you may unsubscribe now: https://feedburner.google.com/fb/a/mailunsubscribe?k=Mogcj77AGstNQKqpfoHRvb2hluE
Email delivery powered by Google. Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States
--0000000000001bd4db05de35fc35 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
TF-8"> nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Fo= rmat (RSS/FEED) =3D"margin:0 2em;font-family:Arial, Helvetica, sans-serif;line-height:140%;= font-size:13px;color:#000000;"> tica, sans-serif;font-size:18px;" href=3D"https://bash.cyberciti.biz/guide/= /etc/shells">Understanding the /etc/shells file
3px 0;font-family:Arial, Helvetica, sans-serif;line-height:140%;font-size:1= 3px;"> Posted: 04 May 2022 01:31 PM PDT , sans-serif;line-height:140%;font-size:13px;color:#000000;"> "0" src=3D"https://bash.cyberciti.biz/uploads/bashwiki/thumb/9/93/Understan= ding_Linux_and_Unix_-etc-shells_file.png/800px-Understanding_Linux_and_Unix= _-etc-shells_file.png"> { Updated} Did you know? M= any Linux system services and login under Linux or Unix OS consult /etc/she= lls file. It contains a list of login shells on the system. Applications us= e this file to determine whether a shell is valid. Setting the wrong shell = path will deny login. The post de//etc/shells">Understanding the /etc/shells file appeared first on href=3D"https://www.cyberciti.biz/">nixCraft. | tica, sans-serif;font-size:18px;" href=3D"https://www.cyberciti.biz/faq/uni= x-linux-dd-create-make-disk-image-commands/">How to make disk image with dd= on Linux or Unix
3px 0;font-family:Arial, Helvetica, sans-serif;line-height:140%;font-size:1= 3px;"> Posted: 04 May 2022 01:26 PM PDT | tica, sans-serif;font-size:18px;" href=3D"https://www.cyberciti.biz/network= ing/a-cautionary-tale-about-locking-linux-freebsd-user-accounts/">A caution= ary tale about locking Linux & FreeBSD user accounts
3px 0;font-family:Arial, Helvetica, sans-serif;line-height:140%;font-size:1= 3px;"> Posted: 04 May 2022 12:52 PM PDT , sans-serif;line-height:140%;font-size:13px;color:#000000;"> |
--0000000000001bd4db05de35fc35--
--===============0381983169== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline
_______________________________________________ Hangout mailing list Hangout-at-nylxs.com http://lists.mrbrklyn.com/mailman/listinfo/hangout
--===============0381983169==--
|
|