On 06/15/2011 08:00 PM, 王道邦 wrote:
> 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.
>
What distro are you using? Are you doing some sort of embedded work?
--
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.