So in this case you are running su using sudo and you don't have to know root's actual password Su root switches to the user named root and doesn't simulate directly logging in 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. 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) 我的 SketchUp2023 也是出现这个问题,后来发现只是添加贴图的时候JPG文件不能显示,而如果把路径选好,文件名复制后粘贴到文件名框里,点打开就行了。前提是路径和文件名正确。 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
While you can create a password for the root account allowing you to log in as root with su, there are some distinct benefits to using sudo Using sudo sudo is an alternative to giving people a root password in order to perform superuser duties In a default ubuntu install the person who installed the os is given sudo permission by default.
OPEN