LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   generating tmp file in samba server while saving file from win7 in samba server (https://www.linuxquestions.org/questions/linux-server-73/generating-tmp-file-in-samba-server-while-saving-file-from-win7-in-samba-server-907320/)

centos123 10-09-2011 11:11 PM

generating tmp file in samba server while saving file from win7 in samba server
 
...when i save or edit any doc file from windows7 into samba shared file servers directories..i get a tmp file in linux samba server & not getting that doc in server.

-rwxr--r-- 1 michel michel 32K Oct 8 14:30 12B5ADF1.tmp

it not properly get sync..how to resolve it.

kasl33 10-10-2011 12:46 AM

Please post the contents of your /etc/samba/smb.conf (towards the bottom) where your shares are set up. That will help us to a good start in troubleshooting.

Code:

cat /etc/samba/smb.conf > ~/samba_configuration

centos123 10-10-2011 02:52 AM

Quote:

Originally Posted by kasl33 (Post 4494283)
Please post the contents of your /etc/samba/smb.conf (towards the bottom) where your shares are set up. That will help us to a good start in troubleshooting.

Code:

cat /etc/samba/smb.conf > ~/samba_configuration



No output....now what

kasl33 10-10-2011 03:05 AM

Was there. File in your home directory? There should have been - this would have the output.

It will be called samba_config

michaelk 10-10-2011 03:46 AM

Command that kasl33 posted copied your smb.conf file to a new file in your home directory called samba_configuration. There will not be any output if the command completed successfully.

I do not understand what you mean by
Quote:

i get a tmp file in linux samba server & not getting that doc in server.

centos123 10-10-2011 04:37 AM

let me tell you the scenario ...
i configured a fileserver (samba server)in centos.
i created user accounts in linux with same password as have user of windows/7 ..Mydocument of window of each user is mapped with file server...ie.target location is changed to file server.in their home dir.which is shared samba dir.....so when ever user save any data inside Mydocument , data will be saved in linux fileserver at same time.since its target location is fileserver as i already mention.....when ever we would add/edit/ any doc data get sync into server.

now issue come out is ...when iam saving ms-doc file in mydocument of win7 user.,doc get save in mydocument but iam getting a temp file in linux server...doc file completely not reaching in server.instead of that a tmp file is reaching.which i posted in my 1st post..

so now how to get out of this issue?

michaelk 10-10-2011 04:42 AM

Please post your smb.conf file

centos123 10-10-2011 04:42 AM

in server home dir there is users home dir which is shared...and user of window can access their own home dir to save data...

kasl33 10-10-2011 04:53 AM

Quote:

Originally Posted by michaelk (Post 4494378)
Command that kasl33 posted copied your smb.conf file to a new file in your home directory called samba_configuration. There will not be any output if the command completed successfully.

I do not understand what you mean by

Actually there should be output. All I did was have him cat the file and output the contents to a file in his home directory for easy access in a program like gedit .

The content should be in the OP's home directory in a file named samba_configuration.

OP: try this command: gedit ~/samba_configuration

Then copy and paste it all here please.

Lexus45 10-10-2011 05:14 AM

Code:

testparm
command, to see/show us the output of your config file without comments. I think its's a good starting point.

michaelk 10-10-2011 06:13 AM

After a bit of googling it could be a windows 7 networking problem and not necessarily with samba.
http://social.technet.microsoft.com/...b-8dabc7a243b4

Quote:

Actually there should be output. All I did was have him cat the file and output the contents to a file in his home directory for easy access in a program like gedit .
True, however when the command is executed there is no text output.

centos123 10-10-2011 06:30 AM

thanks all for replying...

posting output of testparm smb.conf

Processing section "[michel]"
Processing section "[michel]" //user2
Processing section "[michel]" //user3
Processing section "[michel]" ''
Processing section "[michel]" ''
Processing section "[michel]" ''
Loaded services file OK.
WARNING: You have some share names that are longer than 12 characters.
These may not be accessible to some older clients.
(Eg. Windows9x, WindowsMe, and smbclient prior to Samba 3.0.)
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[michel]
path = /home/michel
valid users = michel,user1,user2,user3...
read only = No
veto files = /*.msi/*.exe/*.mp3/*.bat/*.com/*.dll/*.lnk/*.asd/*.shb/*.vb/*.wsf/*.wsh/*.pif/*.scr/*.chm/*.hta/*.shs/*.vbs/*.vbe/*.js/*.jse/*.wmv/*.3gp/*.avi/*.mp4/*.ini/*RECYCLER*/

kasl33 10-10-2011 04:50 PM

Quote:

Originally Posted by michaelk (Post 4494439)
... True, however when the command is executed there is no text output.

Michaelk: Since you're a moderator on this website, I'm going to guess you probably know a bit about Linux. Now, unless everything I know about Linux just up and changed, the following command will run and produce output 100% of the time:

Code:

cat /etc/samba/smb.conf > ~/samba_configuration
Explanation of the code above:

cat = a program to display the contents of a file (in this case, /etc/samba/smb.conf) to the screen.
> = a command for redirecting the output of a command (the cat command in this case) to another kind of output.

So in my code above, I outputted the contents of smb.conf to a file in the users home directory. We could have easily done the same thing with the cp command since the result would have been the same.

Now is there something here that I'm missing, or did you not read it right? What happened?

michaelk 10-11-2011 12:50 AM

Nope, your correct.

Your problem could also be a permissions issue since it appears that you have many users accessing a single home directory.

centos123 10-11-2011 03:46 AM

i did all rnd with permission of all files and dir...
but still iam gettinh tmp file of all those file which get update from old file or a new doc file...i think it is of sync problem...

is there is any sync issue arrises in win 7...coz other client have win xp and there is no issue sync issue with win xp...

when ever i sync manually in win 7..it gives error
" file was deleted on this computer and changed on the server while this computer was offline "


All times are GMT -5. The time now is 09:30 PM.