Re: [gentoo-user] My Gentoo is too secure ... ;)

2006-03-24 Thread John Jolet


On Mar 23, 2006, at 11:31 PM, Gabriel Dain wrote:


If the problem is you log straight into KDE, you could boot from the
Gentoo CD, and chroot to your system

Gabriel Dain


or get another virtual terminal (with x running, it's shift-alt f2,  
or shift-control f2, i forget which).  that will give you a login  
prompt and you can log in directly as root..


--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] My Gentoo is too secure ... ;)

2006-03-24 Thread Boyd Stephen Smith Jr.
On Friday 24 March 2006 07:13, John Jolet [EMAIL PROTECTED] wrote about 'Re: 
[gentoo-user] My Gentoo is too secure ... ;)':
 On Mar 23, 2006, at 11:31 PM, Gabriel Dain wrote:
  If the problem is you log straight into KDE, you could boot from the
  Gentoo CD, and chroot to your system

 or get another virtual terminal (with x running, it's shift-alt f2,
 or shift-control f2, i forget which).

I believe you mean Ctrl-Alt-F[1-6] (more or less, depending on your 
settings.)

-- 
If there's one thing we've established over the years,
it's that the vast majority of our users don't have the slightest
clue what's best for them in terms of package stability.
-- Gentoo Developer Ciaran McCreesh
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] My Gentoo is too secure ... ;)

2006-03-24 Thread John Jolet


On Mar 24, 2006, at 8:40 AM, Boyd Stephen Smith Jr. wrote:

On Friday 24 March 2006 07:13, John Jolet [EMAIL PROTECTED] wrote  
about 'Re:

[gentoo-user] My Gentoo is too secure ... ;)':

On Mar 23, 2006, at 11:31 PM, Gabriel Dain wrote:

If the problem is you log straight into KDE, you could boot from the
Gentoo CD, and chroot to your system


or get another virtual terminal (with x running, it's shift-alt f2,
or shift-control f2, i forget which).


I believe you mean Ctrl-Alt-F[1-6] (more or less, depending on your
settings.)


yes, i can never remember...i just hold 'em all down :).
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] My Gentoo is too secure ... ;)

2006-03-23 Thread Etaoin Shrdlu
On Thursday 23 March 2006 21:35, Meino Christian Cramer wrote:

  Where do I have to tweak to allow su from xterm, mrxvt or whatever
  owned by a normal user ?

I think you just need to add the user to the wheel group.
HTH
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] My Gentoo is too secure ... ;)

2006-03-23 Thread Nick Rout

On Thu, 23 Mar 2006 21:58:10 +0100
Etaoin Shrdlu wrote:

 On Thursday 23 March 2006 21:35, Meino Christian Cramer wrote:
 
   Where do I have to tweak to allow su from xterm, mrxvt or whatever
   owned by a normal user ?
 
 I think you just need to add the user to the wheel group.
 HTH

which you probably cannot do without logging in as root at a console as
once you log into X as user, you cannot su. chicken egg chicken egg.

Also i recommend sudo, but thats another whole story...

 -- 
 gentoo-user@gentoo.org mailing list

-- 
Nick Rout [EMAIL PROTECTED]

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] My Gentoo is too secure ... ;)

2006-03-23 Thread b.n.

I think you just need to add the user to the wheel group.
HTH


which you probably cannot do without logging in as root at a console as
once you log into X as user, you cannot su. chicken egg chicken egg.


?!?
where's the problem?
logins as root at the tty -- adds user to wheel -- startx -- everyone 
is happy.


m.
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] My Gentoo is too secure ... ;)

2006-03-23 Thread Etaoin Shrdlu
On Thursday 23 March 2006 22:42, Nick Rout wrote:

 which you probably cannot do without logging in as root at a console
 as once you log into X as user, you cannot su. chicken egg chicken
 egg.

Not necessarily: if you use kde, konsole has a root shell feature.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] My Gentoo is too secure ... ;)

2006-03-23 Thread Antoine
so that means log into root before you run X.
# vi groups (or whatever the correct way of doing it is)
add your user to wheel
you're done
Cheers
Antoine

On 23/03/06, Etaoin Shrdlu [EMAIL PROTECTED] wrote:
 On Thursday 23 March 2006 21:35, Meino Christian Cramer wrote:

   Where do I have to tweak to allow su from xterm, mrxvt or whatever
   owned by a normal user ?

 I think you just need to add the user to the wheel group.
 HTH
 --
 gentoo-user@gentoo.org mailing list




--
This is where I should put some witty comment.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] My Gentoo is too secure ... ;)

2006-03-23 Thread Gabriel Dain
  I think you just need to add the user to the wheel group.
  HTH

 which you probably cannot do without logging in as root at a console as
 once you log into X as user, you cannot su. chicken egg chicken egg.

Thats true... However:
 I can login as root at the text console.

useradd -G wheel *name* *password*

Gabriel

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] My Gentoo is too secure ... ;)

2006-03-23 Thread Nick Rout

On Thu, 23 Mar 2006 23:16:54 +0100
Etaoin Shrdlu wrote:

 On Thursday 23 March 2006 22:42, Nick Rout wrote:
 
  which you probably cannot do without logging in as root at a console
  as once you log into X as user, you cannot su. chicken egg chicken
  egg.
 
 Not necessarily: if you use kde, konsole has a root shell feature.

Which I suspect only works if you can use su, although i am not 100% on
that.

 -- 
 gentoo-user@gentoo.org mailing list

-- 
Nick Rout [EMAIL PROTECTED]

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] My Gentoo is too secure ... ;)

2006-03-23 Thread Boyd Stephen Smith Jr.
On Thursday 23 March 2006 17:08, Nick Rout [EMAIL PROTECTED] wrote about 
'Re: [gentoo-user] My Gentoo is too secure ... ;)':
 On Thu, 23 Mar 2006 23:16:54 +0100
 Etaoin Shrdlu wrote:
  Not necessarily: if you use kde, konsole has a root shell feature.

 Which I suspect only works if you can use su, although i am not 100% on
 that.

While KDE may do some autodetection re: this, my Root 
Shell (uncustomized) from Konsole runs 'su -'; which will be a problem if 
you want to use sudo instead. (Or can't su for some reason.)

If you do, you can edit the existing session or create a new session to run 
'sudo -s'.  I use this nice feature to have a session that runs su - -c 
'screen -x -R -s /bin/bash' (and a similar one for non-root).

I don't know show well (if at all) screen runs under sudo, but the 
equivalent should be something along the lines of 'sudo screen -x -R 
-s /bin/bash'

Hrm, after writing this I realize I'm not in the sudo thread anymore.  
*shrug*  Maybe this is useful information to someone.

-- 
If there's one thing we've established over the years,
it's that the vast majority of our users don't have the slightest
clue what's best for them in terms of package stability.
-- Gentoo Developer Ciaran McCreesh
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] My Gentoo is too secure ... ;)

2006-03-23 Thread Nick Rout

On Thu, 23 Mar 2006 23:08:36 +
b.n. wrote:

 I think you just need to add the user to the wheel group.
 HTH
  
  which you probably cannot do without logging in as root at a console as
  once you log into X as user, you cannot su. chicken egg chicken egg.
 
 ?!?
 where's the problem?
 logins as root at the tty -- adds user to wheel -- startx -- everyone 
 is happy.

Oh I agree, I only meant that trying to do it from within a user login 
(including X) created the chicken/egg problem.

Also of course you have to remember that you need to log in afresh after
being added to a new group!

-- 
Nick Rout [EMAIL PROTECTED]

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] My Gentoo is too secure ... ;)

2006-03-23 Thread Matt Richards

 On Thu, 23 Mar 2006 23:16:54 +0100
 Etaoin Shrdlu wrote:

 On Thursday 23 March 2006 22:42, Nick Rout wrote:

  which you probably cannot do without logging in as root at a console
  as once you log into X as user, you cannot su. chicken egg chicken
  egg.

 Not necessarily: if you use kde, konsole has a root shell feature.

 Which I suspect only works if you can use su, although i am not 100% on
 that.

dosn't su just have its own /etc/pam.d/su file that has pam_rootok.so in
it so root can just su without a passwd and it also has a module that
checks if they are in the wheel group.

 --
 gentoo-user@gentoo.org mailing list

 --
 Nick Rout [EMAIL PROTECTED]

 --
 gentoo-user@gentoo.org mailing list




-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] My Gentoo is too secure ... ;)

2006-03-23 Thread Ian Hastie
On Thu, 23 Mar 2006 22:52:58 +0100
Antoine [EMAIL PROTECTED] wrote:

 so that means log into root before you run X.
 # vi groups (or whatever the correct way of doing it is)

vigr is the right editor for the group file and vipw for passwd.  The
-s switch makes them edit the shadow file.  As the man page says
the programs will set the appropriate locks to prevent file
corruption.

 add your user to wheel

The method I've seen referred to on Gento is

gpasswd -a user group

which adds the user to the named group.

-- 
Ian.

EOM
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] My Gentoo is too secure ... ;)

2006-03-23 Thread Alex Schuster
Antoine writes:

 # vi groups (or whatever the correct way of doing it is)
 add your user to wheel

I think it is gpasswd -a user wheel.

Alex
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] My Gentoo is too secure ... ;)

2006-03-23 Thread Gabriel Dain
If the problem is you log straight into KDE, you could boot from the
Gentoo CD, and chroot to your system

Gabriel Dain

-- 
gentoo-user@gentoo.org mailing list