[Xorp-hackers] XORP beginner question: xorpsh has some connect problem

Ben Greear greearb at candelatech.com
Tue Dec 6 11:49:47 PST 2011


On 12/06/2011 11:41 AM, Fengliang Hu wrote:
> Hi, Ben,
>
> Thanks a lot for looking into the issue that I ran into. From the Linux command output from "cat /etc/group", you can see that the normal user "feng" is already
> added to the group "xorp".

Can you manually modify files in /var/tmp with the user feng?

You probably have to re-login after adding your user to a group.

Thanks,
Ben

>
> "
>  > $ ls -l /var/tmp/xrl.iE6G21
>  > srwxrwxr-x 1 root xorp 0 2011-12-06 08:39 /var/tmp/xrl.iE6G21
>  > $ cat /etc/group | grep xorp
>  > root:x:0:xorp
>  > xorp:x:1001:feng,root,xorp,
> lanforge
>  > "
>  >
>  > Anyway, I figured out a possible way to get xorp to work.... Instead of running xorpsh as a normal user "feng", I tried to run it as a normal user "xorp" and
>  > then it gave me the CLI interfaces..
>
> Yes.  Whatever runs xorpsh must be in the xorp group and have permissions to read/write
> in the /var/tmp/ directory.  You could try adding 'feng' to the xorp group...
> "
>
> Thanks,
> Frank
>
> On Tue, Dec 6, 2011 at 11:19 AM, Ben Greear <greearb at candelatech.com <mailto:greearb at candelatech.com>> wrote:
>
>     On 12/06/2011 11:14 AM, frank hu wrote:
>      >
>      > Thanks for the kind help!
>      > It still has the same error even after I switched to use "xorp_install.bash" script. My bad in my earlier email not clearly saying the usage of "sudo" in
>      > "chmod" and "chown". I did run "chmod" and "chown" as super user. otherwise, the command will just fail.
>      > I tried to use xorp_install script and found that it has some extra info. It tried to add the user "lanforge" to the group "xorp". I didn't see that it was
>      > documented anywhere in xorp.net <http://xorp.net> <http://xorp.net/>. So is it really necessary?  I also saw the script tried to add the user "xorp" to
>     the root group. Is that
>      > necessary as well?
>
>     The lanforge user is not needed by general users...but the xorp user and xorp group is.
>
>      > $xorpsh
>      > .... many errors...
>      > [ 2011/12/06 08:44:04.691433  ERROR xorpsh:16580 XRL libxipc/xrl_router.cc:478 lookup_sender ] Could not create XrlPFSender for protocol = "unix" address =
>      > ":var:tmp:xrl.NZn6th"
>      > [ 2011/12/06 08:44:04.691746  ERROR xorpsh:16580 LIBCOMM libcomm/comm_user.c:886 comm_connect_unix ] Error connecting to unix socket.  Path:
>      > /var/tmp/xrl.iE6G21.  Error: Permission deniedKilled
>      > "
>      > I checked the unix socket file /var/tmp/xrl.iE6G21.
>      > "
>      > $ ls -l /var/tmp/xrl.iE6G21
>      > srwxrwxr-x 1 root xorp 0 2011-12-06 08:39 /var/tmp/xrl.iE6G21
>      > $ cat /etc/group | grep xorp
>      > root:x:0:xorp
>      > xorp:x:1001:feng,root,xorp,lanforge
>      > "
>      >
>      > Anyway, I figured out a possible way to get xorp to work.... Instead of running xorpsh as a normal user "feng", I tried to run it as a normal user "xorp" and
>      > then it gave me the CLI interfaces..
>
>     Yes.  Whatever runs xorpsh must be in the xorp group and have permissions to read/write
>     in the /var/tmp/ directory.  You could try adding 'feng' to the xorp group...
>
>     Thanks,
>     Ben
>
>
>
>     --
>     Ben Greear <greearb at candelatech.com <mailto:greearb at candelatech.com>>
>     Candela Technologies Inc http://www.candelatech.com
>
>     _______________________________________________
>     Xorp-hackers mailing list
>     Xorp-hackers at icir.org <mailto:Xorp-hackers at icir.org>
>     http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers
>
>


-- 
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc  http://www.candelatech.com



More information about the Xorp-hackers mailing list