Skip to content

Shkodenko Taras

web development and system administration of Linux

  • PHP Mentorship Program
  • Privacy Policy
  • Security Consulting
  • About

Get list of Linux users with shell access

July 15, 2013July 15, 2013 ~ tadmin

To get list of Linux users with shell access (/bin/sh, /bin/bash) the following command can be used:

# cat /etc/passwd |egrep "/bin/.*sh" |cut -f1 -d':' |sort

Share This Blog Post

Posted in Linux bashshshell

Published by tadmin

View all posts by tadmin

Post navigation

‹ PreviousShell script to remove Plesk health monitor package for RPM-based Linux RHEL CentOS Fedora etc
Next ›PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0

Support My Work!

Categories

  • Apache
  • CMS
  • Databases
  • Docker
  • Drupal
  • Git
  • Laravel
  • Lean
  • Linux
  • macOs
  • Magento
  • MySQL | MariaDB
  • Nginx
  • PHP
  • Pimcore CMS
  • Plesk
  • PostgreSQL
  • Server configuration
  • Symfony
  • Uncategorized
  • WordPress
  • Yii2
DigitalOcean Referral Badge

Tags

.htaccess Apache archive bash certificate composer diff docker Drupal ffmpeg git git best practices grep IPTables Laravel Laravel best practices Laravel tips Linux Linux commands Linux file management Linux system administration MySQL mysqldump Odin openssl PHP PHP development Pimcore Plesk PostgreSQL ProFTPD script Security sed shell software development ssh ssl Symfony system administration tar ubuntu web development wordpress zip

Donations

You can support this project if you like what I'm writing

Recent Posts

  • How to Back Up a MySQL Database in Docker (MySQL 8.4)
  • How to Find Files Modified Between Specific Dates in Linux Using the find Command
  • How to Set Up Passwordless SSH Authentication with ssh-copy-id in Linux
  • How to Display a Configuration File Without Empty Lines and Comments in Linux
  • Happy 35-th Birthday, Linux: The Operating System That Changed the World
  • What does sed -n ‘BEGIN,ENDp’ /path/to/file.txt Linux shell command do?
  • PHP 31-th Anniversary — A Quick Look at the Evolution of the Language Code from Version 7.4 to 8.4

Search

  • GitHub
  • YouTube
  • Telegram
  • Patreon
  • Instagram
  • Pinterest
Register on NIC.UA get permanent 10% discount
Proudly powered by WordPress ~ Theme: Shcom-child by Taras Shkodenko.