Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

su to root configuration error - unknown item

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
56 posts
  • 1
  • 2
  • 3
  • Next
Author
Message
sinisterdomestik
l33t
l33t
User avatar
Posts: 685
Joined: Thu Aug 28, 2003 5:09 am
Location: Texas

su to root configuration error - unknown item

  • Quote

Post by sinisterdomestik » Wed Aug 03, 2005 9:42 pm

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: Select all

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
Top
v3rtigo
Apprentice
Apprentice
Posts: 179
Joined: Tue Jun 15, 2004 6:15 pm

  • Quote

Post by v3rtigo » Wed Aug 03, 2005 10:02 pm

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.
Top
sinisterdomestik
l33t
l33t
User avatar
Posts: 685
Joined: Thu Aug 28, 2003 5:09 am
Location: Texas

  • Quote

Post by sinisterdomestik » Wed Aug 03, 2005 10:09 pm

ahhhhh, easy fix :) thanks
Thou shalt NEVER speak of removing thine Linux
Top
zietbukuel
l33t
l33t
User avatar
Posts: 607
Joined: Fri Dec 30, 2005 9:45 pm

  • Quote

Post by zietbukuel » Sat Dec 31, 2005 5:50 pm

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?
Top
Blue Fox
Apprentice
Apprentice
User avatar
Posts: 216
Joined: Fri Apr 09, 2004 11:51 pm

  • Quote

Post by Blue Fox » Sun Jan 08, 2006 9:57 pm

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"
Top
Blue Fox
Apprentice
Apprentice
User avatar
Posts: 216
Joined: Fri Apr 09, 2004 11:51 pm

  • Quote

Post by Blue Fox » Mon Jan 09, 2006 12:26 pm

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

Code: Select all

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"
Top
grad_guy
Tux's lil' helper
Tux's lil' helper
Posts: 109
Joined: Tue Nov 16, 2004 6:35 pm
Location: UCSD, La Jolla, CA
Contact:
Contact grad_guy
Website

  • Quote

Post by grad_guy » Tue Mar 14, 2006 8:47 pm

I did this.

Code: Select all

etc-update
and

Code: Select all

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
Top
csab
Apprentice
Apprentice
Posts: 152
Joined: Fri Apr 15, 2005 3:20 pm
Location: Atlanta, GA

  • Quote

Post by csab » Wed Mar 15, 2006 1:45 am

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?
Top
telengard
n00b
n00b
User avatar
Posts: 12
Joined: Wed Jan 21, 2004 5:22 am
Location: New Hampshire
Contact:
Contact telengard
Website

  • Quote

Post by telengard » Wed Mar 15, 2006 1:48 am

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
Top
grad_guy
Tux's lil' helper
Tux's lil' helper
Posts: 109
Joined: Tue Nov 16, 2004 6:35 pm
Location: UCSD, La Jolla, CA
Contact:
Contact grad_guy
Website

  • Quote

Post by grad_guy » Wed Mar 15, 2006 2:08 am

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
Top
t35t0r
n00b
n00b
Posts: 68
Joined: Sun Feb 27, 2005 6:04 pm
Location: irc.freenode.net

  • Quote

Post by t35t0r » Sat Mar 18, 2006 7:49 pm

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
Top
StarDragon
Guru
Guru
User avatar
Posts: 390
Joined: Sun Jun 19, 2005 3:45 pm
Location: tEXas

  • Quote

Post by StarDragon » Sun Mar 19, 2006 10:53 pm

Cool, that works... I love you guys! 8)
"After all, a person's a person, no matter how small."--Horton Hears A Who!
Top
joe82
n00b
n00b
Posts: 23
Joined: Fri Feb 10, 2006 1:35 pm
Location: Ludwigsburg, Germany

  • Quote

Post by joe82 » Wed Mar 22, 2006 12:51 pm

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
Top
Pizentios
n00b
n00b
Posts: 26
Joined: Mon Feb 28, 2005 10:28 pm
Location: Brandon, Manitoba, Canada
Contact:
Contact Pizentios
Website

  • Quote

Post by Pizentios » Wed Mar 22, 2006 3:34 pm

i just commented out the lines in login.defs that were causing the errors, seems to work fin for me.
-Pizentios
Top
Gherkin
n00b
n00b
User avatar
Posts: 4
Joined: Fri Mar 03, 2006 7:16 pm

  • Quote

Post by Gherkin » Wed Mar 22, 2006 5:44 pm

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.
[post=2642348]maguire's emwrap[/post]
Top
asterix404
Apprentice
Apprentice
Posts: 213
Joined: Fri Nov 05, 2004 2:29 am

  • Quote

Post by asterix404 » Mon Apr 17, 2006 6:52 pm

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
Top
sebastianfietzek
n00b
n00b
Posts: 2
Joined: Fri Apr 21, 2006 5:08 am

  • Quote

Post by sebastianfietzek » Fri Apr 21, 2006 5:23 am

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!
Top
ptaylor
n00b
n00b
Posts: 2
Joined: Tue Apr 18, 2006 10:10 pm

  • Quote

Post by ptaylor » Fri Apr 21, 2006 1:34 pm

this one scared me, but the etc-update worked :)

Code: Select all

etc-update
env-update && source /etc/profile
yay!
Philip Taylor
Top
pacho2
Developer
Developer
User avatar
Posts: 2599
Joined: Fri Mar 04, 2005 7:53 pm
Location: Oviedo, Spain

  • Quote

Post by pacho2 » Sun Apr 23, 2006 1:05 pm

It's a gnome-system-tools bug. If you try to create a new user account using this app, login will fail
Top
ajmacca
n00b
n00b
Posts: 2
Joined: Fri Apr 28, 2006 2:28 pm
Location: Brisbane, Australia

  • Quote

Post by ajmacca » Sat Apr 29, 2006 3:29 am

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: Select all

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.
Top
pacho2
Developer
Developer
User avatar
Posts: 2599
Joined: Fri Mar 04, 2005 7:53 pm
Location: Oviedo, Spain

  • Quote

Post by pacho2 » Sat Apr 29, 2006 10:18 am

If you run "users-admin" (from gnome-system-tools), you will suffer the problem again
Top
avieth
Veteran
Veteran
User avatar
Posts: 1945
Joined: Fri Sep 17, 2004 3:48 pm
Location: Canada

  • Quote

Post by avieth » Sat Apr 29, 2006 7:46 pm

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.
Top
senthilkumar00
n00b
n00b
Posts: 1
Joined: Sun Apr 17, 2005 1:51 am

  • Quote

Post by senthilkumar00 » Wed May 03, 2006 1:44 am

I had the same problem. I actually emerge pam-login and did etc-update with option -3. It worked for me
Top
ed_f
n00b
n00b
Posts: 1
Joined: Thu May 04, 2006 8:03 am

  • Quote

Post by ed_f » Thu May 04, 2006 9:49 am

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/
Top
MilkSjeik
n00b
n00b
User avatar
Posts: 66
Joined: Sun Apr 17, 2005 7:40 pm
Location: Belgium

  • Quote

Post by MilkSjeik » Sun May 07, 2006 7:06 pm

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 ;)
Top
Post Reply

56 posts
  • 1
  • 2
  • 3
  • Next

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic