DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 11th August 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
formerly killasmurf86
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 588
Thanked 29 Times in 26 Posts
Default xscreensaver problem

This has happened to me before, and yet, i haven't found a way to solve this, but reinstall system (i didn't do this to fix this problem)

Code:
$ xscreensaver
Could not figure out who the current user is!
This error occurs after i dump and restore system (not at 1st, but at some 3rd, 4th time this happens)

When i run xscreensaver-command demo i get something like this:

Code:
Warning:

The XScreenSaver daemon doesn't seam to be running on display ":0.0". Launch it now?"
After i press OK, i get
Code:
Error:

The xscreensaver daemon did  not start property.
Please check your $PATH and permissions
xscreensaver version 5.06

Code:
# uname -a
FreeBSD killasmurf.HomePC 7.0-RELEASE-p3 FreeBSD 7.0-RELEASE-p3 #1: Sat Aug  2 00:45:09 EEST 2008     killasmurf@killasmurf.HomePC:/usr/obj/usr/src/sys/killabsd  i386
Code:
# ls -l /usr/local/bin/xscreensaver                                            
-rwsr-xr-x  1 root  wheel  205572 Aug 11 23:47 /usr/local/bin/xscreensaver
# ls -l /usr/local/bin/xscreensaver-command                                          
-r-xr-xr-x  1 root  wheel  17740 Aug 11 23:47 /usr/local/bin/xscreensaver-command

any ideas how to fix it?
Reply With Quote
  #2   (View Single Post)  
Old 12th August 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,068
Thanked 198 Times in 156 Posts
Default

From xscreensaver-5.06/driver/xscreensaver.c (Line 1298)

Code:
  spasswd = getpwuid(getuid());
  if (!spasswd)
    {
      fprintf(stderr, "Could not figure out who the current user is!\n");
      return 1;
    }
so either getuid(2) or getpwuid(2) is failing ... I suspect there is something wrong in you passwd file? What does this say:
% id -P
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #3   (View Single Post)  
Old 12th August 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
formerly killasmurf86
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 588
Thanked 29 Times in 26 Posts
Default

Code:
$ id -p
uid     killasmurf
groups  killasmurf wheel operator mail users
i also just changed password, didn't help
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot problem. Geometry problem? gulanito FreeBSD Installation and Upgrading 0 3rd July 2009 03:03 AM
How can I start xscreensaver daemon at boot rex FreeBSD General 7 15th May 2008 02:34 PM


All times are GMT. The time now is 07:36 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick