<br><tt><font size=2>Ronan Fleming <ronan.mt.fleming@gmail.com> wrote
on 05/07/2010 12:16:59:<br>
<br>
[SNIP]</font></tt>
<br><tt><font size=2> <br>
> 5) In /etc/nxserver/node.conf, I have set<br>
> SAMBA_MOUNT_SHARE_PROTOCOL="both"<br>
</font></tt>
<br><tt><font size=2>It should be all cifs now, (unless your distro is
a bit out of date) so</font></tt>
<br><tt><font size=2>it's better to have </font></tt>
<br>
<br><tt><font size=2>SAMBA_MOUNT_SHARE_PROTOCOL="cifs"</font></tt>
<br>
<br><tt><font size=2>> <br>
> Upon login to the server, the session starts as normal, except for
the<br>
> NXServer Message<br>
> <br>
> info: Share '//boltzmann/downloads' failed to mount: mount error(13)<br>
> Permission denied<br>
</font></tt>
<br>
<br><tt><font size=2>They aren't very informative error messages.</font></tt>
<br>
<br><tt><font size=2>First </font></tt>
<br><tt><font size=2>Make sure you can connect to the samba share without
going via NX.</font></tt>
<br>
<br><tt><font size=2>eg. on the workstation . . . </font></tt>
<br><tt><font size=2>mkdir /tmp/mountpont</font></tt>
<br>
<br><tt><font size=2>mount.cifs //boltzmann/downloads /tmp/mountpont -ouser=rfleming</font></tt>
<br>
<br><tt><font size=2>This ensures you are set up with a password in samba
</font></tt>
<br><tt><font size=2>and the share exists etc</font></tt>
<br>
<br>
<br>
<br><tt><font size=2>> Refer to the mount.cifs(8) manual page (e.g.
man mount.cifs)<br>
> <br>
> I notice that a server folder has been created in<br>
> /home/rfleming/MyShares/ with the following permissions<br>
> drwxr-xr-x 2 rfleming sambashare 4096 2010-07-05 10:54 downloads<br>
</font></tt>
<br><tt><font size=2>. . . good . . </font></tt>
<br>
<br><tt><font size=2>> <br>
> However, no files from the local machine are in it. I tried looking<br>
> for a solution, but did not find one. I know what to try next, please<br>
> could someone advise? Thanks in advance,<br>
</font></tt>
<br>
<br><tt><font size=2>If you are using </font></tt>
<br>
<br><tt><font size=2> /sbin/mount.cifs</font></tt>
<br><tt><font size=2> /sbin/umount.cifs</font></tt>
<br>
<br><tt><font size=2>you need to set them uid to allow an ordinary user
account to do the</font></tt>
<br><tt><font size=2>mount.</font></tt>
<br>
<br>
<br><tt><font size=2>If it still doesn't work . . . </font></tt>
<br>
<br><tt><font size=2>Rather than keep re-connecting to FreeNX, you can
test samba manually,</font></tt>
<br><tt><font size=2>from within your NX session, using the command ( all
on one line )</font></tt>
<br>
<br>
<br><tt><font size=2>/sbin/mount.cifs //boltzmann/downloads </font></tt>
<br><tt><font size=2> /home/rfleming/MyShares/downloads
</font></tt>
<br><tt><font size=2> -ouser=rfleming,ip=127.0.0.1,port=nxagent-port</font></tt>
<br>
<br><tt><font size=2>(You will need to umount it manually if it works)</font></tt>
<br>
<br><tt><font size=2>where you find your nxagent-port by running . . .</font></tt>
<br>
<br><tt><font size=2> netstat -napt|grep
nxagent</font></tt>
<br>
<br><tt><font size=2>and looking for the :port in the 4th field for YOUR
nxagent session</font></tt>
<br><tt><font size=2>eg. the 4001 from</font></tt>
<br>
<br><tt><font size=2>tcp 0 0
0.0.0.0:4001 0.0.0.0:*
LISTEN 1234/nxagent</font></tt>
<br>
<br>
<br><tt><font size=2>If you </font></tt>
<br><tt><font size=2> telnet localhost
4001 ( in this example, from within your nx session ) </font></tt>
<br>
<br><tt><font size=2>and the tunnel is up through to your workstation ,you
should see a new</font></tt>
<br><tt><font size=2>smbd start up on your workstation with the current
time eg 10:11 in field 5</font></tt>
<br>
<br><tt><font size=2>ps -ef|grep smbd</font></tt>
<br>
<br><tt><font size=2>root 1234 1 0
09:01 ? 00:00:00 /usr/sbin/smbd -D -s /etc/samba/smb.conf</font></tt>
<br><tt><font size=2>root 1240 1234 0 09:01 ?
00:00:00 /usr/sbin/smbd -D -s /etc/samba/smb.conf</font></tt>
<br><tt><font size=2>root 1250 1234 0 10:11 ?
00:00:00 /usr/sbin/smbd -D -s /etc/samba/smb.conf</font></tt>
<br>
<br>
<br>
<br>
<br><tt><font size=2>> Ronan<br>
> <br>
> -- <br>
> Mr. Ronan MT Fleming B.V.M.S. Dip. Math. Ph.D.<br>
> -----------------------------------------------------------------<br>
> Research Scientist,<br>
> Science Institute & Center for Systems Biology,<br>
> University of Iceland.<br>
> </font></tt><a href=http://systemsbiology.hi.is/><tt><font size=2>http://systemsbiology.hi.is/</font></tt></a><tt><font size=2><br>
> </font></tt><a href=http://www.hi.is/~rfleming><tt><font size=2>http://www.hi.is/~rfleming</font></tt></a><tt><font size=2><br>
> Ph: +354 525 4734<br>
> -----------------------------------------------------------------<br>
> ________________________________________________________________<br>
> Were you helped on this list with your FreeNX
problem?<br>
> Then please write up the solution in the FreeNX Wiki/FAQ:<br>
> <br>
> </font></tt><a href="http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ"><tt><font size=2>http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ</font></tt></a><tt><font size=2><br>
> <br>
> Don't forget to check the NX Knowledge
Base:<br>
> </font></tt><a href=http://www.nomachine.com/kb/><tt><font size=2>http://www.nomachine.com/kb/</font></tt></a><tt><font size=2>
<br>
> <br>
> ________________________________________________________________<br>
> FreeNX-kNX mailing list --- FreeNX-kNX@kde.org<br>
> </font></tt><a href="https://mail.kde.org/mailman/listinfo/freenx-knx"><tt><font size=2>https://mail.kde.org/mailman/listinfo/freenx-knx</font></tt></a><tt><font size=2><br>
> ________________________________________________________________<br>
</font></tt>