2 янв. 2015 г. · To invoke a login shell using sudo just use -i. When command is not specified you'll get a login shell prompt, otherwise you'll get the output of your command. |
21 янв. 2017 г. · This allows user1 to run all executables under /scripts/dir/ as user2 without entering their password using a command like sudo -u user2 /scripts/dir/script. |
29 сент. 2015 г. · To run a command as another user you can use this commands: runuser -u user -- command can be used only by root to run commands as another user. |
27 янв. 2022 г. · su is used to launch a root shell that allows all further commands to use root access. su has no -u option. |
23 нояб. 2017 г. · In such a situation, try adding the -E option to sudo command to explicitly request keeping your environment. And when you really want to run ... |
30 окт. 2018 г. · I am writing a Bash script to manage various JBoss instances across multiple servers. The script allows users to check the status of each instance as well as ... |
24 янв. 2022 г. · Executing a program in a different target group is the whole point of the -g option. And there's no restriction on combining -u with -g. |
22 июн. 2017 г. · There is the su -m option to preserve the current user's environment and login shell: su -m <user> -c "<command>" |
23 авг. 2010 г. · su is primarily for switching users, while sudo is for executing commands as other users. The -u flag lets you specify which user to execute the command as. |
23 янв. 2017 г. · The most efficient way for multiple users (around 15) to be able to sudo to another user's account to run privileged commands. |
Novbeti > |
Axtarisha Qayit Anarim.Az Anarim.Az Sayt Rehberliyi ile Elaqe Saytdan Istifade Qaydalari Anarim.Az 2004-2023 |