Xlock error on a Sun Sparc5 running Solaris 2.4

Xlock error on a Sun Sparc5 running Solaris 2.4

Post by Walter Duel » Thu, 14 Mar 1996 04:00:00

Quote:>When this is executed using the mouse the following error is written to
>the xdm-error file the in /tmp directory:  xlock: can't get the user
>password. exiting....
>                 You need to run xlock in setuid
>                 root mode on your local machine.

>Not sure how to fix, any suggestions would be appreciated.

hello david,

if your xlock binary is loaded from a NFS-mounted disk,
that is exported 'nosuid' then xlock is no more running setuid root
and so xlock cannot read the /etc/shadow file.

if xlock cannot read your password, then it will be VERY difficult
to persuade xlock to give up its task.   ;-)

solution: copy xlock to a local filesystem and do a: chmod 4711 xlock
exporting NFS Filesystems with the option 'suid' is considered
a security problem.


1. compiling oleo on Sun Sparc5 Solaris 2.4

Having problems trying to get either one of these packages compiling on
the Sun.  Not a unix guru so if you can help I would appreciate it.


  The configure seems to run just fine, but when I try to make the
program I
  to the following with errors:

sunvlsi#/users/programs/oleo-1.6 <40 >% make
gcc -c -g -D_XOPEN_SOURCE -I/usr/openwin/include -L/usr/openwin/lib
-R/usr/openwin/lib  -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDIRENT=1
-DHAVE_SYS_SELECT_H=1 -DHAVE_LIMITS_H=1 -I/usr/openwin/include
-L/usr/openwin/lib -DRETSIGTYPE=void -DHAVE_ALLOCA_H=1 -DHAVE_TZNAME=1
In file included from /usr/include/termio.h:13,
                 from /usr/include/curses.h:48,
                 from io-curses.c:21:
/usr/include/sys/termio.h:30: `NCC' undeclared here (not in a function)
In file included from sysdef.h:28,
                 from io-curses.c:27:
/usr/include/sys/select.h:62: warning: `struct timeval' declared inside
parameter list
/usr/include/sys/select.h:62: warning: its scope is only this
definition or declaration,
/usr/include/sys/select.h:62: warning: which is probably not what you
io-curses.c: In function `tty_graphics':
io-curses.c:1258: `_io_read_kbd' undeclared (first use this function)
io-curses.c:1258: (Each undeclared identifier is reported only once
io-curses.c:1258: for each function it appears in.)
*** Error code 1
make: Fatal error: Command failed for target `io-curses.o'

2. 80% packet loss

3. Kermit on a Sparc5 running Solaris 2.4

4. Question?

5. Netscape Solaris 2.4 Sparc5/85 24bit = woes

6. Mouse scrolls text by twice the amount set in configuration

7. Sparc5/Solaris 2.4/Hayes Accura 144 modem

8. struct loop_info64 with __u64

9. ethernet monitor for Sparc5/Solaris 2.4?

10. Need samba for Sun Sparc 10 running Solaris 2.4

11. Xlock not unlocking (Solaris 2.4)

12. xdm, .xsession, and xlock under Solaris 2.4

13. Problems with xlock in Solaris 2.4