Add a menu to Right Click Open Files as Root In addition, if your attempting this on a Full Blown Debian installation, you will first need to make sure your user has been added to the sudoers list. An Ubuntu Live CD was used for this tutorial. Systems such as Ubuntu or another Debian based derivative should work. Note: This tutorial assumes your using a Debian based system and will be utilizing nautilus. It is a perfect solution for those that are not completely comfortable using terminal commands. This feature allows the user to navigate their file system and open or edit any file or directory as the root user or admin of the system. For example identify the process listening on port 80 using the following command.How to easily add a context menu item that enables a Linux user to open files as the root user or administrator when browsing their file system using nautilus. Systemd 1480 tecmint mem REG 8,3 14560 3150485 /lib/x86_64-linux-gnu/libdl-2.27.soĪnother important use of lsof is to find out the process listening on a specific port. Systemd 1480 tecmint rtd DIR 8,3 4096 2 / Systemd 1480 tecmint cwd DIR 8,3 4096 2 / List of Files Opened by User COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME To list user specific opened files, run the following command replace tecmint with the actual user name. Xfdesktop 1632 tecmint 1w CHR 1,3 0t0 6 /dev/null Xfdesktop 1632 tecmint 0r CHR 1,3 0t0 6 /dev/null Thunar 1630 tecmint 1w CHR 1,3 0t0 6 /dev/null Thunar 1630 tecmint 0r CHR 1,3 0t0 6 /dev/null Xfce4-pan 1628 tecmint 1w CHR 1,3 0t0 6 /dev/null Xfce4-pan 1628 tecmint 0r CHR 1,3 0t0 6 /dev/null Xfwm4 1624 tecmint 1w CHR 1,3 0t0 6 /dev/null Xfwm4 1624 tecmint 0r CHR 1,3 0t0 6 /dev/null Xfconfd 1615 tecmint 0u CHR 1,3 0t0 6 /dev/null ![]() Xfce4-ses 1603 tecmint 0r CHR 1,3 0t0 6 /dev/null Sh 1501 tecmint 1w CHR 1,3 0t0 6 /dev/nullĭbus-daem 1530 tecmint 0u CHR 1,3 0t0 6 /dev/null ![]() Sh 1501 tecmint 0r CHR 1,3 0t0 6 /dev/null Systemd 1480 tecmint 0r CHR 1,3 0t0 6 /dev/null ![]() List of All Opened Files in Linux COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |