Smbmount Usage Problem (v038)

Support section for FREESCO v0.3.x 3rd Party Packages

Postby the_whaler » Fri Jan 30, 2009 3:50 pm

Hi all.
I am trying to make a symlink form my freesco box (v038) to a shared directory on one of the xp machines in my network. This machine runs a program called FSD that is used for flightsimulator people to connect to with FSInn to fly with each other. This program creates a txt file that can then be read by another program over the internet to see on a map where one is and who else is there.

This txt file has to be served via a webserver (I use apache) in a subdirectory form the www files. I have tried having FSD write directly in this directory but that does not work for some reason. I made a share in the freesco (using Samba) and I had XP map that drive (so it now was z:\ and added this to the config of FSD. No luck. I can create files from the XP machine in this directory so I do not think it has something to do with writing allowences (so to speak).

Now I thought of trying to do it the other way. Connecting from Freesco to the xp share. I first tried Ln -s but no luck and now smbmount.

I use the following syntax.
smbmount /192.168.169.148/whazzup /home/rest/lecakyme -n

However I constantly get the following reply
mount error: Device or resource busy
Please look at smbmount's manual page for possible reasons

This is confusing to me. Does this mean the share is busy (yes I hope so) sometimes the server writes into there, or is the /lecakyme busy (again I hope so, also my apache should be there).
So in other words I am lost. To make sure it was not the xp share I have changed the config file of fsd (once again) so it writes somewhere else, yet the message stays the same.
Any help would be appreciated (are there any logfiles to be viewed?).

Thanks in advance.
Lex
The Whaler
Lex Loen
User avatar
the_whaler
Junior Member
 
Posts: 32
Joined: Wed Jun 26, 2002 2:43 pm
Location: Almere, Netherlands

Postby Lightning » Fri Jan 30, 2009 4:12 pm

I made a share in the freesco (using Samba) and I had XP map that drive (so it now was z:\ and added this to the config of FSD. No luck.

The reason this fails is because of directory permissions. The simple way around this is to make the directory writable to everyone with this command

chmod 777 /dir/dir-name

This will make the /dir/dir-name read/write/searchable to everyone. If security is a concern then there are a lot of other ways around this issue that are more secure.
If you are afraid that you might make a mistake. The chances are high that you will never learn anything.
User avatar
Lightning
FREESCO GOD !!
 
Posts: 3045
Joined: Wed Nov 14, 2001 6:50 am
Location: Oregon, USA

Postby the_whaler » Sat Jan 31, 2009 3:20 am

Thanks Lightning.
I did try to change the settings via MC but that did not help (write by others). indeed for security reasons I did not use 777 but i have done this now just to see what happens. However come to think of it I even think the rest of this dir is 777 and I have not been hacked so far.

PS: Thanks for the good work. I saw you released an update for version 4. I have not been able to get the 4.0 working on the floppy (it hung after first restart) but havent had the time to look into this (just at one time made the floppy to see what would happen). Perhaps v4.1 will be correct immidiatly the first time.
lex
Lex Loen
User avatar
the_whaler
Junior Member
 
Posts: 32
Joined: Wed Jun 26, 2002 2:43 pm
Location: Almere, Netherlands

Postby the_whaler » Sat Jan 31, 2009 3:57 pm

still no luck, not even with chmod 777 on both the directory and the files.
I even set the service on the xp machine to run as a local useraccount that is also known on the freesco box.
It does let me feel, the fsd software is somehow not capable of doing what it needs to do, although using a directory on the local machine works.

Brings be back to the origional question. Is it possible to mount withing freesco a network share on another machine as a local directory.

In casu.

/home/.../whazzup would then link to /localip/whazzup share.

I have also posted a question in the forum of the software creator.
see link
<a href='http://www.mcdu.com/forum/viewtopic.php?t=5533' target='_blank'>http://www.mcdu.com/forum/viewtopic.php?t=5533</a>

Lex
Lex Loen
User avatar
the_whaler
Junior Member
 
Posts: 32
Joined: Wed Jun 26, 2002 2:43 pm
Location: Almere, Netherlands

Postby CDFiXER » Sat Jan 31, 2009 5:29 pm

Can you open a link to the file using FTP? You can use Explorer in XP with FTP to show the FTP folder as shared folder, just like a shared folder via regular windows netwrk share.
Catapultam habeo.
Nisi pecuniam omnem mihi dabis, ad caput tuum saxum
immane mittam.
User avatar
CDFiXER
Advanced Member
 
Posts: 367
Joined: Tue Jan 07, 2003 1:45 am

Postby the_whaler » Sun Feb 01, 2009 5:38 am

Although I was not really sure what you would like to achieve, I did try this but no luck. Not suprising as there is no ftp server running on the xp machine.
Although I dit think of starting the html server in xp and making a dyndns with specific port for this use.

Lex
Lex Loen
User avatar
the_whaler
Junior Member
 
Posts: 32
Joined: Wed Jun 26, 2002 2:43 pm
Location: Almere, Netherlands

Postby CDFiXER » Sun Feb 01, 2009 9:43 am

Use the FTP server built into Freesco, then link to it from your machine using Windows Explorer to test if the file transfers ok then.

How about posting your SAMBA configuration?
Catapultam habeo.
Nisi pecuniam omnem mihi dabis, ad caput tuum saxum
immane mittam.
User avatar
CDFiXER
Advanced Member
 
Posts: 367
Joined: Tue Jan 07, 2003 1:45 am

Postby the_whaler » Sun Feb 01, 2009 1:37 pm

good thinking.
for info whazzup is supdirectory of lecakyme
Lex Loen
User avatar
the_whaler
Junior Member
 
Posts: 32
Joined: Wed Jun 26, 2002 2:43 pm
Location: Almere, Netherlands

Postby the_whaler » Sun Feb 01, 2009 2:23 pm

Problem solved.

Still he link via a mounting in xp does not work.
But making a direct connection in the software of the server (fsd.cfg) does work provided you make the good entry and there i went wrong the first times.

I made a entry called \\intern.ip\whazzup\
because for instance the mapping in xp meant it was like that.
But as whazzup is a subdirectory of the share I should have used.
\\internal.ip\lecakyme\whazzup

now it works.

thanks all for your suggestions.
but as they say if you find it yourself you will remember it better.
this I will never forget i think.
Lex
Lex Loen
User avatar
the_whaler
Junior Member
 
Posts: 32
Joined: Wed Jun 26, 2002 2:43 pm
Location: Almere, Netherlands

Postby Lightning » Sun Feb 01, 2009 3:37 pm

I would recommend adding these lines into your smb.conf file
        create mode = 0666
        time service = yes
        dos filetimes = yes
        fake directory create times = yes
        dos filetime resolution = yes
Also this line
        time offset = -0500

However you will need to play with this offset a bit because I am normally -0800 and -0500 is what I had to use to make it right. Of course of the above lines the only one that is really important is the "create mode = 666" line because otherwise files are created executable.
If you are afraid that you might make a mistake. The chances are high that you will never learn anything.
User avatar
Lightning
FREESCO GOD !!
 
Posts: 3045
Joined: Wed Nov 14, 2001 6:50 am
Location: Oregon, USA

Postby the_whaler » Mon Feb 02, 2009 4:26 pm

Thanks lightning.
Added the lines (if it comes from a true gooroo it can only be good).
The time offset with GMT in the Netherlands is 0200 hours in summertime, 0100 in winter so I added 0100 for now. I am planning an upgrade to 041 in the near future (time is as always an issue) and if I read correctly there is even an option for summertime correction in the 04 seriers (perhaps also 03 but I am not aware of that option).

The 0666 I can imagine, did try to find in the help files of samba at the time if there was something to add as general but I did not understand all the technical english at the time (or now for that matter) I was glad to have it working.
Even Swat did not completely help me for that matter but it made life (config) easier.
The other options are rather peculiar to me. What do they do?
Regards
Lex
Lex Loen
User avatar
the_whaler
Junior Member
 
Posts: 32
Joined: Wed Jun 26, 2002 2:43 pm
Location: Almere, Netherlands

Postby CDFiXER » Mon Feb 02, 2009 6:41 pm

This might be of assistance:

<a href='http://us6.samba.org/samba/' target='_blank'>http://us6.samba.org/samba/</a>

The FTP thing would not work, I misread the direction of file transfer/reading.
Catapultam habeo.
Nisi pecuniam omnem mihi dabis, ad caput tuum saxum
immane mittam.
User avatar
CDFiXER
Advanced Member
 
Posts: 367
Joined: Tue Jan 07, 2003 1:45 am

Postby Lightning » Mon Feb 02, 2009 9:38 pm

Hehe all of the other options are really of no real importance in most cases except when the file creation time is a factor and you may be dealing with some DOS systems.
(time is as always an issue)
Actually starting in the later of the 03x series and now in the 04x series you no longer have to change the time offsets in FREESCO. If you download the modules-038.zip file you will find a "timezone" directory. You just copy the correct timezone file to the /boot/tmz/ directory of FREESCO and reboot the system. The system will then automatically change time offsets. Of course the problem this creates for Samba is that you then have to adjust the time offset inside of the smb.conf file to be correct for the file timestamps because it will not be what you think it should be.
If you are afraid that you might make a mistake. The chances are high that you will never learn anything.
User avatar
Lightning
FREESCO GOD !!
 
Posts: 3045
Joined: Wed Nov 14, 2001 6:50 am
Location: Oregon, USA


Return to 3rd Party Package Support for FREESCO v0.3.x

Who is online

Users browsing this forum: No registered users and 1 guest

cron