Changeset 485 for server/fedora/specs


Ignore:
Timestamp:
Oct 15, 2007, 8:33:52 AM (15 years ago)
Author:
andersk
Message:
Make new signups go to LDAP!
File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/fedora/specs/accountadm.spec

    r392 r485  
    5050useradd -u 102 -g signup -d /afs/athena.mit.edu/contrib/scripts/signup -M signup || [ $? -eq 9 ]
    5151
    52 %post
    53 cat >>/etc/sudoers <<END
    54 signup  ALL=(root) NOPASSWD: /usr/sbin/useradd
    55 signup  ALL=(root) NOPASSWD: /usr/sbin/groupadd
    56 signup  ALL=(root) NOPASSWD: /usr/sbin/setquota
    57 END
    58 chmod 0440 /etc/sudoers
    59 
    60 %preun
    61 touch /etc/sudoers.tmp
    62 chmod 600 /etc/sudoers.tmp
    63 grep -v "^signup" /etc/sudoers > /etc/sudoers.tmp
    64 mv /etc/sudoers.tmp /etc/sudoers
    65 
    6652%postun
    6753userdel signup
Note: See TracChangeset for help on using the changeset viewer.