<br><tt><font size=2>Agustin Castaņo <morsapc@gmail.com> wrote on
02/05/2011 20:16:52:<br>
<br>
> Info: Share: '//NB-3/D' failed to mount: mount error 1 = Operation
<br>
> not permitted<br>
> Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)<br>
> <br>
> I think its related to the suid thing.<br>
> How can I fix this?<br>
</font></tt>
<br><tt><font size=2>If you mean</font></tt>
<br><tt><font size=2>"how do I suid mount.cifs ??" try</font></tt>
<br><tt><font size=2> sudo chmod +s
/sbin/mount.cifs</font></tt>
<br>
<br><tt><font size=2>Don't forget /sbin/umount.cifs too.</font></tt>
<br>
<br><tt><font size=2>If you have a problem with a suid mount.cifs then
try</font></tt>
<br><tt><font size=2>mounting manually after connecting, i.e.</font></tt>
<br><tt><font size=2>Connect to FreeNX with a windows share set up in</font></tt>
<br><tt><font size=2>the nxclient.</font></tt>
<br>
<br><tt><font size=2>Then test the windows share by mapping it to localhost
on the</font></tt>
<br><tt><font size=2>windows machine (ie from/to localhost) to make sure
the</font></tt>
<br><tt><font size=2>windows server process is working and accepting drive</font></tt>
<br><tt><font size=2>mappings from localhost addressed to itself.</font></tt>
<br>
<br><tt><font size=2>If it is, then try it manually from within the FreeNX
session.</font></tt>
<br>
<br><tt><font size=2>You will need to</font></tt>
<br><tt><font size=2> sudo netstat -napt|grep
nxagent</font></tt>
<br><tt><font size=2>and look for your correct nxagent with a local address
of</font></tt>
<br><tt><font size=2> 0.0.0.0:4000</font></tt>
<br><tt><font size=2>or some such. Make sure you get the right nxagent.</font></tt>
<br>
<br><tt><font size=2>You can then try mapping the share connection as "root"
i.e</font></tt>
<br>
<br><tt><font size=2>sudo mount.cifs //NB-3/D /mountpoint -ouser=winusername,pass=winpassword,ip=127.0.0.1,port=4000</font></tt>
<br>
<br><tt><font size=2>or whatever your agent port is.</font></tt>
<br>