unknown class 'root'

Posted on 1997-07-16
Last Modified: 2008-02-26
I installed FreeBSD 2.2.2 and get the
following messages (in /var/log/messages):

Jul 16 13:55:46 god inetd[333]: login_getclass: unknown
class 'root'
Jul 16 14:00:44 god inetd[347]: login_getclass: unknown
class 'root'
Jul 16 14:00:46 god inetd[348]: login_getclass: unknown
class 'root'
Jul 16 14:02:26 god su: login_getclass: unknown class
Jul 16 14:02:29 god su: maxim to root on /dev/ttyp0                  
Jul 16 14:05:45 god inetd[367]: login_getclass: unknown
class 'root'
Jul 16 14:05:47 god inetd[368]: login_getclass: unknown
class 'root'
Jul 16 14:10:46 god inetd[372]: login_getclass: unknown
class 'root'
Jul 16 14:10:47 god inetd[373]: login_getclass: unknown
class 'root'

What this problem means and how can i fix it?
Question by:maxim071697

Expert Comment

ID: 2006556
I use BSDI and I need to adjust the
/etc/login_class and /etc/group.
Usually these are the files to adjust.
Contact me if you have any further questions

Expert Comment

ID: 2006557
Please delete the question if it has been answered so nobody land here!

Accepted Solution

leendert earned 100 total points
ID: 2006558
Hi there,

What you need to do is to copy the file /usr/src/etc/login.conf
to your /etc directory (If you have installed the sources).

You then need to modify the file to suite your needs. I assume
that you do not have the sources and therefore I include the
template login.conf file here :

# Sample login.conf - login class capabilities database.
# To speed up access to this data, you can use /usr/bin/cap_mkdb
# to create a database form of this file:
#   cap_mkdb /etc/login.conf
# Don't forget to do this after each edit as well!
# This file controls resource limits, accounting limits and
# default user environment settings.
#   $Id: login.conf,v 1997/05/23 12:59:16 ache Exp $

# Authentication methods




# Example defaults
# These settings are used by login(1) by default for classless users
# Note that entries like "cputime" set both "cputime-cur" and "cputime-max"


# standard - standard user defaults
    :path=~/bin /bin /usr/bin /usr/local/bin:\
    :manpath=/usr/share/man /usr/local/man:\

# users of X (needs more resources!)
    :manpath=/usr/share/man /usr/X11R6/man /usr/local/man:\

# Staff users - few restrictions and allow login anytime
    :path=~/bin /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin:\

# root - fallback for root logins
    :path=~/bin /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin:\

# Settings used by /etc/rc

# Settings used by news subsystem
    :path=/usr/local/news/bin /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin:\

# The dialer class should be used for a dialup PPP/SLIP accounts
# Welcome messages/news suppressed

# Site full-time 24/7 PPP/SLIP connections
# - no time accounting, restricted to access via dialin lines

# Example standard accounting entries for subscriber levels


# Subscriber accounts. These accounts have their login times
# accounted and have access limits applied.
subppp|PPP Subscriber Accounts:\

subslip|SLIP Subscriber Accounts:\

subshell:Shell Subscriber Accounts:\

# Russian Users Accounts. Setup proper environment variables.
russian:Russian Users Accounts:\

# End of the template config file.

Cut and paste this file into your /etc directory into a file
called login.conf

Then type "chown root /etc/login.conf"

This should solve your problem.

If you have any problems concerning this please do not hesitate
to ask.


Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
pauing printer deamon in AIX 10 57
SSH commands for Nas4free 21 378
remove a combination of patterns from a file 15 60
How to calculate the current use of PVU on my TSM server. 4 60
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now