LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-13-2006, 10:20 PM   #1
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 42
deleted video group by accident


I just installed slackware 10.2 and while I was configuring some users and groups I accident removed the "video" group, so now whenever I try to run a program from a terminal window it says it can't access the xserver, I am running the console in the Xwindows, and before I screwed up it would run the program from the console.

the command I ran was

groupmod -n "username" video

I wanted to add the "username" to the video group, but instead it added a group called "username" to the /etc/groups file.

How can I get this video group back?

thanks
 
Old 04-14-2006, 01:12 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Issue as root "vigr" and then add it as you would have it to be. Here's a snippet of mine:
Code:
audio::17:bruce,mingdao
video::18:bruce,mingdao
cdrom::19:bruce,mingdao
to show where it's normally located, if that matters.
 
Old 04-14-2006, 11:05 AM   #3
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Original Poster
Rep: Reputation: 42
Hey Chinaman,

I followed your instructions but I'm still getting the error. Is there a specific group I need to be a part of to access the X server?


Error:


Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

cannot connect to X server :0.0
 
Old 04-14-2006, 05:29 PM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
I'm not sure, so let me ask a few elementary questions.

First, did you add your username(s) and not mine?
Second, did you remove that username group you created by accident?
Third, have you Google this error?
Fourth, what command are you running that returns that error?

You might need to restart the X server -- not sure. Just exit
the X server with your GUI menu, or "Ctrl+Alt+Backspace" and
then type "startx" to start the X server again.
 
Old 04-14-2006, 07:04 PM   #5
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Original Poster
Rep: Reputation: 42
What I did was vigr as root changed "username"::18: to video::18:"usernames" for "usernames" I added 3 users to the list root, my ID and the ID I want to use to run the program, seperated by a comma. I restarted X as you suggested and it still wont work. I get the same error. I have googled this error but I get a lot of stuff that doesn't seem to be similar to my problem. :


------Update------

I ran xhost + as the user and it works.. But I assume this is a temp fix and would like to find a permenant fix.

Last edited by ncsuapex; 04-14-2006 at 07:15 PM.
 
Old 04-15-2006, 08:18 AM   #6
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,201

Rep: Reputation: 291Reputation: 291Reputation: 291
Are you trying to run a command that uses a users display as root? IE log in as a user, su to root and run a command in a terminal? That's the usual cause of that type of error.

2 things you can try in this situation. One is 'xhost +local:' and the other is making sure that env variable DISPLAY is :0.0 (or whichever display is currently running) by 'export DISPLAY=:0.0'

I have the xhost command in my users fluxbox startup script, and use the display variable in cron scripts, which also suffer from this problem.
 
  


Reply

Tags
display, groups


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleted ls by accident cake81 Linux - Newbie 4 01-19-2006 04:01 AM
deleted user group gracenalec Red Hat 1 07-18-2005 10:36 AM
chsh accident; big accident. shinystuffrox *BSD 3 06-06-2005 07:06 AM
Group Admin, Group Root, or God over Group crickett Linux - General 5 07-12-2004 04:01 PM
deleted cdrom by accident chronos Linux - General 1 12-16-2000 06:36 PM


All times are GMT -5. The time now is 07:16 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration