Otto, check /tmp immediately after successfully running the game
(i.e., as root), by doing

ls -ltrac /tmp

The last file MAY be to blame; I'll bet it has permissions rw-------
(six or seven dashes to end it... it can have miscellaneous dashes 
in front) and is owned by root:sys.

If there is a file similar to that at the end (I have no idea what
the name of the file is...) then your problem is quite simple.

When the game runs, it creates/touches/whatever a file for some
reason in /tmp... lots of programs do.  That file is created by
whoever ran the game first; it also inherits that persons permissions.
The default permissions on files created by root (it's umask) would
close those files to non-root users; therefore, if the file is
created just the once, and then updated as necessary for particular
instances of the game, then this permission is getting you in trouble;
you need to open it up by changing the permissions.

You could do that by doing

chmod 666 /tmp/<whatever>

where <whatever> is the name of the file, IF the permissions needed
are just rw-.

If you needed rwx, then the use chmod 777.

This is very vague, and before you DO this, tell us what the filename
you're getting ready to chmod is... I'm kinda fuzzy headed right now
(allergies and lack of sleep!), so I might be getting loopy.

But it's what I would check.

Bill Ward

-----Original Message-----
From: Otto Lenz [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 29, 2001 12:59 PM
To: [EMAIL PROTECTED]
Subject: Re: Segmentation Fault as user only


Whether I login as 'user', or login as root and then 'su user' in a terminal
window, the results are the same.  As root, the game/program runs fine; as
'user' I get the segmentation fault.  The results are the same whether in
Gnome or KDE.

If I login to the console (I assumed that meant w/o running startx first?) -
as 'user', I get the segmentation fault error; as 'root', I get 'Couldn't
initialize SDL: No available video device' - which seems to make sense since
the program/game requires the graphical interface?

Does that help?

----- Original Message -----
From: "Mike Chambers" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 29, 2001 9:14 AM
Subject: Re: Segmentation Fault as user only


> ----- Original Message -----
> From: "Otto Lenz" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, April 29, 2001 8:28 AM
> Subject: Segmentation Fault as user only
>
>
> > I'm new to Linux.  Just installed RH7.1 - everything seemed to go OK.
> > My son wanted to try his hand at some of the games - so I added him as a
> > user - and ran into a small problem.
> > I can run the game 'Maelstrom' as root - no problems.  If, however, I
log
> in
> > as any other user (or my son logs in), the game won't run.  I thought
> > perhaps PATH had something to do with it - but the executable resides in
> > /usr/bin (which is in both the root and user PATH's).
> > In a terminal window, as root, I can type in /usr/bin/Maelstrom - it
runs
> > fine. If I 'su user' or login as another user, the same  action gets me
> the
> > following error : 'Segmentation fault'.
>
> Try su - user
>
> And what happens if you login to the console of the machine itself instead
> of su'ing?
>
> Mike
>
>
>
>
>
>



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to