SU Fails!

Matthew Carpenter matt
Mon May 17 12:01:25 PDT 2004


Hey all.  I've done something rather silly to a  SuSE 9.0pro box and 
wound up with a system that SU no longer works on.  Luckily "sudo su" 
gets me a root shell, but simply using su authenticates to root and then 
logs off immediately.  I'm not sure why.

Here's the rub.  I installed an RPM of my own making which overwrites 
many files in /etc/ and other various places.  This RPM was created for 
a previous version of SuSE and everything else works... except the "su" 
behavior.  The log entries for "su" look like this:

Apr 16 13:21:54 eolyn su: pam_unix2: session started for user root, 
service su
Apr 16 13:21:54 eolyn su: pam_unix2: session finished for user root, 
service su

Not sure exactly what caused this, I guess it might not even be related 
to this rpm but it started happening about the same time.  Any guesses?  
All this, just to get the slick openssl config scripts I already wrote 
:(  I guess I should have just copied them from another box...

TIA,
Matt




Here are the files it will overwrite(some scripts modify other files as 
well):
/boot
/boot/grub
/boot/grub/menu.lst
/etc
/etc/AddressBook.conf
/etc/amavisd.conf
/etc/backup.conf
/etc/clamav.conf
/etc/cpu.cfg
/etc/cron.daily
/etc/cron.daily/backup.daily-diff
/etc/cron.daily/uptime
/etc/cron.daily/virus.cleaner
/etc/cron.monthly
/etc/cron.monthly/backup.monthly-full
/etc/cron.monthly/update-root-hints.sh
/etc/cron.weekly
/etc/cron.weekly/backup.weekly-diff
/etc/cyrus.conf
/etc/dhcpd.conf
/etc/freshclam.conf
/etc/hosts
/etc/httpd
/etc/httpd/httpd-virtuals.conf
/etc/httpd/httpd.conf
/etc/httpd/midgard.conf
/etc/httpd/suse_addmodule.conf
/etc/httpd/suse_define.conf
/etc/httpd/suse_include.conf
/etc/httpd/suse_loadmodule.conf
/etc/httpd/suse_text.conf
/etc/imapd.conf
/etc/init.d
/etc/init.d/boot.idedma
/etc/init.d/dhcpd
/etc/init.d/named
/etc/init.d/webmin-iptables
/etc/inittab
/etc/issue
/etc/issue.net
/etc/logdigest
/etc/logdigest/alarming
/etc/logdigest/alarming.local
/etc/logdigest/config
/etc/logdigest/ignore
/etc/logdigest/ignore.local
/etc/logdigest/ignore~
/etc/logrotate.d
/etc/logrotate.d/cyrus
/etc/logrotate.d/procmail
/etc/nsswitch.conf
/etc/ntp.conf
/etc/openldap
/etc/openldap/ldap.conf
/etc/openldap/schema
/etc/openldap/schema/abookPerson.oc.conf
/etc/openldap/schema/abookperson.schema
/etc/openldap/schema/dnszone.schema
/etc/openldap/schema/rolodap.schema
/etc/openldap/schema/suse-email-server.schema
/etc/postfix
/etc/postfix/main.cf
/etc/postfix/master.cf
/etc/postfix/mynetworks
/etc/ppp
/etc/ppp/chap-secrets
/etc/ppp/options
/etc/ppp/options.pptp
/etc/pptpd.conf
/etc/proc-cyrus
/etc/procmailrc
/etc/procmailrc-oldstyle
/etc/rc.d
/etc/rc.d/boot.local
/etc/resolv.conf
/etc/rolodap.conf
/etc/samba
/etc/samba/smb.conf
/etc/security
/etc/security/pam_unix2.conf
/etc/skel
/etc/skel/.procmailrc
/etc/skel/.sieve
/etc/snmpd.conf
/etc/ssl
/etc/ssl/openssl.cnf
/etc/sysconfig
/etc/sysconfig/hardware
/etc/sysconfig/network
/etc/sysconfig/network/ifcfg-eth0
/etc/sysconfig/network/ifcfgtemplate-eth
/etc/usermin
/etc/usermin/config
/etc/usermin/mailbox
/etc/usermin/mailbox/config
/etc/usermin/mailbox/uconfig
/etc/vsftpd.banned-emails
/etc/vsftpd.conf
/etc/xinetd.d
/etc/xinetd.d/vsftpd
/usr
/usr/bin
/usr/bin/cyrus-deliver
/usr/lib
/usr/lib/sasl2
/usr/lib/sasl2/smtpd.conf


Scripts modify:
/etc/dhcpd.conf
/etc/named.conf
/etc/HOSTNAME
/etc/hosts
/etc/securetty
/etc/sudoers
/etc/sysconfig/syslog
/etc/sysconfig/sysctl
/etc/fstab
/etc/rc.d/boot.local
/etc/crontab
/etc/sysconfig/seccheck
and various others like openldap and apache and mailman configs.






More information about the Linux-users mailing list