Can use of “usermod -G” break xserver access permission?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












Ubuntu Xfce 16.04



I've made the noob error of loosing my groups with a



usermod -G video df4ze


but immediately re-add my user to each loosed groups.



Everythings seems to work (sudo, etc...) but I was warned by a "Wrong password" when Ubuntu ask me to install new update. Not really a problem because I could update in cli mode.



Forgot aubout it, I shut it down ... and now getting stuck in recovery mode and can't launch anymore xserver :



unable to connect to xserver : connection refused


Using sudo startx it launch but got too much troubles...



  • I've check 4 times the removed groups with a sudo grep group /var/log/auth.log.


  • In /etc/X11/Xwrapper.conf set allowed_users to anybody


  • Change owner of .Xauthority and .ICEauthority for my user:group


  • Relaunch xserver legacy with sudo dpkg-reconfigure xserver-xorg-legacy-hwe-16.04


  • Seeing that error message talk about tty, I've add my user to tty group. Now I do not have the tty error message but still the "connection refused"



  • Then I ran several commands lines but still got the same issue:



    sudo apt-get clean
    sudo apt-get autoclean
    sudo apt-get autoremove
    sudo apt-get update
    sudo apt-get install -f
    sudo apt-get update --fix-missing


Last chance will be a rm -R / but i'm sure there is a better way!










share|improve this question























  • No it should not AFAIK - although running sudo startx almost certainly will. What exactly are your groups now (i.e. the output of command id)?
    – steeldriver
    Feb 8 at 13:33










  • Sorry for the late, Too impatient, i've taken the last solution ;) it's a fresh PC and just the 5st time I erased it...! Thanks anyway
    – DFaze
    Feb 13 at 21:10















up vote
0
down vote

favorite












Ubuntu Xfce 16.04



I've made the noob error of loosing my groups with a



usermod -G video df4ze


but immediately re-add my user to each loosed groups.



Everythings seems to work (sudo, etc...) but I was warned by a "Wrong password" when Ubuntu ask me to install new update. Not really a problem because I could update in cli mode.



Forgot aubout it, I shut it down ... and now getting stuck in recovery mode and can't launch anymore xserver :



unable to connect to xserver : connection refused


Using sudo startx it launch but got too much troubles...



  • I've check 4 times the removed groups with a sudo grep group /var/log/auth.log.


  • In /etc/X11/Xwrapper.conf set allowed_users to anybody


  • Change owner of .Xauthority and .ICEauthority for my user:group


  • Relaunch xserver legacy with sudo dpkg-reconfigure xserver-xorg-legacy-hwe-16.04


  • Seeing that error message talk about tty, I've add my user to tty group. Now I do not have the tty error message but still the "connection refused"



  • Then I ran several commands lines but still got the same issue:



    sudo apt-get clean
    sudo apt-get autoclean
    sudo apt-get autoremove
    sudo apt-get update
    sudo apt-get install -f
    sudo apt-get update --fix-missing


Last chance will be a rm -R / but i'm sure there is a better way!










share|improve this question























  • No it should not AFAIK - although running sudo startx almost certainly will. What exactly are your groups now (i.e. the output of command id)?
    – steeldriver
    Feb 8 at 13:33










  • Sorry for the late, Too impatient, i've taken the last solution ;) it's a fresh PC and just the 5st time I erased it...! Thanks anyway
    – DFaze
    Feb 13 at 21:10













up vote
0
down vote

favorite









up vote
0
down vote

favorite











Ubuntu Xfce 16.04



I've made the noob error of loosing my groups with a



usermod -G video df4ze


but immediately re-add my user to each loosed groups.



Everythings seems to work (sudo, etc...) but I was warned by a "Wrong password" when Ubuntu ask me to install new update. Not really a problem because I could update in cli mode.



Forgot aubout it, I shut it down ... and now getting stuck in recovery mode and can't launch anymore xserver :



unable to connect to xserver : connection refused


Using sudo startx it launch but got too much troubles...



  • I've check 4 times the removed groups with a sudo grep group /var/log/auth.log.


  • In /etc/X11/Xwrapper.conf set allowed_users to anybody


  • Change owner of .Xauthority and .ICEauthority for my user:group


  • Relaunch xserver legacy with sudo dpkg-reconfigure xserver-xorg-legacy-hwe-16.04


  • Seeing that error message talk about tty, I've add my user to tty group. Now I do not have the tty error message but still the "connection refused"



  • Then I ran several commands lines but still got the same issue:



    sudo apt-get clean
    sudo apt-get autoclean
    sudo apt-get autoremove
    sudo apt-get update
    sudo apt-get install -f
    sudo apt-get update --fix-missing


Last chance will be a rm -R / but i'm sure there is a better way!










share|improve this question















Ubuntu Xfce 16.04



I've made the noob error of loosing my groups with a



usermod -G video df4ze


but immediately re-add my user to each loosed groups.



Everythings seems to work (sudo, etc...) but I was warned by a "Wrong password" when Ubuntu ask me to install new update. Not really a problem because I could update in cli mode.



Forgot aubout it, I shut it down ... and now getting stuck in recovery mode and can't launch anymore xserver :



unable to connect to xserver : connection refused


Using sudo startx it launch but got too much troubles...



  • I've check 4 times the removed groups with a sudo grep group /var/log/auth.log.


  • In /etc/X11/Xwrapper.conf set allowed_users to anybody


  • Change owner of .Xauthority and .ICEauthority for my user:group


  • Relaunch xserver legacy with sudo dpkg-reconfigure xserver-xorg-legacy-hwe-16.04


  • Seeing that error message talk about tty, I've add my user to tty group. Now I do not have the tty error message but still the "connection refused"



  • Then I ran several commands lines but still got the same issue:



    sudo apt-get clean
    sudo apt-get autoclean
    sudo apt-get autoremove
    sudo apt-get update
    sudo apt-get install -f
    sudo apt-get update --fix-missing


Last chance will be a rm -R / but i'm sure there is a better way!







permissions xorg






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 8 at 0:31









muru

130k19275470




130k19275470










asked Feb 7 at 22:50









DFaze

1




1











  • No it should not AFAIK - although running sudo startx almost certainly will. What exactly are your groups now (i.e. the output of command id)?
    – steeldriver
    Feb 8 at 13:33










  • Sorry for the late, Too impatient, i've taken the last solution ;) it's a fresh PC and just the 5st time I erased it...! Thanks anyway
    – DFaze
    Feb 13 at 21:10

















  • No it should not AFAIK - although running sudo startx almost certainly will. What exactly are your groups now (i.e. the output of command id)?
    – steeldriver
    Feb 8 at 13:33










  • Sorry for the late, Too impatient, i've taken the last solution ;) it's a fresh PC and just the 5st time I erased it...! Thanks anyway
    – DFaze
    Feb 13 at 21:10
















No it should not AFAIK - although running sudo startx almost certainly will. What exactly are your groups now (i.e. the output of command id)?
– steeldriver
Feb 8 at 13:33




No it should not AFAIK - although running sudo startx almost certainly will. What exactly are your groups now (i.e. the output of command id)?
– steeldriver
Feb 8 at 13:33












Sorry for the late, Too impatient, i've taken the last solution ;) it's a fresh PC and just the 5st time I erased it...! Thanks anyway
– DFaze
Feb 13 at 21:10





Sorry for the late, Too impatient, i've taken the last solution ;) it's a fresh PC and just the 5st time I erased it...! Thanks anyway
– DFaze
Feb 13 at 21:10
















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1004041%2fcan-use-of-usermod-g-break-xserver-access-permission%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1004041%2fcan-use-of-usermod-g-break-xserver-access-permission%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Trouble downloading packages list due to a “Hash sum mismatch” error

How do I move numbers in filenames, in a batch renaming operation?