[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] uid issues with condor master



Thanks Alan.

I have attached a few more information for your reference. It looks like
I am able to get the current logged on user as well as the host name
alright. (attached code to verify the same). Networking is also fine and
there doesn't seem to be any problem with connecting to the machine,
also other programs which bind to tcp ports like sshd & httpd are
functioning properly.

************************************************************************
**
host name: vtux01
************************************************************************
**

Ifconfig output
---------------
eth0      Link encap:Ethernet  HWaddr 00:16:3E:75:38:9E 
          inet addr:172.21.31.171  Bcast:172.21.31.191
Mask:255.255.255.192
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:511405 errors:0 dropped:0 overruns:0 frame:0
          TX packets:282412 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:36577128 (34.8 MiB)  TX bytes:222095017 (211.8 MiB)

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:42 errors:0 dropped:0 overruns:0 frame:0
          TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2804 (2.7 KiB)  TX bytes:2804 (2.7 KiB)

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
172.21.31.128   *               255.255.255.192 U     0      0        0
eth0
169.254.0.0     *               255.255.0.0     U     0      0        0
lo
default         gw.hpc.infosys. 0.0.0.0         UG    0      0        0
eth0

************************************************************************
**

#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
#include <pwd.h>

int main(void) {

struct passwd *a = getpwnam("condor");
if (a) {
printf("****************\n");
printf("%s\n%s\n%d\n%d\n%s\n",
        a->pw_name, a->pw_passwd, a->pw_uid, a->pw_gid, a->pw_gecos); }
else {
        printf("condor not found\n");
}

printf("****************\n");
a = getpwuid(getuid());
if (a) {
printf("%s\n%s\n%d\n%d\n%s\n",
        a->pw_name, a->pw_passwd, a->pw_uid, a->pw_gid, a->pw_gecos); }
else {
        printf("no current logged in user\n"); }

char s[256];
gethostname(s, 255);
printf("****************\n");
printf("host name: %s\n", s);
return 1;
}
************************************************************************
**
Ouput
-----
****************
condor
x
502
502

****************
condor
x
502
502

****************


-----Original Message-----
From: condor-users-bounces@xxxxxxxxxxx
[mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of Alain Roy
Sent: Tuesday, December 27, 2005 8:11 PM
To: Condor-Users Mail List
Subject: Re: [Condor-users] uid issues with condor master


>12/27 15:33:10 DaemonCore: Command Socket at <0.0.0.0:32790>

That looks really suspicious to me. 0.0.0.0 is not normally a good IP
address. Do you have problems in how your network configuration is set
up.?

>12/27 15:33:10 ERROR "default_daemon_name() returned NULL" at line
>794 in file master.C

There are a few causes for this, none of which are documented. Condor
tries to find the current user name as well as the host name, and if
either fail, then you get this message.

-alain


_______________________________________________
Condor-users mailing list
Condor-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/condor-users

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***