This program is an suid-root program or is being run by the root user Troubleshooting
1. $echo passwordku | sudo -S xterm -e fdisk /dev/sda
Invalid MIT-MAGIC-COOKIE-1 keyWarning: This program is an suid-root program or is being run by the root user.
The full text of the error or warning message cannot be safely formatted
in this environment. You may get a more descriptive message by running the
program as a non-root user or by removing the suid bit on the executable.
xterm: Xt error: Can't open display: %s
----------------------------------------------------------------------------------------
2. $export XAUTHORITY=/home/myuser/.Xauthority
$echo passwordku | sudo -S xterm -e fdisk /dev/sda
No protocol specified
Warning: This program is an suid-root program or is being run by the root user.
The full text of the error or warning message cannot be safely formatted
in this environment. You may get a more descriptive message by running the
program as a non-root user or by removing the suid bit on the executable.
xterm: Xt error: Can't open display: %s
----------------------------------------------------------------------------------------
3. export XAUTHORITY=/home/usernamesaya/.Xauthority
$echo passwordku | sudo -S xterm -e fdisk /dev/sda
SUKSES
-----------------------------------------------------------------------------------------
4. Jadi untuk menjalankan command itu bisa menggunakan tanda && seperti biasa contoh export XAUTHORITY=/home/usernamesaya/.Xauthority && echo passwordku | sudo -S xterm -e fdisk /dev/sda
program as a non-root user or by removing the suid bit on the executable.
xterm: Xt error: Can't open display: %s
----------------------------------------------------------------------------------------
2. $export XAUTHORITY=/home/myuser/.Xauthority
$echo passwordku | sudo -S xterm -e fdisk /dev/sda
No protocol specified
Warning: This program is an suid-root program or is being run by the root user.
The full text of the error or warning message cannot be safely formatted
in this environment. You may get a more descriptive message by running the
program as a non-root user or by removing the suid bit on the executable.
xterm: Xt error: Can't open display: %s
----------------------------------------------------------------------------------------
3. export XAUTHORITY=/home/usernamesaya/.Xauthority
$echo passwordku | sudo -S xterm -e fdisk /dev/sda
SUKSES
-----------------------------------------------------------------------------------------
4. Jadi untuk menjalankan command itu bisa menggunakan tanda && seperti biasa contoh export XAUTHORITY=/home/usernamesaya/.Xauthority && echo passwordku | sudo -S xterm -e fdisk /dev/sda
Comments
Post a Comment