Indeed, we have very high userids, mine is 44376 (due to the silly uids in our NFS-environment). I ran strace on gnuserv, I think the most important line is the bind command at the end :
it's me again. I tried gnuserv with a test user (userid = 500) and gnuserv-start worked perfectly well!!!! So, large uids don't work small ones do. Could somebody explain this. Can the behaviour be patched or is this a feature?
Jens Schneider <jens.schnei...@mpq.mpg.de> writes: > Indeed, we have very high userids, mine is 44376 (due to the silly uids > in our NFS-environment). > I ran strace on gnuserv, I think the most important line is the bind > command at the end :
Jan Vroonhof <vroon...@frege.math.ethz.ch> writes: > > bind(3, {sin_family=AF_INET, sin_port=htons(330),
> 21490+44376 == 330 (mod 2^16).
> I really don't know a good solution for this. You need to set the port > explicitly, by setting the GNU_PORT environment variable.
> Jan
Hi Jan,
thanks for your help. I first considered to change all the UIDs to low numbers (it a new machine with only a few local users) and to map the local UIDs to the ones in the NFS directories via the nfsd. Hm, was a nice idea, but the NFS server is an AIX machine where UID-mapping seems not to be possible (anyway the sysad there is no very cooperative). The second idea that we use now is simply setting GNU_PORT in /etc/profile to reasonable values by something like GNU_PORT=$UID-43000+21490 (if $UID > 44000). This leaves space for the usual low number UIDs (like e.g. root).
> it's me again. I tried gnuserv with a test user (userid = 500) and > gnuserv-start worked perfectly well!!!! > So, large uids don't work small ones do. Could somebody explain this. > Can the behaviour be patched or is this a feature?
I seem to have the same problem, or at least I think I do, since my uid is 24400. However, I tried to get this working under a test UID of 500, and it still didn't work. The error I'm getting is:
$ gnuclient trash/foo gnuclient: No such file or directory gnuclient: unable to connect to local
This is with Xemacs-20.3 on Sun Solaris 2.5.1.
Does anyone have any ideas? Interestingly everything works just fine with GNU emacs-20.4 and the old server-start/emacsclient pair (why did they have to fix what wasn't broken :(
pluss...@baynetworks.com (Paul L. Lussier) writes:
> I seem to have the same problem, or at least I think I do, since my > uid is 24400. However, I tried to get this working under a test UID of 500, > and it still didn't work. The error I'm getting is:
> $ gnuclient trash/foo > gnuclient: No such file or directory > gnuclient: unable to connect to local
> This is with Xemacs-20.3 on Sun Solaris 2.5.1.
Is the server (the gnuserv program)_really_ running (make sure it didn't exit because of some error)?
Try running gnuclient under truss to see where the problem is.
> Does anyone have any ideas? Interestingly everything works just fine > with GNU emacs-20.4 and the old server-start/emacsclient pair (why did > they have to fix what wasn't broken :(