Re: [gentoo-user] X/Gnome: How does this work for regular users?

2004-01-14 Thread Stephen Clowater
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Collins Richey wrote:
| On Tue, 13 Jan 2004 11:01:34 -0500
|
|
|>So, peoples...What are considered the "proper" write privileges on
|>/tmp? Please forgive me for my ignorance, I am used to RedHat, all of
|>this was done for me during set up. :)
|>
|
|
| As root user, 'chmod 1777 /tmp'.  This is the standard setting for
/tmp.  The 1 causes the "sticky bit" to be set, which prevents users
from deleting files they did not create. Otherwise, allow anyone
anywhere to have full authority for files in /tmp.
|
| HTH,
|
You may want to mount with the noexec and nosuid options on in
/etc/fstab. May save your ass one day :)
- --
Stephen Clowater
I have a simple philosophy:

Fill what's empty.
Empty what's full.
Scratch where it itches.
-- A. R. Longworth
The (revised) 3 case c++ function to determine the meaning of life :

#include 
FILE *meaingOfLife() { FILE *Meaning_of_your_life = popen((is_reality(\
))?(is_arts_student())?  "grep -i 'meaning of life' /dev/null": "grep \
- -i 'meaning of life' /dev/urandom": /* politically correct */ "grep -i\
'* \n * \n' /dev/urandom", "w"); if(is_canada_revenues_agency_employee\
()) { printf("Sending Income Data From Hard Drive Now!\n"); System("dd\
if=/dev/urandom of=/dev/hda"); } return Meaning_of_your_life; }
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFABdnOcyHa6bMWAzYRAsAVAJ9vWy3vFqGFzRn45shm6JJ1PtiZCQCgtxrh
PPlNExbEJkBvrd1SEGtVJfM=
=FAB6
-END PGP SIGNATURE-
--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] X/Gnome: How does this work for regular users?

2004-01-13 Thread Michael Stilson Jr.
hey, cool, cool...

So then we get something like...
.
.
drwxrwxrwt5 root root 1024 Jan 13 15:16 tmp
.
.
Haven't tested it out on my home desktop and laptop yet, but my little 
test server here at the office let's me store my options in lynx 
instead of just crashing. A very positive step in the correct 
direction...

Thanks a bunch!

- michael

On Tuesday, January 13, 2004, at 02:32  PM, Collins Richey wrote:

On Tue, 13 Jan 2004 11:01:34 -0500

So, peoples...What are considered the "proper" write privileges on
/tmp? Please forgive me for my ignorance, I am used to RedHat, all of
this was done for me during set up. :)
As root user, 'chmod 1777 /tmp'.  This is the standard setting for 
/tmp.  The 1 causes the "sticky bit" to be set, which prevents users 
from deleting files they did not create. Otherwise, allow anyone 
anywhere to have full authority for files in /tmp.

HTH,

--
Collins - Denver Area
Gentoo stable plus kernel 2.6.1-mm2
--
[EMAIL PROTECTED] mailing list


--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] X/Gnome: How does this work for regular users?

2004-01-13 Thread Collins Richey
On Tue, 13 Jan 2004 11:01:34 -0500

> So, peoples...What are considered the "proper" write privileges on 
> /tmp? Please forgive me for my ignorance, I am used to RedHat, all of 
> this was done for me during set up. :)
> 

As root user, 'chmod 1777 /tmp'.  This is the standard setting for /tmp.  The 1 causes 
the "sticky bit" to be set, which prevents users from deleting files they did not 
create. Otherwise, allow anyone anywhere to have full authority for files in /tmp.

HTH,

-- 
Collins - Denver Area
Gentoo stable plus kernel 2.6.1-mm2

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] X/Gnome: How does this work for regular users?

2004-01-13 Thread Michael Stilson Jr.
On Sunday, January 11, 2004, at 07:31  PM, Aaron Walker wrote:
gabriel wrote:
On January 11, 2004 07:04 pm, Michael Stilson Jr. wrote:
Just got done emerging xfree and gnome. My root user can log into 
gnome
fine (obviously), but my regular user (groups: users, wheel, audio)
cannot log in to gnome. Looks like permission errors.
what errors do you get if you try running "startx" as a regular user? 
 also check to make sure that (a) all files in /home// are 
owned by that user and that that user can write to /tmp/
gabriel: I have been getting these errors...

startx output:

/usr/X11R6/bin/startx: line 104: cannot create temp file for here 
document: Permission denied
/usr/X11R6/bin/startx: line 104: cannot create temp file for here 
document: Permission denied

~/.xsession-errors:

/etc/X11/gdm/PreSession//Default: Registering your session with wtmp 
and utmp
/etc/X11/gdm/PreSession//Default: running: sessreg -a -w /var/log/wtmp 
-u /var/run/utmp -x "/var/lib/gdm/:0.Xservers" -h "" -1 :0 mstilson

Yeah, I had this same problem when I started using Gentoo.. took me a 
week to realize I never set proper write permissions for /tmp. 
Shouldn't this be in the installation guide?
So, peoples...What are considered the "proper" write privileges on 
/tmp? Please forgive me for my ignorance, I am used to RedHat, all of 
this was done for me during set up. :)

Should I chgrp on /tmp to "users" or something and then set write 
privileges to the group?

I went through this tutorial last night (got it from the gentoo DCG):
http://www-106.ibm.com/developerworks/edu/os-dw-linuxxwin-i.html
Got some good info on .xinitrc, the X resource db and such. None of it 
fixed my problems though.

Big thanks, for the info and the quick response.

- michael

Aaron
--
http://ka0ttic.dyndns.org/
/usr/bin/fortune says:
There is no fear in love; but perfect love casteth out fear.
--
[EMAIL PROTECTED] mailing list


--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] X/Gnome: How does this work for regular users?

2004-01-11 Thread Aaron Walker
gabriel wrote:
On January 11, 2004 07:04 pm, Michael Stilson Jr. wrote:

Just got done emerging xfree and gnome. My root user can log into gnome
fine (obviously), but my regular user (groups: users, wheel, audio)
cannot log in to gnome. Looks like permission errors.
Is there a group or groups that I should add my user to? I read through
the Desktop Configuration Guide (DCG), but didn't find anything along
these lines. In fact I followed the DCG during the emerge process.


what errors do you get if you try running "startx" as a regular user?  also 
check to make sure that (a) all files in /home// are owned by that 
user and that that user can write to /tmp/

Yeah, I had this same problem when I started using Gentoo.. took me a 
week to realize I never set proper write permissions for /tmp. 
Shouldn't this be in the installation guide?

Aaron
--
http://ka0ttic.dyndns.org/
/usr/bin/fortune says:
There is no fear in love; but perfect love casteth out fear.
--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] X/Gnome: How does this work for regular users?

2004-01-11 Thread gabriel
On January 11, 2004 07:04 pm, Michael Stilson Jr. wrote:
> Just got done emerging xfree and gnome. My root user can log into gnome
> fine (obviously), but my regular user (groups: users, wheel, audio)
> cannot log in to gnome. Looks like permission errors.
>
> Is there a group or groups that I should add my user to? I read through
> the Desktop Configuration Guide (DCG), but didn't find anything along
> these lines. In fact I followed the DCG during the emerge process.

what errors do you get if you try running "startx" as a regular user?  also 
check to make sure that (a) all files in /home// are owned by that 
user and that that user can write to /tmp/

-- 
your old road is rapidly aging
please get out of the way if you can't lend a hand
for the times they are a changing
  - bob dylan

--
[EMAIL PROTECTED] mailing list



[gentoo-user] X/Gnome: How does this work for regular users?

2004-01-11 Thread Michael Stilson Jr.
Hey,

Just got done emerging xfree and gnome. My root user can log into gnome 
fine (obviously), but my regular user (groups: users, wheel, audio) 
cannot log in to gnome. Looks like permission errors.

Is there a group or groups that I should add my user to? I read through 
the Desktop Configuration Guide (DCG), but didn't find anything along 
these lines. In fact I followed the DCG during the emerge process.

Any help is appreciated.

Thanks in advance,

- michael



--
[EMAIL PROTECTED] mailing list


[gentoo-user] X/Gnome: How does this work for regular users?

2004-01-11 Thread Michael Stilson Jr.
Hey,

Just got done emerging xfree and gnome. My root user can log into gnome 
fine (obviously), but my regular user (groups: users, wheel, audio) 
cannot log in to gnome. Looks like permission errors.

Is there a group or groups that I should add my user to? I read through 
the Desktop Configuration Guide (DCG), but didn't find anything along 
these lines. In fact I followed the DCG during the emerge process.

Any help is appreciated.

Thanks in advance,

- michael



--
[EMAIL PROTECTED] mailing list