LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 10-09-2011, 11:11 PM   #1
centos123
Member
 
Registered: Apr 2011
Posts: 390

Rep: Reputation: 14
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.
 
Old 10-10-2011, 12:46 AM   #2
kasl33
Member
 
Registered: Oct 2004
Location: Bremerton, WA
Distribution: Arch, Debian, Ubuntu, Ubuntu-Server, CentOS, OSX Lion
Posts: 352

Rep: Reputation: 47
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
 
Old 10-10-2011, 02:52 AM   #3
centos123
Member
 
Registered: Apr 2011
Posts: 390

Original Poster
Rep: Reputation: 14
Quote:
Originally Posted by kasl33 View Post
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
 
Old 10-10-2011, 03:05 AM   #4
kasl33
Member
 
Registered: Oct 2004
Location: Bremerton, WA
Distribution: Arch, Debian, Ubuntu, Ubuntu-Server, CentOS, OSX Lion
Posts: 352

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

It will be called samba_config
 
Old 10-10-2011, 03:46 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,856

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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.
 
Old 10-10-2011, 04:37 AM   #6
centos123
Member
 
Registered: Apr 2011
Posts: 390

Original Poster
Rep: Reputation: 14
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?
 
Old 10-10-2011, 04:42 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,856

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Please post your smb.conf file
 
Old 10-10-2011, 04:42 AM   #8
centos123
Member
 
Registered: Apr 2011
Posts: 390

Original Poster
Rep: Reputation: 14
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...
 
Old 10-10-2011, 04:53 AM   #9
kasl33
Member
 
Registered: Oct 2004
Location: Bremerton, WA
Distribution: Arch, Debian, Ubuntu, Ubuntu-Server, CentOS, OSX Lion
Posts: 352

Rep: Reputation: 47
Quote:
Originally Posted by michaelk View Post
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.
 
Old 10-10-2011, 05:14 AM   #10
Lexus45
Member
 
Registered: Jan 2010
Location: Kurgan, Russia
Distribution: Slackware, Ubuntu
Posts: 339
Blog Entries: 3

Rep: Reputation: 47
Code:
testparm
command, to see/show us the output of your config file without comments. I think its's a good starting point.
 
Old 10-10-2011, 06:13 AM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,856

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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.

Last edited by michaelk; 10-10-2011 at 06:21 AM.
 
Old 10-10-2011, 06:30 AM   #12
centos123
Member
 
Registered: Apr 2011
Posts: 390

Original Poster
Rep: Reputation: 14
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*/
 
Old 10-10-2011, 04:50 PM   #13
kasl33
Member
 
Registered: Oct 2004
Location: Bremerton, WA
Distribution: Arch, Debian, Ubuntu, Ubuntu-Server, CentOS, OSX Lion
Posts: 352

Rep: Reputation: 47
Quote:
Originally Posted by michaelk View Post
... 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?
 
Old 10-11-2011, 12:50 AM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,856

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Nope, your correct.

Your problem could also be a permissions issue since it appears that you have many users accessing a single home directory.
 
Old 10-11-2011, 03:46 AM   #15
centos123
Member
 
Registered: Apr 2011
Posts: 390

Original Poster
Rep: Reputation: 14
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 "
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SLES 11.2 Samba Server with Win7 Clients pnguyen Linux - Server 3 03-12-2010 12:16 PM
File Server + Samba + LDAP + Backup Server pawan_lal Linux - Server 1 05-11-2009 11:10 AM
samba file server help p03p Linux - Newbie 6 03-05-2009 10:05 AM
Samba on my File Server crep Linux - Networking 1 05-02-2005 08:23 AM
File Server - File system? Samba SUSE9 crazyswede Linux - Newbie 1 04-14-2005 10:04 AM


All times are GMT -5. The time now is 04:11 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration