source: trunk/debathena/config/cluster-login-config/debian/athena-root-password @ 24057

Revision 24057, 331 bytes checked in by broder, 15 years ago (diff)
In cluster-login-config: * Unset the root password if the machine is a quickstation. In reactivate: * Don't put the user in a login snapshot on a quickstation.
  • Property svn:executable set to *
Line 
1#!/bin/sh
2
3# Sets the Athena root password based on a hashed value stored in AFS.
4
5if [ "$(machtype -q)" != "quickstation" ]; then
6    pfile=/afs/athena.mit.edu/system/config/passwd/athena10/rootpw
7    if [ -r $pfile ]; then
8        pw=$(cat $pfile)
9        if [ -n "$pw" ]; then
10            usermod -p "$pw" root
11        fi
12    fi
13else
14    passwd -l root
15fi
Note: See TracBrowser for help on using the repository browser.