Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Can't startx as root with pre5
@ 1999-01-08  3:06 Peter Petrakis
  1999-01-08  4:07 ` Larry Snyder
  1999-01-08  6:32 ` Richard Henderson
  0 siblings, 2 replies; 10+ messages in thread
From: Peter Petrakis @ 1999-01-08  3:06 UTC (permalink / raw)
  To: axp-list@redhat.com

This is so weird. I login as root and type "startx". X starts up and
dies before it can load the wm with the reason "no more space". Now
check this out. I login as my usual account and su root. Now when I
startx it works! Any ideas? I'm also having a problem mounting
filesystems as a user. It says only root can mount /dev/* on /mnt/* but
according to filerunner (chmod) all users have r-w-x privledges on both
the devices in question and the mount  points. I even change the owner
on said points from root to me (peterpan) with no effect. I'm stumped.
TIA.

Alpha Powered,
Peter Petrakis
-- 
STCC DEC Alpha Resource Page
http://math.stcc.mass.edu/petrakis
PeterPan@wn.net  AlphaGuy =)
"BLAM! Who the hell are you!? Name's Ash <click clock> Housewares..."


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Can't startx as root with pre5
  1999-01-08  3:06 Can't startx as root with pre5 Peter Petrakis
@ 1999-01-08  4:07 ` Larry Snyder
  1999-01-08  4:13   ` Peter Petrakis
                     ` (2 more replies)
  1999-01-08  6:32 ` Richard Henderson
  1 sibling, 3 replies; 10+ messages in thread
From: Larry Snyder @ 1999-01-08  4:07 UTC (permalink / raw)
  To: axp-list

Peter Petrakis <peterpan@wn.net> wrote:
> This is so weird. I login as root and type "startx". X starts up and
> dies before it can load the wm with the reason "no more space". Now
> check this out. I login as my usual account and su root. Now when I
> startx it works! Any ideas? 
> 
Are you doing su root or su - root?  Without the dash, you don't pick
up root's environment.  That might explain the above...
> 
> I'm also having a problem mounting
> filesystems as a user. It says only root can mount /dev/* on /mnt/* but
> according to filerunner (chmod) all users have r-w-x privledges on both
> the devices in question and the mount  points. I even change the owner
> on said points from root to me (peterpan) with no effect. I'm stumped.
> TIA.


mount won't let anyone but root do anything active.  Users can run it to
see what's mounted where, but only root can mount/umount things.  If
you have a need beyond that, check out sudo.  We use it at work.

Good luck!
-ls-

> 
> Alpha Powered,
> Peter Petrakis
> -- 
> STCC DEC Alpha Resource Page
> http://math.stcc.mass.edu/petrakis
> PeterPan@wn.net  AlphaGuy =)
> "BLAM! Who the hell are you!? Name's Ash <click clock> Housewares..."
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Can't startx as root with pre5
  1999-01-08  4:07 ` Larry Snyder
@ 1999-01-08  4:13   ` Peter Petrakis
  1999-01-08  5:08   ` mgraffam
  1999-01-08 17:08   ` Stephen Williams
  2 siblings, 0 replies; 10+ messages in thread
From: Peter Petrakis @ 1999-01-08  4:13 UTC (permalink / raw)
  To: axp-list

Thanks, you solved my second question. I should clarify that I can't
startx when I login as root from the login prompt. Like when I first
start the box. When I su
from another user I can startx but not from a normal login. I didn't
know the su - root thing. Thanks for the tip.

Peter Petrakis

Larry Snyder wrote:
> 
> Peter Petrakis <peterpan@wn.net> wrote:
> > This is so weird. I login as root and type "startx". X starts up and
> > dies before it can load the wm with the reason "no more space". Now
> > check this out. I login as my usual account and su root. Now when I
> > startx it works! Any ideas?
> >
> Are you doing su root or su - root?  Without the dash, you don't pick
> up root's environment.  That might explain the above...
> >
> > I'm also having a problem mounting
> > filesystems as a user. It says only root can mount /dev/* on /mnt/* but
> > according to filerunner (chmod) all users have r-w-x privledges on both
> > the devices in question and the mount  points. I even change the owner
> > on said points from root to me (peterpan) with no effect. I'm stumped.
> > TIA.
> 
> mount won't let anyone but root do anything active.  Users can run it to
> see what's mounted where, but only root can mount/umount things.  If
> you have a need beyond that, check out sudo.  We use it at work.
> 
> Good luck!
> -ls-
> 
> >
> > Alpha Powered,
> > Peter Petrakis
> > --
> > STCC DEC Alpha Resource Page
> > http://math.stcc.mass.edu/petrakis
> > PeterPan@wn.net  AlphaGuy =)
> > "BLAM! Who the hell are you!? Name's Ash <click clock> Housewares..."
> >
> > --
> > To unsubscribe: send e-mail to axp-list-request@redhat.com with
> > 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> 
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

-- 
STCC DEC Alpha Resource Page
http://math.stcc.mass.edu/petrakis
PeterPan@wn.net  AlphaGuy =)
"BLAM! Who the hell are you!? Name's Ash <click clock> Housewares..."


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Can't startx as root with pre5
  1999-01-08  4:07 ` Larry Snyder
  1999-01-08  4:13   ` Peter Petrakis
@ 1999-01-08  5:08   ` mgraffam
  1999-01-08 17:08   ` Stephen Williams
  2 siblings, 0 replies; 10+ messages in thread
From: mgraffam @ 1999-01-08  5:08 UTC (permalink / raw)
  To: Larry Snyder; +Cc: axp-list

On Thu, 7 Jan 1999, Larry Snyder wrote:

> > I'm also having a problem mounting
> > filesystems as a user. It says only root can mount /dev/* on /mnt/* but
> > according to filerunner (chmod) all users have r-w-x privledges on both
> > the devices in question and the mount  points. I even change the owner
> > on said points from root to me (peterpan) with no effect. I'm stumped.
> > TIA.
> 
> mount won't let anyone but root do anything active.  Users can run it to
> see what's mounted where, but only root can mount/umount things.  If
> you have a need beyond that, check out sudo.  We use it at work.

This is not completely accurate. You can set up /etc/fstab to help with
this sort of thing. 

/dev/cdrom      /cdrom          iso9660         ro,user,noauto,unhide 1 1

Any user can mount /dev/cdrom on /cdrom simply by typing "mount /cdrom"
.. I have this command tied to F6 under the window managers that I use.
This way, all my friends who are not penguin-friendly don't have to
mess with bash while using Netscape or Acrobat when sitting at one of
my X terminals. Keeps complaints to a minimum :)

However, sudo is a great tool. I heartily recommend it. 

Michael J. Graffam (mgraffam@idsi.net) http://www.idsi.net/~mgraffam
They (who) seek to establish systems of government based on the
regimentation of all human beings by a handful of individual rulers..
call this a new order. It is not new, and it is not order."
				- Franklin Delano Roosevelt


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Can't startx as root with pre5
  1999-01-08  3:06 Can't startx as root with pre5 Peter Petrakis
  1999-01-08  4:07 ` Larry Snyder
@ 1999-01-08  6:32 ` Richard Henderson
  1999-01-09 17:07   ` Peter Petrakis
  1 sibling, 1 reply; 10+ messages in thread
From: Richard Henderson @ 1999-01-08  6:32 UTC (permalink / raw)
  To: axp-list

On Thu, Jan 07, 1999 at 10:06:02PM -0500, Peter Petrakis wrote:
> This is so weird. I login as root and type "startx". X starts up and
> dies before it can load the wm with the reason "no more space".

Would you strace the server and maybe find out what it's 
losing on?  I don't replicate your problem here.


r~


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Can't startx as root with pre5
  1999-01-08  4:07 ` Larry Snyder
  1999-01-08  4:13   ` Peter Petrakis
  1999-01-08  5:08   ` mgraffam
@ 1999-01-08 17:08   ` Stephen Williams
  1999-01-08 20:00     ` Larry Snyder
  2 siblings, 1 reply; 10+ messages in thread
From: Stephen Williams @ 1999-01-08 17:08 UTC (permalink / raw)
  To: axp-list


larrys@lexis-nexis.com said:
> mount won't let anyone but root do anything active.  Users can run it
> to see what's mounted where, but only root can mount/umount things.

Wrong. Note the "user" flags in these entries. That is the required magic
to allow users to mount certain things.

#
# Users can do these mounts
/dev/cdrom    /mnt/cdrom     iso9660    ro,user,noauto
/dev/scd0     /mnt/cdrom1    iso9660    ro,user,noauto
/dev/fd0      /mnt/floppy    vfat       rw,user,noauto
/dev/sdc1     /mnt/pd        ext2       user,noauto,exec,nosuid

-- 
Steve Williams                "The woods are lovely, dark and deep.
steve@icarus.com              But I have promises to keep,
steve@picturel.com            and lines to code before I sleep,
http://www.picturel.com       And lines to code before I sleep."



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Can't startx as root with pre5
  1999-01-08 17:08   ` Stephen Williams
@ 1999-01-08 20:00     ` Larry Snyder
  0 siblings, 0 replies; 10+ messages in thread
From: Larry Snyder @ 1999-01-08 20:00 UTC (permalink / raw)
  To: axp-list

Forgot entirely about that.  We keep a tight rein on users around here,
to the point where they have to sudo most things useful :-(
-ls-

Stephen Williams <steve@icarus.com> wrote:
> 
> larrys@lexis-nexis.com said:
> > mount won't let anyone but root do anything active.  Users can run it
> > to see what's mounted where, but only root can mount/umount things.
> 
> Wrong. Note the "user" flags in these entries. That is the required magic
> to allow users to mount certain things.
> 
> #
> # Users can do these mounts
> /dev/cdrom    /mnt/cdrom     iso9660    ro,user,noauto
> /dev/scd0     /mnt/cdrom1    iso9660    ro,user,noauto
> /dev/fd0      /mnt/floppy    vfat       rw,user,noauto
> /dev/sdc1     /mnt/pd        ext2       user,noauto,exec,nosuid
> 
> -- 
> Steve Williams                "The woods are lovely, dark and deep.
> steve@icarus.com              But I have promises to keep,
> steve@picturel.com            and lines to code before I sleep,
> http://www.picturel.com       And lines to code before I sleep."
> 
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Can't startx as root with pre5
  1999-01-08  6:32 ` Richard Henderson
@ 1999-01-09 17:07   ` Peter Petrakis
       [not found]     ` <19990109100643.B15858@dot.cygnus.com>
  0 siblings, 1 reply; 10+ messages in thread
From: Peter Petrakis @ 1999-01-09 17:07 UTC (permalink / raw)
  To: Richard Henderson, axp-list@redhat.com

[-- Attachment #1: Type: text/plain, Size: 915 bytes --]

This the first time I used strace so I hope I did it right. When I
attached strace X would start up but no windows manager. I had to quit
with ctrl+alt+bs. The strace is attached. I have no clue what I'm
looking for. Thanks alot.

Peter Petrakis

Richard Henderson wrote:
> 
> On Thu, Jan 07, 1999 at 10:06:02PM -0500, Peter Petrakis wrote:
> > This is so weird. I login as root and type "startx". X starts up and
> > dies before it can load the wm with the reason "no more space".
> 
> Would you strace the server and maybe find out what it's
> losing on?  I don't replicate your problem here.
> 
> r~
> 
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

-- 
STCC DEC Alpha Resource Page
http://math.stcc.mass.edu/petrakis
PeterPan@wn.net  AlphaGuy =)
"BLAM! Who the hell are you!? Name's Ash <click clock> Housewares..."

[-- Attachment #2: errors --]
[-- Type: text/plain, Size: 3552 bytes --]

12720 execve("/usr/X11R6/bin/startx", ["startx"], [/* 18 vars */]) = 0
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 61.39    0.123150         372       331           select
 14.29    0.028672          10      2839       332 read
  4.87    0.009767        2442         4         2 wait4
  4.04    0.008106           4      2286           lseek
  2.70    0.005420           9       581         1 ioctl
  2.10    0.004206          32       130        32 open
  1.87    0.003753          11       331           brk
  1.34    0.002691         538         5           execve
  1.17    0.002340          33        72           write
  1.01    0.002031           4       571           gettimeofday
  0.81    0.001620          16        99           close
  0.74    0.001482          11       135           mmap
  0.57    0.001150          21        54        21 stat
  0.52    0.001042         347         3           fork
  0.48    0.000955          13        75           munmap
  0.38    0.000769           4       177           SYS_345
  0.26    0.000516           4       129           sigaction
  0.24    0.000476          68         7         5 SYS_0
  0.21    0.000412          69         6           unlink
  0.19    0.000386           6        68           fstat
  0.17    0.000347          14        24           mprotect
  0.09    0.000174          58         3           sigreturn
  0.05    0.000094          12         8           lstat
  0.04    0.000090          45         2           link
  0.04    0.000090          45         2           getdents
  0.04    0.000082           2        35           sigprocmask
  0.03    0.000059           4        14           getxpid
  0.03    0.000058           3        20           getxuid
  0.03    0.000058          29         2           socket
  0.03    0.000057           5        12           SYS_346
  0.03    0.000052          26         2         1 access
  0.03    0.000051          26         2           bind
  0.02    0.000046           5        10         2 fcntl
  0.02    0.000042          21         2           chown
  0.02    0.000039          39         1           chdir
  0.02    0.000037           7         5           uname
  0.02    0.000033          33         1         1 readlink
  0.01    0.000030           5         6           personality
  0.01    0.000027           5         6           osf_getsysinfo
  0.01    0.000024           3         7           getxgid
  0.01    0.000023           4         6           osf_setsysinfo
  0.01    0.000022           7         3           setsockopt
  0.01    0.000021          21         1         1 mkdir
  0.01    0.000013           4         3           getpgrp
  0.01    0.000012           6         2           listen
  0.01    0.000011          11         1           fchmod
  0.00    0.000010           5         2           setpgid
  0.00    0.000009           5         2           getrlimit
  0.00    0.000006           6         1           kill
  0.00    0.000006           3         2           umask
  0.00    0.000005           5         1           setuid
  0.00    0.000005           5         1           setgid
  0.00    0.000005           5         1           getsockname
  0.00    0.000004           4         1           sethae
  0.00    0.000004           2         2           nanosleep
------ ----------- ----------- --------- --------- ----------------
100.00    0.200590                  8096       398 total







^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Can't startx as root with pre5 and pre 6
       [not found]         ` <19990109113052.A16165@dot.cygnus.com>
@ 1999-01-10  3:07           ` Peter Petrakis
  1999-01-10  3:14             ` Richard Henderson
  0 siblings, 1 reply; 10+ messages in thread
From: Peter Petrakis @ 1999-01-10  3:07 UTC (permalink / raw)
  To: Richard Henderson, axp-list@redhat.com

<sigh>. i just got pre 6 running and now I can't start any xserver when
I first login as root. When I got rid of my .xinitrc in pre5 it would
start up RH window managers but now with pre 6 it doesn't even do that.
Now there's no error at all when X quits. Any ideas? Thanks.

Peter Petrakis

 
-- 
STCC DEC Alpha Resource Page
http://math.stcc.mass.edu/petrakis
PeterPan@wn.net  AlphaGuy =)
"BLAM! Who the hell are you!? Name's Ash <click clock> Housewares..."


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Can't startx as root with pre5 and pre 6
  1999-01-10  3:07           ` Can't startx as root with pre5 and pre 6 Peter Petrakis
@ 1999-01-10  3:14             ` Richard Henderson
  0 siblings, 0 replies; 10+ messages in thread
From: Richard Henderson @ 1999-01-10  3:14 UTC (permalink / raw)
  To: Peter Petrakis, Richard Henderson, axp-list@redhat.com

On Sat, Jan 09, 1999 at 10:07:27PM -0500, Peter Petrakis wrote:
> <sigh>. i just got pre 6 running and now I can't start any xserver when
> I first login as root. When I got rid of my .xinitrc in pre5 it would
> start up RH window managers but now with pre 6 it doesn't even do that.
> Now there's no error at all when X quits. Any ideas? Thanks.

Find out what X client is exiting, then use strace and
find out why.  It's something specific to your system.


r~


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~1999-01-10  3:35 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-01-08  3:06 Can't startx as root with pre5 Peter Petrakis
1999-01-08  4:07 ` Larry Snyder
1999-01-08  4:13   ` Peter Petrakis
1999-01-08  5:08   ` mgraffam
1999-01-08 17:08   ` Stephen Williams
1999-01-08 20:00     ` Larry Snyder
1999-01-08  6:32 ` Richard Henderson
1999-01-09 17:07   ` Peter Petrakis
     [not found]     ` <19990109100643.B15858@dot.cygnus.com>
     [not found]       ` <3697AD79.D4EA26DD@wn.net>
     [not found]         ` <19990109113052.A16165@dot.cygnus.com>
1999-01-10  3:07           ` Can't startx as root with pre5 and pre 6 Peter Petrakis
1999-01-10  3:14             ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox