Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

List sudo users in centos

Solution 1:

Try this:

for USER in `cut -d: -f1 /etc/passwd`
do
  sudo -U $USER -l
done

Solution 2:

What is wrong with sudo cat /etc/sudoers and maybe getent group <groupname> to get usernames of group members?

Tags:

Sudo

Centos5

Users

Related

Can I mod rewrite to a different document root? How to stop Sendmail sending mail from IPv6 instead of IPv4 Possible to disable "You have new mail in /var/mail/root"? How can I configure netcat (or some other stock linux utility) to listen on a specific port on a secondary IP address? ubuntu + nginx + uwsgi + django No Python application found Open a new cmd console on Windows 2012 Server core after closing the last one? Gratuitous CRLF in Subject: line - why is it there, and is it legal? How effective is LSI CacheCade SSD storage tiering? Both servers running keepalived become master and have a same Virtual IP How does one install a custom CA certificate on CentOS? Why can't I ping my freshly set up amazon web service EC2 instance? What does zfs receive -F do?

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy