Login being denied without error in Fedora 7
Posted: Wed Nov 28, 2007 3:41 pm
I am running Fedora 7 (I have experienced this on both 32 bit and 64 bit). Under 2.6.19 and 2.6.23.9 i get the exact same behavior. With RBAC enabled i try to log in and after typing in the username the system sits for a second then resets login. The only message in the logs is from login and reads:
I have no idea what significance this has but i have found an interesting procedure that results in a successful login.
Step 1: With RBAC turned off try and log into a terminal giving a inforrect username and password.
Step 2: Switch to a different terminal enable RBAC.
Step 3: Return to the terminal mentioned in step 1 and supply a correct username and password, this time you are logged in successfully.
My RBAC template for login:
RBAC Policy for mingetty:
- Code: Select all
localhost login: FATAL: bad tty
I have no idea what significance this has but i have found an interesting procedure that results in a successful login.
Step 1: With RBAC turned off try and log into a terminal giving a inforrect username and password.
Step 2: Switch to a different terminal enable RBAC.
Step 3: Return to the terminal mentioned in step 1 and supply a correct username and password, this time you are logged in successfully.
My RBAC template for login:
- Code: Select all
subject /bin/login do {
/ rx
/bin/bash x
/dev r
/dev/log rw
/dev/random r
/dev/urandom r
/dev/null rw
/dev/ptmx rw
/dev/pts rw
/dev/tty rw
/dev/tty? rw
/etc r
/etc/grsec h
/root
/proc r
/proc/*/loginuid rw
/proc/kcore h
/proc/sys h
/proc/sys/kernel/ h
/proc/sys/kernel/ngroups_max r
/usr/lib rx
/usr/share/zoneinfo r
/var/log
/var/mail
/var/log/faillog rcw
/var/log/lastlog rcw
/var/log/wtmp w
/var/log/btmp w
/var/run/utmp rw
/var/run/btmp rw
/var/run/console r
/var/run/console/* rwcd
/var/run/dbus/system_bus_socket rw
-CAP_ALL
+CAP_CHOWN
+CAP_SETGID
+CAP_SETUID
+CAP_SYS_CHROOT
+CAP_SYS_RESOURCE
+CAP_SYS_TTY_CONFIG
+CAP_NET_ADMIN
RES_CORE 10M 10M
}
RBAC Policy for mingetty:
- Code: Select all
subject /sbin/mingetty {
/dev
/proc rx
/proc/sys h
/dev/log rw
/var/log/wtmp rw
/dev/vc* rw
/dev/tty* rw
/dev/pts* rw
-CAP_ALL
+CAP_CHOWN
+CAP_SYS_TTY_CONFIG
}