LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 09-18-2004, 02:23 PM   #1
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
Gentoo permission problems


I'm setting up Gentoo, and so far it's great, but I have a few problems.
Before I start, I just wanna say that I have read the handbook and I haven't found my problems.
Gentoo is setup nicely, and I have Xorg setup and configured, but the permissions are way off on the system. There are two problems:
1. I can login as root, but only once, other times it tells me that the authentication failed (I did type in the password correctly). Also, if I'm in my regular user account and try to su to root, it tells me authentication failed (again, I made sure I was typing in the right password).
2. Xorg will only start for root, when I start it as regular user it tells me:
'X must be suid root'
Any ideas?
 
Old 09-18-2004, 02:39 PM   #2
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
For #1, does your /etc/securetty only have one console listed in it?

#2, the answer is that "X must be setuid root" - change that by making sure root is the owner of /usr/bin/X11/X and then 'chmod u+s /usr/bin/X11/X'.
 
Old 09-18-2004, 06:04 PM   #3
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Original Poster
Rep: Reputation: 47
For #1: Yes, I only have tts/0 in it. Anything else I could put in there? When I say that I can only login as root once, I mean I login as root (from the startup at the prompt), do some stuff, then logout, and I can't get back in. I'll do what you said about #2. Thanks.
 
Old 09-18-2004, 08:48 PM   #4
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
Try adding vc/1 through vc/8 to securetty, and see if that helps.
 
Old 09-18-2004, 10:57 PM   #5
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Original Poster
Rep: Reputation: 47
It's already there, vc/1 to vc/12. Any other suggestions? The login only on tts/0 is eliminated, but I can't login as root when I try to su from my regular user.
 
Old 09-18-2004, 11:17 PM   #6
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
I think the su is a separate issue - have a look at whether there's a file for su in /etc/pam.d, or check pam.conf if that directory doesn't exist.
 
Old 09-18-2004, 11:44 PM   #7
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Original Poster
Rep: Reputation: 47
I took a look at the file, and it had a line that, if uncommented, allowed people in the wheel group to su without a password. I just uncommented that, added my account, and everything is fine. Thanks.
 
Old 09-19-2004, 04:49 AM   #8
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
for su to work the user has to be in the 'wheel' group.
No idea about xorg - that didn't work for me at all.

Last edited by crashmeister; 09-19-2004 at 04:51 AM.
 
Old 09-21-2004, 08:19 PM   #9
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
Quote:
for su to work the user has to be in the 'wheel' group.
Only if you have that option set in /etc/pam.d/su - my system doesn't even have a wheel group
 
Old 09-23-2004, 04:26 AM   #10
Mikhail_16
Member
 
Registered: Oct 2003
Distribution: Gentoo rules them all
Posts: 279

Rep: Reputation: 31
Quote:
Originally posted by CroMagnon
Only if you have that option set in /etc/pam.d/su - my system doesn't even have a wheel group
Wheel group is almost, but not quite, gentoo-specific.
 
Old 09-23-2004, 07:06 PM   #11
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
Nah, wheel is pretty far from gentoo specific. It's not even Linux specific!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Permission Problems Wynand1 Linux - Security 1 01-28-2005 05:33 AM
HD permission problems Sarrin Linux - Software 1 05-13-2004 09:16 PM
sm permission problems Jestrik Linux - Networking 0 03-27-2004 07:00 AM
Permission Problems Ekim Gram Linux - Newbie 42 05-12-2003 03:23 PM
Permission Problems Bigun Linux - General 1 11-19-2002 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 10:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration