25 июн. 2011 г. · su - switches to the superuser and sets up the environment so that it looks like they logged in directly. su root switches to the user named root and doesn't ... |
29 июн. 2020 г. · There are a bunch of differences, the main one being that sudo -s relies on the user having sudoer privileges whereas su root requires the user to have the ... |
3 июн. 2020 г. · You have to add an entry in the /etc/sudoers file to be able to run just your script as root without using any password. |
28 сент. 2021 г. · I search to understand why the "usermod" command run when I launch with "su -" but when he is launched from "su root" the command is "bash: usermod: command ... |
28 июл. 2020 г. · Using su root ./script would be the same as logging in as root and running $SHELL ./script (this would override any #! -line in the script). |
27 дек. 2019 г. · sudo is asking for your password, and su is asking for root password. The long answer su means change user, as in, start a shell as that user. |
21 мар. 2012 г. · The biggest difference between the two commands you listed is that running su - will cause the shell to be a login shell. |
24 окт. 2022 г. · "Authentication failure" usually means the wrong password. Are you 100% sure you are giving the correct password for the root account? |
19 июл. 2016 г. · You can use the -c option of su to pass a single command. su root -c 'sh /home/jay/script-that-needs-executing-as-root.sh' |
25 авг. 2015 г. · So, sudo su allows you to open a shell as another user (including root), if you're allowed super-user access by the /etc/sudoers file. |
Novbeti > |
Axtarisha Qayit Anarim.Az Anarim.Az Sayt Rehberliyi ile Elaqe Saytdan Istifade Qaydalari Anarim.Az 2004-2023 |