help w/ permissions & X display to console

help w/ permissions & X display to console

Post by Jimmy E » Thu, 06 Apr 1995 04:00:00



I'm seeking help with a problem that I created.

In my misguided attempt at making my workstation (DEC Ultrix 4.2)
more secure, I removed world write permissions for all files and
directories with the command 'chmod o-w *' at the root directory.

When the 'man' command no longer worked for any user but root, I
found out that the /tmp and /usr/tmp directories needed to have
world write permissions so after I changed the permissions on those
directories, 'man' worked again for all users.

I still have a problem in that any users besides root cannot log in
at the console because the permissions associated with some part of
X are still set incorrectly i.e. some file or directory needs it's
world writable permission changed back also.  If I login in as root
and then rlogin as a non-root user and then try open an application
such as an xterm or xcalc, I get the message:
   X Toolkit Error:  Can't Open display
But as a non-root user, I can send the display to another workstation
and have it display correctly (using the setenv DISPLAY other:0.0) so
the problem seems isolated only to the console.

Any ideas on how to fix my problem?  More specifically, any ideas on
which files/directories control display access to the console?

Thanks a million!

- Jimmy
--
: Jimmy Eng               University of Washington         :
: Research Consultant     Dept. of Molecular Biotechnology :

: (206) 685-7335          Seattle, Washington  98195       :

 
 
 

help w/ permissions & X display to console

Post by Charlie McGui » Fri, 07 Apr 1995 04:00:00



writes:
|> I'm seeking help with a problem that I created.
|>
|> In my misguided attempt at making my workstation (DEC Ultrix 4.2)
|> more secure, I removed world write permissions for all files and
|> directories with the command 'chmod o-w *' at the root directory.
|>
|>
|> Any ideas on how to fix my problem?  More specifically, any ideas on
|> which files/directories control display access to the console?
|>
|> Thanks a million!

Check the directory for the X11 display socket in /tmp. Usually something
like /tmp/.X11-unix. The directory and the socket (in the directory) should
be world-writeable.

Charlie
--
 *************************************************************************
( Charlie McGuire              |       Tel.  : (406) 243-4618             )
( System Administration        |       Fax   : (406) 243-4076             )
( The University of Montana    |                                          )

 *************************************************************************

 
 
 

1. Two XDM questions (xconsole & display permission)

Hi folks,

I have xdm (actually the very cool xdm-photo) set up with Linux 2.0.25
(RedHat distribution), and it works fine except for two annoyances
that I haven't been able to solve:

1) Console output is redirected to xconsole with the command:

xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn fixed\
-exitOnFail

   in the file /etc/X11/xdm/Xsetup_0.  My xconsole window pops up as
   it should, but nothing ever gets sent there -- it's always blank
   except for the comment line at the top.  But the file
   /etc/X11/xdm/xdm-errors contains all of the messages that should
   have shown up in xconsole.  Anyone know what I might have set wrong?

2) I figured out that I need to do "xhost +localhost" to allow access
   to the X server when I occasionally su to root.  But when I try the
   command "gnuclient <filename>" to pop up a new XEmacs frame into
   an already running XEmacs session, I get the response:

gnuclient: Permission denied
gnuclient: unable to connect to local

   Why can't it connect?  Note: I only get this problem when I try it
   as a user -- if I su to root it works fine, even though I need to
   do an xhost command as user to allow root access to the display in
   the first place!  This is all pretty confusing...

Thanks for any help.

Cheers,
Dave
--
_____________________________________________________________________


Information Technology Services        Phone: (802) 443-3143
Science Center                         FAX:   (802) 443-2072
Middlebury College
Middlebury, VT  05753
_____________________________________________________________________

2. NEWBIE KDE Install Question re: libqt.so.1

3. Display Permissions & Xsession Errors

4. socket error problem after upgrading from RH 4.2 -> 5.0

5. User permissions & console window under xdm/wdm questions.

6. HELP! Disk Errors!

7. sb100 won't find console drivers...no console display/dtlogin

8. Can't boot from hard drive

9. Console Display Columns & Rows - Where Are the Docs?

10. &&&&&& NEEED HELP COMPAQ AND XXXXXXXXXXX

11. HELP ...Console display corrupted

12. HELP: How to display an X console window on the CDE login screen ?

13. Help display RD and SD lights on console