![]() |
Issue with running sudo synaptic
Got another issue with sudo, have to run this
xhost +si:localuser:root OR I get errors like this. Code:
scott@scott-MS-7596:~$ sudo synaptic So how to fix this? This problem only happened after upgrading to ubuntu 17.10 In the past I always would run sudo gedit, sudo synaptic, etc... |
Trying method 2, will it work? I wont know until I reboot.
Code:
Method 2: Globally in /etc/profile |
Here is my profile file now, with the added line at bottom
Code:
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1)) |
So did that fix it?
|
Quote:
I rebooted and get the error, they do not want you using gedit with sudo They deny sudo graphical privileges by design, but there must be a way to override it. This seems to be one of these philosophical things about linux. Code:
scott@scott-MS-7596:~$ sudo gedit /etc/profile Code:
scott@scott-MS-7596:~$ sudo synaptic I need info on how to use xhost in ubuntu, like here supposed to be able to grant to root x privileges. I tried and does not work. I get same bad host name error. https://superuser.com/questions/8581...ss-the-display |
My authorized x users list only shows me.
Which is why this talk of exporting authority to another user I suppose. Code:
scott@scott-MS-7596:~$ xauth list I have modifed and created files but to no avail. This did not work, had to make file with nano, still did not work https://serverfault.com/questions/51...-user-on-linux Code:
cat <<EOF > /etc/profile.d/xauth.sh https://unix.stackexchange.com/quest...ocol-specified Code:
|
1 Attachment(s)
I found something that may work, where can I put this script file to have it execute at bootup?
https://askubuntu.com/questions/8778...t-and-xhost-si Code:
Is there some place in ubuntu 17.10 I can put a file to execute at boot? Maybe the etc/rc.local needs to be set executable? |
I created this shell script.
Code:
#!/bin/bash I works when I run it. How can I run this at boot time? Code:
scott@scott-MS-7596:~$ ls |
https://stackoverflow.com/questions/...ipt-at-startup
I tried crontab but still no go. What do you think? This line is in crontab Code:
# daemon's notion of time and timezones. |
I solved it!
Works on boot. Ubuntu has under system, a startup programs gui. I added my shell script to the start list. |
Holy cow, I've tried to solve this problem a few times. You are a genius. TYVM
|
All times are GMT -5. The time now is 05:35 AM. |