Re: startx - problem

From: Matthew Seaman (m.seaman_at_infracaninophile.co.uk)
Date: 07/31/03

  • Next message: mess-mate: "fdisk ID for FreeBSD"
    Date: Thu, 31 Jul 2003 21:05:29 +0100
    To: Alex Zivenko <twistfire@rambler.ru>
    
    
    

    On Thu, Jul 31, 2003 at 10:46:42PM +0300, Alex Zivenko wrote:
    > Hi all!
    > I have a problem. When I am starting My X server with only a user privilegies - it gives me an error containing:
    > error in locking authority file
    > .Xauthority
    > But when i am a root - all perfect.
    > What's the problem

    startx needs the X server to be SUID root -- if you've installed X
    from ports you should have:

        lrwxr-xr-x 1 root wheel 10 May 15 12:06 /usr/X11R6/bin/X@ -> Xwrapper-4
        -r-sr-xr-x 1 root wheel 4804 Apr 24 11:52 /usr/X11R6/bin/Xwrapper-4*
        -rwxr-xr-x 1 root wheel 1808362 May 15 12:06 /usr/X11R6/bin/XFree86*

    However, the .Xauthority file should be in your home directory, and
    owned by you:

        -rw------- 1 matthew matthew 860 Jul 27 21:16 /home/matthew/.Xauthority

    If you've run X as root, but with $HOME set to your ordinary home
    directory, then I suppose that file could end up owned by root, and
    unreadable by your UID, which would cause the effects you're seeing.

            Cheers,

            Matthew

    -- 
    Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                          Savill Way
    PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
    Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
    
    



  • Next message: mess-mate: "fdisk ID for FreeBSD"

    Relevant Pages

    • Re: Disk Druid - Fedora flame #1
      ... What I do as root, ... Root's home directory should contain very little: ... part of a minimal boot environment. ... And the root filesystem should be as small as reasonably possible, ...
      (Fedora)
    • Re: X11Forwarding, ssh -X, and /bin/su
      ... ]>but I'm not really tunneled using ssh then, ... ]connecting to the X server and have the home directory NFS-mounted ... ](unless you leave root unmapped over NFS, ... ]root-readable place and set the environment $XAUTHORITY variable ...
      (comp.security.ssh)
    • Re: Shared User Folders and printer setup
      ... only mapping to the root? ... I have a 2003 standard server setup running as a Terminal Server to allow our other location to access our main SBS 2003 server and run our Mfg/accntg software. ... In order to get this software to work Trans-Micro (the makers of Check Factory) have a detailed procedure that allows multiple Terminal Server users to run the software at the same time. ... Does anyone have any idea why and how can I get it to look at the Home directory path Z: ...
      (microsoft.public.windows.terminal_services)
    • Re: Excellent news.. Malware for OS X!
      ... compromise and that nothing is immune. ... If it isn't already running as root, it will ask for the password ... the majority of Mac users, then malware has an even larger reach. ... Another method of avoiding that is to simply copy everything in /Applications to somewhere in your home directory and changing links appropriately. ...
      (comp.sys.mac.advocacy)
    • Re: move your home directory - second newsgroup post
      ... I'm fairly sure you'll have to enable root access ... user's home directory. ... I've never found ANY action that requires enabling ... Steve W. Jackson ...
      (comp.sys.mac.misc)