On Fri, 2008-10-31 at 14:31 +0100, Luca Morettoni wrote:
> On 10/31/08 14:23, Tim Foster wrote:
> > There's your problem: locked accounts aren't allowed to run cron jobs.
> > 
> > If you change that to "zfssnap:NP:14183::::::" it'll work. Next
> > question: how did that happen?
> 
> I don't know why...

Wait a sec - am I reading:
/usr/lib/python2.4/vendor-packages/pkg/cfgfiles.py

around line 224 correctly, in that if a password isn't supplied for a
role, it delivers the account as locked? If so, that'd explain the
problem.

I guess we need to change that to deliver a password as NP then. 

> and what about /etc/user_attr entry missing?

I bet ./src/util/distro-import/100a/common/SUNWzfs-auto-snapshot 
needs to deliver something that adds the user_attr entry - does anyone
have an example of how to do this?

I can tell there's some stuff to at least read user_attr entries around
line 413 of /usr/lib/python2.4/vendor-packages/pkg/cfgfiles.py but I'm
not sure if it provides a means to add these yet.

Anyway I think a patch for the password change in the IPS gate is:

[EMAIL PROTECTED] hg diff
diff --git a/src/util/distro-import/100a/common/SUNWzfs-auto-snapshot
b/src/util/distro-import/100a/common/SUNWzfs-auto-snapshot
--- a/src/util/distro-import/100a/common/SUNWzfs-auto-snapshot
+++ b/src/util/distro-import/100a/common/SUNWzfs-auto-snapshot
@@ -1,7 +1,7 @@
 package SUNWzfs-auto-snapshot
 classification "System/File System"
 import SUNWzfs-auto-snapshot
-add user username=zfssnap uid=51 group=daemon \
+add user username=zfssnap uid=51 password=NP group=daemon \
        gcos-field="ZFS Automatic Snapshots Reserved UID" \
        login-shell=/usr/bin/pfsh ftpuser=false
 end package


        cheers,
                        tim

_______________________________________________
indiana-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss

Reply via email to