LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 09-14-2009, 05:09 AM   #1
b-RAM
Member
 
Registered: Apr 2009
Distribution: OpenSuse, Slackware
Posts: 70

Rep: Reputation: 15
See list open files which opens by user samba on network


Hi all, sorry for disturbing your time, i've got some question
2 user samba on network got problem on excel files, sometimes after
they update their files-save-and close that files, but when they open again that files the last input file had missing.

Is there any related on my cron scripts to chmod that files to 0775 every 5 minutes cause i've been try the smb.conf create mask or create mode but did'nt work on server OpenSuse 10.2 (i've been posted this related issue).

And can i know how to check what user samba open files? cause i've used lsof to check that and it work's but sometimes i've seen user root that open the files.

Need enlightment and advise please,

sorry for this question and thank's a lot.
 
Old 09-14-2009, 06:54 AM   #2
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
Did you try "force create mode" in smb.conf? See http://us1.samba.org/samba/docs/man/...mb.conf.5.html and scan through for "force create".

Also, in watching what's going on in samba, have you tried smbstatus and/or upping the log level and watching the log files.
 
Old 09-14-2009, 11:03 AM   #3
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
Quote:
And can i know how to check what user samba open files? cause i've used lsof to check that and it work's but sometimes i've seen user root that open the files.
Use the the following command as root,

smbstatus

Look for the section labeled 'Locked files'.

Regards,

--
Prasanta
 
Old 09-14-2009, 08:11 PM   #4
b-RAM
Member
 
Registered: Apr 2009
Distribution: OpenSuse, Slackware
Posts: 70

Original Poster
Rep: Reputation: 15
Hi Thanks for all your replies, hi choogendyk i've been tryed force create mode too
but didn't work at all, this kind of thing not happen when i used ubuntu server. the one thing
that i know is when configuration samba on open suse 10.2 must use Yast to configure it, cause
sometimes what i add on smb.conf using manually not shown on yast samba, correct me if i'm wrong.

Thank's a lot.
 
Old 09-15-2009, 07:12 AM   #5
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
I'm not familiar enough with Yast or Suse to answer that question. Someone else will have to jump in.

However, since Yast is the install tool, and you aren't seeing your changes take place, I would look for one of two things. Either you are changing a different samba install than what is actually running, or Yast is stomping on your changes and reverting them.

An analogous confusion would be on Solaris 10 if you had the Sun installed Samba in /opt with the SMF service samba, but you had installed your own version of Samba in /usr/local and created an SMF service samba-local. In this case, you would have to make sure you do `svcadm disable samba` and `svcadm enable samba-local` and then make all changes to your /usr/local/samba/lib/smb.conf. If at some point you accidentally start Samba up again with `svcadm enable samba`, or some update causes it to re-enable, then you have confusion.

So, you'll have to explore a bit more what Yast is doing with Samba install and configuration, and answer whether you are doing something different that may conflict with it.
 
  


Reply



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
is there a way to list all files owned by a user? KingPanda Debian 3 10-29-2008 08:16 PM
Xp user opens file via Samba, but file is not locked after opening??? marisdembovskis Linux - Networking 8 07-04-2006 03:30 AM
list all files created by another user christina_rules Linux - General 6 05-23-2006 09:08 PM
How to list files from a certain user?? Drunkalot Linux - General 1 06-20-2005 05:11 AM
firefox dos not open when run under user (opens only in root) saso Mandriva 8 06-15-2005 10:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:31 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration