Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
su to root configuration error - unknown item
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
sinisterdomestik
l33t
l33t


Joined: 28 Aug 2003
Posts: 685
Location: Texas

PostPosted: Wed Aug 03, 2005 9:42 pm    Post subject: su to root configuration error - unknown item Reply with quote

not sure if this is the right forum, but everytime i try and su, i get this, although it lets me change to root, not sure why, or what, this is/means

Code:
sinister@BlackBeauty:~ su -
Password:
configuration error - unknown item 'FAILLOG_ENAB' (notify administrator)
configuration error - unknown item 'LASTLOG_ENAB' (notify administrator)
configuration error - unknown item 'MOTD_FILE' (notify administrator)
configuration error - unknown item 'FTMP_FILE' (notify administrator)
configuration error - unknown item 'ENV_PATH' (notify administrator)
configuration error - unknown item 'ENV_ROOTPATH' (notify administrator)
configuration error - unknown item 'ENV_SUPATH' (notify administrator)
configuration error - unknown item 'PASS_MIN_LEN' (notify administrator)
configuration error - unknown item 'CHFN_AUTH' (notify administrator)
root@BlackBeauty:~


anyone know what these mean??

Mod Edit: Made sticky and changed the title from "su to root error" - tomk
Unstuck. -- desultory
_________________
Thou shalt NEVER speak of removing thine Linux
Back to top
View user's profile Send private message
v3rtigo
Apprentice
Apprentice


Joined: 15 Jun 2004
Posts: 179

PostPosted: Wed Aug 03, 2005 10:02 pm    Post subject: Reply with quote

Did you do etc-update after your last emerge?

I remember i had same problem few days ago when tried to login as root it solved after etc-update.
Back to top
View user's profile Send private message
sinisterdomestik
l33t
l33t


Joined: 28 Aug 2003
Posts: 685
Location: Texas

PostPosted: Wed Aug 03, 2005 10:09 pm    Post subject: Reply with quote

ahhhhh, easy fix :) thanks
_________________
Thou shalt NEVER speak of removing thine Linux
Back to top
View user's profile Send private message
zietbukuel
l33t
l33t


Joined: 30 Dec 2005
Posts: 607

PostPosted: Sat Dec 31, 2005 5:50 pm    Post subject: Reply with quote

I cant fix it i get these message:

configuration error - unknown item 'PASS_MIN_LEN' (notify administrator)

BUT i have this in my /etc/login.defs

PASS_MIN_LEN 5

I already reinstalled pam-login, replaced the config files with the new ones, etc... any help?
Back to top
View user's profile Send private message
Blue Fox
Apprentice
Apprentice


Joined: 09 Apr 2004
Posts: 216

PostPosted: Sun Jan 08, 2006 9:57 pm    Post subject: Reply with quote

Well, up, this is happening to me today(ziet's problem, not the first one) :cry:
_________________
"Never argue with and idiot cuz he bring you down to his level and beat you with experience"
Back to top
View user's profile Send private message
Blue Fox
Apprentice
Apprentice


Joined: 09 Apr 2004
Posts: 216

PostPosted: Mon Jan 09, 2006 12:26 pm    Post subject: Reply with quote

I've figured this one out: In /etc/login.defs there is a line
Code:

PASS_MIN_LEN 5
at the end of the file, commented it out and error is gone. :)
_________________
"Never argue with and idiot cuz he bring you down to his level and beat you with experience"
Back to top
View user's profile Send private message
grad_guy
Tux's lil' helper
Tux's lil' helper


Joined: 16 Nov 2004
Posts: 109
Location: UCSD, La Jolla, CA

PostPosted: Tue Mar 14, 2006 8:47 pm    Post subject: Reply with quote

I did this.
Code:
etc-update

and
Code:
env-update && source /etc/profile

But it doesn't help at all.

login.defs said those parameters are all optional, some said it'OK to just comment them out.

Is that the right way to fix this?
If someone could confirm me on this, it'd be nice.

##EDIT##
re-emerge pam-login and etc-update didn't help either
Back to top
View user's profile Send private message
csab
Apprentice
Apprentice


Joined: 15 Apr 2005
Posts: 152
Location: Atlanta, GA

PostPosted: Wed Mar 15, 2006 1:45 am    Post subject: Reply with quote

Just the stupid question to you, who could not solve this problem: when you run etc-update, you do let it to update your configuration files, right?
Back to top
View user's profile Send private message
telengard
n00b
n00b


Joined: 21 Jan 2004
Posts: 12
Location: New Hampshire

PostPosted: Wed Mar 15, 2006 1:48 am    Post subject: Reply with quote

v3rtigo wrote:
Did you do etc-update after your last emerge?

I remember i had same problem few days ago when tried to login as root it solved after etc-update.


I got this error also, but after building I could have sworn there was no message to update configs via etc-update. pam was one of the packages that was upgraded. That did fix the issue for me though, thanks for the help.

~telengard
Back to top
View user's profile Send private message
grad_guy
Tux's lil' helper
Tux's lil' helper


Joined: 16 Nov 2004
Posts: 109
Location: UCSD, La Jolla, CA

PostPosted: Wed Mar 15, 2006 2:08 am    Post subject: Reply with quote

csab wrote:
Just the stupid question to you, who could not solve this problem: when you run etc-update, you do let it to update your configuration files, right?


Sorry for being a noob.
I know I am.

etc-update DOES help fix this if you let it update the config files.

Thanks

##EDIT##
What I actually did are the following(incase some need to know);
etc-update then let it auto-merge (-5)
Then I go after the files I think I change something in there, e.g. /etc/conf.d/local.start , /etc/conf.d/hostname , /etc/conf.d/domainname, /etc/rc.conf ...
And fix them.

I believe the topic deserves a little update, "[SOLVED]". :D
Back to top
View user's profile Send private message
t35t0r
n00b
n00b


Joined: 27 Feb 2005
Posts: 68
Location: irc.freenode.net

PostPosted: Sat Mar 18, 2006 7:49 pm    Post subject: Reply with quote

The solution to this problem is emerge pam-login and then run dispatch-conf or etc-update and let it update the files, esp login.defs
Back to top
View user's profile Send private message
StarDragon
Guru
Guru


Joined: 19 Jun 2005
Posts: 390
Location: tEXas

PostPosted: Sun Mar 19, 2006 10:53 pm    Post subject: Reply with quote

Cool, that works... I love you guys! 8)
_________________
"After all, a person's a person, no matter how small."--Horton Hears A Who!
Back to top
View user's profile Send private message
joe82
n00b
n00b


Joined: 10 Feb 2006
Posts: 23
Location: Ludwigsburg, Germany

PostPosted: Wed Mar 22, 2006 12:51 pm    Post subject: Reply with quote

t35t0r wrote:
The solution to this problem is emerge pam-login and then run dispatch-conf or etc-update and let it update the files, esp login.defs


Didn't work for me. After emerging pam-login no configuration files should be updatet. etc-update and dispatch-conf don't do anything. Someone may post his /etc/login.defs to check which lines can be removed or uncommented.

Thx
Back to top
View user's profile Send private message
Pizentios
n00b
n00b


Joined: 28 Feb 2005
Posts: 26
Location: Brandon, Manitoba, Canada

PostPosted: Wed Mar 22, 2006 3:34 pm    Post subject: Reply with quote

i just commented out the lines in login.defs that were causing the errors, seems to work fin for me.
_________________
-Pizentios
Back to top
View user's profile Send private message
Gherkin
n00b
n00b


Joined: 03 Mar 2006
Posts: 4

PostPosted: Wed Mar 22, 2006 5:44 pm    Post subject: Reply with quote

I encountered this error whilst su'ing during an emerge -uD world. After the emerge was finished I ran etc-update, compared the changes to files I had modified and automerged the rest. Problem solved.
_________________
maguire's emwrap
Back to top
View user's profile Send private message
asterix404
Apprentice
Apprentice


Joined: 05 Nov 2004
Posts: 213

PostPosted: Mon Apr 17, 2006 6:52 pm    Post subject: Reply with quote

You know though, this is a funny funny thing... EVN_ROOTPATH for me is being bitchy. I made a horrid mistake (when will i learn) and deleated the old configs, the things that are like... .__cfg???? whatever. The funny bit from this is this:

ENV_ROOTPATH /sbin:/bin:/usr/sbin:/usr/bin
ENV_SUPATH /sbin:/bin:/usr/sbin:/usr/bin

my rootpath defaults to my user path when I log on as root, when I su this actuilly does work. It made my comptuer better! This to me means that they changed a lot of init vars in the last update and didn't bother to make the /etc/login.def backwards compatable thinking that all you would have to do is etc-update. IE I really think that even if you have these errors it's not going to do anything harmful, can someone back me up here though? I can't really see any security holes anywhere from the vars that are here, but this just seems to beg the question...

Where does root get it's path from? The only thing I could come up with was that the dev's made it just like the users where you have your .bashrc and this defines everything for your env login. If I run into some problems I'll start posting but for now, without a valid actual file, I am not seeing any issues. I could of course be horrably wrong though. ~Ben
Back to top
View user's profile Send private message
sebastianfietzek
n00b
n00b


Joined: 21 Apr 2006
Posts: 2

PostPosted: Fri Apr 21, 2006 5:23 am    Post subject: Reply with quote

hi!

i had the same problem and i guess i found a working solution, but it is not the best way to fix the problem so if there are other ways try these...

first you have to backup /etc/login.defs and the complete folder /etc/pam.d/ then you do "emerge --unmerge pam pam-login". after that you delete these files and folders (/etc/login.defs and /etc/pam.d/) completely and re-emerge pam and pam-login. (emerge pam pam-login). the last step is to copy the backed-up files back into the /etc-folder and do NOT overwrite the "newly" emerged files.

it worked for me, but like i said: if you can fix it in another way you should do it!
Back to top
View user's profile Send private message
ptaylor
n00b
n00b


Joined: 18 Apr 2006
Posts: 2

PostPosted: Fri Apr 21, 2006 1:34 pm    Post subject: Reply with quote

this one scared me, but the etc-update worked :)
Code:
etc-update
env-update && source /etc/profile

yay!
_________________
Philip Taylor
Back to top
View user's profile Send private message
pacho2
Developer
Developer


Joined: 04 Mar 2005
Posts: 2599
Location: Oviedo, Spain

PostPosted: Sun Apr 23, 2006 1:05 pm    Post subject: Reply with quote

It's a gnome-system-tools bug. If you try to create a new user account using this app, login will fail
Back to top
View user's profile Send private message
ajmacca
n00b
n00b


Joined: 28 Apr 2006
Posts: 2
Location: Brisbane, Australia

PostPosted: Sat Apr 29, 2006 3:29 am    Post subject: Reply with quote

I just wanted to confirm that sebastianfietzek's method worked for me also. It's only been a day, and I haven't restarted yet, but after running
Code:
env-update && source /etc/profile
everything is working fine. If I encounter any other problems, I'll post them back here. And before anybody asks, for some reason that escapes me now, I mustn't have let etc-update write a new login.defs file, which is why etc-update doesn't help me.
Back to top
View user's profile Send private message
pacho2
Developer
Developer


Joined: 04 Mar 2005
Posts: 2599
Location: Oviedo, Spain

PostPosted: Sat Apr 29, 2006 10:18 am    Post subject: Reply with quote

If you run "users-admin" (from gnome-system-tools), you will suffer the problem again
Back to top
View user's profile Send private message
avieth
Veteran
Veteran


Joined: 17 Sep 2004
Posts: 1945
Location: Canada

PostPosted: Sat Apr 29, 2006 7:46 pm    Post subject: Reply with quote

I've got my own solution. What I had done was updated world, then since I don't trust etc-update at all (it f**ked me over before) I didn't let it update anything. So I moved /etc/login.defs to /etc/login.defs.old and remerged pam-login. It worked.
Back to top
View user's profile Send private message
senthilkumar00
n00b
n00b


Joined: 17 Apr 2005
Posts: 1

PostPosted: Wed May 03, 2006 1:44 am    Post subject: Reply with quote

I had the same problem. I actually emerge pam-login and did etc-update with option -3. It worked for me
Back to top
View user's profile Send private message
ed_f
n00b
n00b


Joined: 04 May 2006
Posts: 1

PostPosted: Thu May 04, 2006 9:49 am    Post subject: Reply with quote

So the problem seems to be that some oprions are present in /etc/login.defs that the system does not recognize while loging in (or su-ing).
The only problem I had was the line "PASS_MIN_LEN 5".

I looked at the man page for login.defs and could not find any definition for PASS_MIN_LEN, however I found a man page on the internet which describes it as a password restriction option used by passwd (the man page : http://www.cs.vassar.edu/cgi-bin/man2html?login.defs+5). Could this be a deprecated option or distro-specific option or something like that?

I simply removed the line. The I tried to set the password to a very short one, and I still got a warning about the password beein to short.

Then I tried messing about with the user profiles with the gnome-system-tools and quite correctly the line "PASS_MIN_LEN 5" reappeared in /etc/login.defs/
Back to top
View user's profile Send private message
MilkSjeik
n00b
n00b


Joined: 17 Apr 2005
Posts: 66
Location: Belgium

PostPosted: Sun May 07, 2006 7:06 pm    Post subject: Reply with quote

avieth wrote:
I've got my own solution. What I had done was updated world, then since I don't trust etc-update at all (it f**ked me over before) I didn't let it update anything. So I moved /etc/login.defs to /etc/login.defs.old and remerged pam-login. It worked.


Same thing for me. I've also learned to not use Gnome windows when creating another user ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum