Displaying 3 results from an estimated 3 matches for "new_pw".
Did you mean:
new_p
2003 Apr 20
0
How I got Samba 2.2.8a to run on OpenBSD 3.2 i386
...d = "/etc/master.passwd";
umask(077);
exit if $<;
$username = pop(@ARGV);
exit if !defined $username;
getpwnam($username) or exit;
system(split(/\s+/, "$pwd_mkdb -c $master_passwd"));
exit if $?;
print "new-pwd";
$newpwd = <STDIN>;
chomp($newpwd);
sysopen(NEW_PW, $passwd_tmp, O_WRONLY|O_CREAT|O_EXCL|O_NONBLOCK|O_SHLOCK, 0600) or exit;
open(OLD_PW, "< $master_passwd");
while(<OLD_PW>){
@user = split(/:/);
if($user[0] eq $username){
$user[1] = encrypt($newpwd);
}
print NEW_PW join(':', @user);
}
close OLD_PW;
system($pwd_mkd...
2016 Mar 06
0
Segmentation Fault when trying to set root samba password, IPA as a backend
...b = 16
rid = 0
result = {v = 0}
user_exists = false
ret = -1
---Type <return> to continue, or q <return> to quit---
#6 0x800034ac in password_change (remote_mach=0x0,
username=0x800081c0 <user_name> "ldap09", old_passwd=0x0,
new_pw=0x800118b8 "p4ssword", local_flags=577)
at ../source3/utils/smbpasswd.c:264
ret = {v = 0}
err_str = 0x0
msg_str = 0x0
#7 0x80003c88 in process_root (local_flags=577)
at ../source3/utils/smbpasswd.c:466
pwd = 0x1
result = 0
o...
2016 Mar 06
2
Segmentation Fault when trying to set root samba password, IPA as a backend
On Fri, Mar 04, 2016 at 04:16:44PM +0000, Rowland penny wrote:
> On 04/03/16 09:58, Volker Lendecke wrote:
> >On Fri, Mar 04, 2016 at 10:53:17AM +0100, Volker Lendecke wrote:
> >>On Wed, Mar 02, 2016 at 09:23:34AM +0000, Rowland penny wrote:
> >>>OK, here is the output:
> >>Can you try the attached (UNTESTED!) patch?
> >>
> >>Thanks,
>