I can do anything like root does including writing to /etc/iscsi and /
var/lib/iscsi. For files in /sys/block/sdX/device/queue_depth it was
not successful (E667: Fsync failed), but this also happens when I try
the same as real user root and seems not to be a permissen issue.

As far as I know, all users that have uid=0, are root users, however
this might not be forseen in Linux, since the actual logged in user
(`whoami`) is not stable across different logins. E.g. I log in on one
console as "root" and whoami returns "root". Do I log in on another
console with "lroot", _both_ outputs of whoami return "lroot". What I
also saw is, that sometime I login as "lroot" (after reboot) and
whoami returns "root" and vice versa. The latter effect seems to be
associated with the order of entries in /etc/passwd, however it does
not solve the multiple login issue.

I guess it would be enough just to check if the user that calls
iscsiadm has uid=0 and not the name "root", because if uid=0 the user
is definitively a root user with sufficient privileges.

Kind regards
Thomas

-- 
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