/[polypkg]/trunk/pp.back.solaris.func
ViewVC logotype

Contents of /trunk/pp.back.solaris.func

Parent Directory Parent Directory | Revision Log Revision Log


Revision 217 - (show annotations)
Tue Jun 16 22:17:51 2009 UTC (5 months ago) by tperciva
File size: 534 byte(s)
Implement pp_mkuser on Solaris

Fixes bug #701: Installer does not create the sshd user
  (Quest OpenSSH)
1 #@ pp_backend_solaris_function(): output a platform-dependent function
2 pp_backend_solaris_function() {
3 case $1 in
4 pp_mkgroup) cat<<'.';;
5 /usr/sbin/groupmod "$1" 2>/dev/null && return 0
6 /usr/sbin/groupadd "$1"
7 .
8 pp_mkuser:depends) echo pp_mkgroup;;
9 pp_mkuser) cat<<'.';;
10 id "$1" >/dev/null 2>/dev/null && return 0
11 pp_mkgroup "${2:-$1}" || return 1
12 /usr/sbin/useradd \
13 -g "${2:-$1}" \
14 -d "${3:-/nonexistent}" \
15 -s "${4:-/bin/false}" \
16 "$1"
17 .
18 *) false;;
19 esac
20 }

Ted.Percival@quest.com
ViewVC Help
Powered by ViewVC 1.1.2