So in this case you are running su using sudo and you don't have to know root's actual password If you still want to use su after reading the warnings in the question, there is no need to set a root password Su root switches to the user named root and doesn't simulate directly logging in
Мои процессы - Страница 7 - Процессы - Форум stitch.su
From su 's man page
For backward compatibility, su defaults to not change the current directory and to only set the environment variables home and shell (plus user and logname if the target user is not root)
Your working directory will be /root, and it will read root's.profile etc The prompt will change from $ to #, indicating you have root access Sudo bash where bash is command to run with sudo. I am having problems with the su command
I know my password and i am typing it correctly, but su indicates authentication failure So i checked on the internet and then went into recovery mode and This is certainly a huge security issue If you need to run commands with su (or sudo) in an automated way, write a shellscript containig the commands without su or sudo and run su <username> script.sh