Changeset 11 for server/common/oursrc
- Timestamp:
- Oct 1, 2006, 3:37:19 PM (18 years ago)
- Location:
- server/common/oursrc/lockeradm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
server/common/oursrc/lockeradm/configure.in
r1 r11 17 17 AC_SUBST(grep_path) 18 18 19 AC_PATH_PROG(sudo_path, sudo) 20 AC_SUBST(sudo_path) 19 21 AC_PATH_PROG(useradd_path, useradd) 20 22 AC_SUBST(useradd_path) … … 27 29 AC_SUBST(hesinfo_path) 28 30 29 dnl Needed by bash.in31 dnl Needed by modbash.in 30 32 31 33 AC_PATH_PROG(bash_path, bash) … … 35 37 AC_OUTPUT(admof) 36 38 AC_OUTPUT(signup-scripts-backend) 39 AC_OUTPUT(modbash) -
server/common/oursrc/lockeradm/signup-scripts-backend.in
r1 r11 48 48 49 49 # Complain if user's uid is too low or too high 50 complain("bad uid") unless($uid1 > @min_user_uid@and $uid1 < (1 << 31));50 complain("bad uid") unless($uid1 > 110 and $uid1 < (1 << 31)); 51 51 52 52 # Run ls to confirm user's .scripts-signup file … … 71 71 # Add user to /etc/passwd 72 72 `@sudo_path@ -u root @groupadd_path@ -g '$gid1' '$username'`; 73 `@sudo_path@ -u root @useradd_path@ -d '$homedir' -s '/usr/local/bin/ bash' -u '$uid1' -g '$gid1' -G users '$username'`;73 `@sudo_path@ -u root @useradd_path@ -d '$homedir' -s '/usr/local/bin/modbash' -u '$uid1' -g '$gid1' -G users '$username'`; 74 74 # Add disk quota for user 75 `@sudo_path@ -u root @setquota_path@ '$username' 0 25000 0 10000 `;75 `@sudo_path@ -u root @setquota_path@ '$username' 0 25000 0 10000 -a`; 76 76 77 77 printexit("done", 0);
Note: See TracChangeset
for help on using the changeset viewer.