Linux error messages

Error messages from Linux

(TODO: Formatting similarly to AIX error messages)

tune2fs: Couldn't find valid filesystem superblock

E: # tune2fs -m1 /home

tune2fs: Is a directory while trying to open /home

Couldn't find valid filesystem superblock.

S: tune2fs expects a block device.

iproute2: Cannot change metric of an existing route

E: # ip route change 10.1.135.0/25 dev eth0 metric 1

RTNETLINK answers: No such file or directory

S: You cannot change the metric or priority of an existing route, you must delete/add them. This is a protocol limitation.

See http://lkml.indiana.edu/hypermail/linux/net/0504.3/0017.html

sshd/PAM: getgrgid failed

I guess this is an upstream bug in either PAM or OpenSSH. I saw this on SLES 10 SP2, OpenSSH 4.2p1, PAM 0.99.6.3.

Here, we use pam_listfile.so in /etc/pam.d/common-auth to restrict access based on groups. For some LDAP GIDs, we are getting this error while users with a different primary GID are able to login:

myhost sshd[PID]: error: PAM: Error in service module for youruser from 192.168.0.227
myhost sshd[PID]: pam_listfile (sshd:auth): getgrgid(1111) failed

I changed 'onerr=fail' to 'onerr=succeed' in /etc/pam.d/common-auth and it solved the problem - the PAM error appears, but the login process can go on.

auth required pam_listfile.so onerr=succeed item=group sense=allow file=/etc/allow.grp