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.

- 4,173
-
Related: What is the difference between 'su -' , 'sudo bash' and 'sudo sh'? – Eliah Kagan Aug 08 '14 at 23:50
2 Answers
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
-
-
@ Shahrzad Torabi zadeh if this is what you are looking for, update your question as requested and clarify what you need. This will help other people that have same problem to find out more easly information they need. – Lety Jul 29 '14 at 10:05
Hi Why not open a terminal Ctrl + Alt + T and type man su
? That will explain what the su
command does.
Similarly with bash.
man = manual and it gives a list of arguments that can be used with the command.

- 4,173

- 10,436