Everson Santos Araujo schrieb:
 > I'm having problem with local device in Ubuntu 9.10 using Ltsp 4.2.
 > 
 > I follow the Troubleshooting in
 > http://sourceforge.net/apps/mediawiki/ltsp/index.php?title=Ltsp_LTSP-42-LocalDev
 > none of the local drivers show in �/Drives.
 > 
 > The error occurs in ltspfs, it says:
 > No matches found, authority file "-" not written.
 > 
 > When I try: /usr/sbin/lbus_event_handler.sh add block /tmp 1024 Temp
 > or manually: ltspfs 192.168.1.102:/tmp/drives/cdrom ~/Drives/cdrom
That is: "Manually" it works, right?

Then this reminds me of the problem I had two years ago:
Automatic mounting through lbussd didn't work but calling
  /usr/sbin/lbus_event_handler.sh add block Removable_Device_931_Mb 931 
"Removable Device (931Mb)"

This was caused by the getpwuid() call at the beginning of
/usr/sbin/lbussd or rather by a bug in nss_ldap-254 (see also Gentoo
Bug 169612 under http://bugs.gentoo.org/show_bug.cgi?id=169612)
making the system() calls of lbussd to fail.

I then implemented this workaround:
diff lbussd.ltsorig lbussd
30a31
> use English;
38,41c39,41
< my @pwflds   = getpwuid( $> );
< my $uid      = $pwflds[2];
< my $username = $pwflds[0];
< my $homedir  = $pwflds[7];
---
> my $uid      = $EUID;
> my $username = $ENV{USER};
> my $homedir  = $ENV{HOME};

Sincerely,
Horst Prote

-- 
Horst Prote, FMI            __o    Systemadministration Abt. FK und TI
Universitaet Stuttgart     `\<,       Tel: +49 711 7816-348, FAX: -310
Universitaetsstr. 38     ( )/( )            [email protected]
D-70569 Stuttgart        www.fmi.uni-stuttgart.de/fk/mitarbeiter/prote

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to