|
|
@ -1186,6 +1186,7 @@ class SunOS(User):
|
|
|
|
lines.append(line)
|
|
|
|
lines.append(line)
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
fields[1] = self.password
|
|
|
|
fields[1] = self.password
|
|
|
|
|
|
|
|
fields[2] = str(int(time.time() / 86400))
|
|
|
|
line = ':'.join(fields)
|
|
|
|
line = ':'.join(fields)
|
|
|
|
lines.append('%s\n' % line)
|
|
|
|
lines.append('%s\n' % line)
|
|
|
|
open(self.SHADOWFILE, 'w+').writelines(lines)
|
|
|
|
open(self.SHADOWFILE, 'w+').writelines(lines)
|
|
|
@ -1272,6 +1273,7 @@ class SunOS(User):
|
|
|
|
lines.append(line)
|
|
|
|
lines.append(line)
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
fields[1] = self.password
|
|
|
|
fields[1] = self.password
|
|
|
|
|
|
|
|
fields[2] = str(int(time.time() / 86400))
|
|
|
|
line = ':'.join(fields)
|
|
|
|
line = ':'.join(fields)
|
|
|
|
lines.append('%s\n' % line)
|
|
|
|
lines.append('%s\n' % line)
|
|
|
|
open(self.SHADOWFILE, 'w+').writelines(lines)
|
|
|
|
open(self.SHADOWFILE, 'w+').writelines(lines)
|
|
|
|