Monday, May 13, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 6359  / 3 Years ago, sat, june 26, 2021, 6:36:47

I want to run amun honeypot on Ubuntu 13.10 and I sometimes have problem with running this honeypot. I just write this command $ sudo ./amun_server.py & but it cant work sometimes. I want to try this command sudo su bash but I don't know what this command can do.


More From » 13.10

 Answers
5

When you type:



 sudo <command>


you are running as root user, the requested password is your password. Only your uid is changed and the environment is the same as your user.



When you type:



 su


su command without parameter allow user to become superuser. In this case the requested password is about root.



When you type:



 sudo su


you are running su as root user, sudo ask your password and su does not. So you can become root without knowing the password.



Caution: It is strongly recommended to not use this command unless you really know very well what you are doing



If you want exec command as another user login shell environment:



 sudo su - <user> -c <command>


or



 sudo -u <user> -i <command>


Here is useful link


[#23947] Sunday, June 27, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
pilun

Total Points: 270
Total Questions: 100
Total Answers: 94

Location: England
Member since Sat, Feb 13, 2021
3 Years ago
pilun questions
Thu, Sep 16, 21, 18:43, 3 Years ago
Mon, Aug 23, 21, 04:32, 3 Years ago
Wed, Sep 14, 22, 11:04, 2 Years ago
;