How To Restrict Access To Su Command
- Forums
- Linux Hosting
- How To Restrict Access To Su Command
if you are reading this topic its probably because you want to disable or restrict access to a user for using the su command to gain access to the superuser account. i will show you what file you need to edit [1388], Last Updated: Mon Jun 24, 2024
Webune Support
Wed Mar 31, 2010
1 Comments
485 Visits
if you are reading this topic its probably because you want to disable or restrict access to a user for using the su command to gain access to the superuser account. i will show you what file you need to edit.
the file you will need to edit is the /etc/pam.d/su
you can find the file by listing all the file in the /etc/pam.d/ directory:
# ls /etc/pam.d/
there, you will see the su file, you can edit using your favorite text editor. (like VI for example) i like to use nano instead so you can send this command to edit the su file
# nano /etc/pam.d/su
https://www.webune.com/forums/20100331cchz.html