[ccoss] Re: unmount cdrom, device is busy, what is using it,using fuser as a solution


Christopher Paulin wrote:
> It worked!
>
> 
> That also worked!
> 

Cool :)


> chris@p450:~> su
> su
> Password:
> p450:/home/chris # emacs /etc/default/cdrecord &
> [1] 1554
> 
> I have to go this extra work:
> 
> p450:/home/chris # Xlib: connection to ":0.0" refused by server
> Xlib: Invalid XDM-AUTHORIZATION-1 key (failed key comparison)
> emacs: Cannot connect to X server :0.0.
> Check the DISPLAY environment variable or use `-d'.
> Also use the `xhost' program to verify that it is set to permit
> connections from your machine.
> 
> Temporary fix:
> 
> chris@p450:~> xhost +
> access control disabled, clients can connect from any host

You can get around this a couple ways:

either by using an editor that doesn't use X, like vi (heheh, sorry, had 
to get that in!)

or use one of the "su in X" goodies, like xsu (or for something that 
fits your desktop, kdesu). what they do is temporarily allow an app 
started as root to connect the regular user's X server.

here's a blurb from gksu's site:

About:
GKsu is a GTK+ frontend to the su program. It supports login shells and 
preserving environment variables, and is useful for launching graphical 
programs that need to run as another user. In the future, it will also 
wrap sudo.

dave

_______________________________________________
CCOSS mailing list
ccoss@xxxxxxxxxxxxx
CCOSS mailing list page: http://www.freelists.org/cgi-bin/list?list_id=3594
CCOSS Web page: http://www.ccoss.org

Other related posts: