Hi Mike,

There was no session logged in, and i commented out the following codes in 
function mgmt_ipc_handle, it works,
/*
if (!mgmt_peeruser(fd, user) || strncmp(user, "root", PEERUSER_MAX)) {
err = MGMT_IPC_ERR_ACCESS;
goto err;
}
*/

I think it should be wrong in the following codes,

pass = getpwuid(peercred.uid);
if (pass == NULL) {
log_error("peeruser_unix: unknown local user with uid %d",
(int) peercred.uid);
return 0;
}

I debugged the codes, and found the pass is NULL, and i run the iscsiadm and 
iscsid with root user.

Is there any help for this?

Best Wishes,
Daobang Wang.




发件人: Mike Christie 
发送时间: 2011-06-16  01:07:44 
收件人: 王道邦 
抄送: open-iscsi 
主题: Re: open-iscsi-2.0-870 issue 
 
On 06/14/2011 09:33 PM, 王道邦 wrote:
> Hi Mike,
> 
> I tested it with your suggestion, and found i could not discovery the target 
> with command "./iscsiadm -m discovery -t st -p 192.168.8.108 ", please see 
> the iscsid debug log in the attachment, please give the suggestion again, 
> thanks.
> 
When you ran that command were there sessions already logged in?
What is the output of
./iscsiadm -m discovery -t st -p 192.168.8.108 -d 8
And did you start iscsid locally from the tarball (usr/iscsid) or did
you run the older one in /sbin/iscsid or /usr/sbin/iscsid? Make sure you
run copies from the same release/build.

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/open-iscsi?hl=en.

Reply via email to