Su: must be suid to work properly

When using the “su” command, the user must have superuser (root) privileges to work properly. The “su” command is used to switch to a different user account, typically the root user, in order to execute commands that require administrative access.

Here is an example to illustrate the usage of the “su” command:

    
      $ su
      Password: [Enter root password]
      # [You are now logged in as the root user]
    
  

In this example, the user is executing the “su” command without specifying any username. By default, it will attempt to switch to the root user. The user will be prompted to enter the root password, and upon successful authentication, they will be logged in as the root user.

It is important to note that the “su” command should be used with caution, as it grants unrestricted access to system resources and sensitive information. It is recommended to use it only when necessary and with proper authorization.

Read more interesting post

Leave a comment