LinuxQuestions.org
Help answer threads with 0 replies.
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-16-2013, 04:59 AM   #1
elmack
LQ Newbie
 
Registered: Aug 2012
Location: Sofia
Distribution: a lot of
Posts: 4

Rep: Reputation: Disabled
Smile Samba and pdf-s


Hello guys. This is my first thread here. I am sorry for my grammar.
My problem:
We have a file server (samba), and the people here commonly work with *.dwg files, autocad. They often use *.pdf files, *.xls and others. But from time to time we have problem. Some pdf file cannot be deleted, because they are open. When I go to the pc that has open it, they already been closed.
On the next day everything is good. The pdf file can be deleted.
This is not happens with most of the employees, and it not happens with every pdf file.
Any suggestions?
 
Old 09-17-2013, 05:16 AM   #2
rog_ski
LQ Newbie
 
Registered: Sep 2010
Posts: 13

Rep: Reputation: 0
Elmack

Welcome to the Linux Questions Forums and I am not a grammar expert but yours seems fine..

I have seen symptoms similar to this before with other applications and it may not be related to samba however someone may chime in after me with a more correct answer. As it is not happening on every file I have a couple of things quickly.
  • Is it possible that the PDF is opened by another user?
  • Is the pdf closed but the application (adobe) still open on the desktop. The app may still have a lock on the file. <Application related>
  • Does this only happen on PDFs that a user has printed. <printer related>
  • Does it only happen to certain users and not others. <PC Related>
  • Can the file be deleted from the server as opposed from the user

Right off the bat I might have the user logout and back in and see if the file can be deleted.

I will run some tests on our system today to see if I encounter the same issue and answer back if I have anything definitive

Cheers
 
Old 09-17-2013, 03:47 PM   #3
elmack
LQ Newbie
 
Registered: Aug 2012
Location: Sofia
Distribution: a lot of
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you @rog_ski for the questions. I will try to asnwer you.

The network drive is mapped in user's explorers (in My Computer)(windows).
Everyone is using one user (samba one).
I've heard about this problem only from few people, but important one(project managers).

Is it possible that the PDF is opened by another?
It's closed. (i've checked)

Is the pdf closed but the application (adobe) still open on the desktop. The app may still have a lock on the file. <Application related> ?
Hm... Adobe is not opened. Even the file. But what about if some proccess does it. Can I try to see the logs? But where?

Does this only happen on PDFs that a user has printed. <printer related> ?
THEY say NO. I asked them before.

Does it only happen to certain users and not others. <PC Related> ?
I've heard about this problem only from few people, but important one(project managers).

Can the file be deleted from the server as opposed from the user? (what do you mean)
When someone calls me for some file even I am not able to delete it. This happen to me once.

How you run the "tests" on your system? its interesting for me. I will make samba test server(vm) to try too...
 
Old 09-18-2013, 12:29 AM   #4
zafar_dandoti
Member
 
Registered: Dec 2005
Location: India
Distribution: centos
Posts: 178

Rep: Reputation: 13
recheck permissions(directory permissions not samba share permission) of each user having problem.
try disabling selinux and try .
 
Old 09-18-2013, 05:28 AM   #5
rog_ski
LQ Newbie
 
Registered: Sep 2010
Posts: 13

Rep: Reputation: 0
Elmack

I ran some quick tests on mine and the only way I was not able to delete the file is if it was open on the test workstation. The fact that it is only hitting some users (the important ones) may lead to something specific with their workstations, file types (basic adobe or one you can modify and save), policies, additonal software on workstations. More ideas and you don't need to answer these back to the forum but ask these yourself these questions
  • Is it only related to certain PDF files or users?
  • Does it only happen to certain users and never to other users?
  • Does it only happen to certain PDF files and never to other PDF files? Are they the type of PDF files that can be modified and saved by the user with just adobe reader?
  • Do the users that have the issues have that do not have the issue have only PDF Reader and the users that are having the difficulty have the PDF writing (creator) program
  • Are the files that stay locked the only ones that are affected and does it happen every time they open them?
  • What happens if you take a file that will not close for one user and "copy" it to another user that has never had the problem?
  • Do the users that are having the troubles have specific policies and or programs that other users do not?
  • What happens if a user can not delete a file and then logs out and back in (or as far as a restart of their workstation) can the file then be deleted

Finally I would like to see a copy of your samba config file (global and share) as well any real difference in the users and workstations that are having the issues.
 
Old 09-18-2013, 06:41 AM   #6
elmack
LQ Newbie
 
Registered: Aug 2012
Location: Sofia
Distribution: a lot of
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by zafar_dandoti View Post
recheck permissions(directory permissions not samba share permission) of each user having problem.
try disabling selinux and try .
I already tell you. The network drive is mapped with same samba user every person.
 
Old 09-20-2013, 12:53 AM   #7
elmack
LQ Newbie
 
Registered: Aug 2012
Location: Sofia
Distribution: a lot of
Posts: 4

Original Poster
Rep: Reputation: Disabled
@rog_ski:
Code:
[data]
        path = /data/main/private/101/mnt/data
        read only = No
        guest ok = Yes
        vfs objects = recycle full_audit
        recycle:repository = .recycle
        recycle:keeptree = yes
        recycle:versions = yes
        full_audit:prefix = %u|%I|%S
        full_audit:failure = connect
        full_audit:success = rmdir mkdir open sendfile rename unlink mknod
        full_audit:facility = local5
        full_audit:priority = notice

[global]
        name resolve order = wins lmhosts hosts bcast
        ldap ssl = no
        security mask = 00
        wins server = *******************
        create mask = 0777
        null passwords = yes
        username map = /etc/samba/user.map
        encrypt passwords = yes
        netbios name = *******************
        server string = File Server
        default = data
        unix password sync = yes
        force security mode = 0777
        force create mode = 0755
        workgroup = *******************
        os level = 20
        directory mask = 0777
        auto services = data tmp
        security = user
        preferred master = no
        host msdfs   = yes
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        log level = 3 vfs:2
        log file = /var/log/samba/log.%U.%m
#        log level = 3 passdb:5 auth:10 winbind:2

        strict locking = no
#        oplocks = no
oplocks = False
level2 oplocks = False

load printers = no
        printing = bsd
        printcap name = /dev/null
        disable spoolss = yes

        vfs objects = full_audit

        full_audit:prefix = %u|%I|%S
        full_audit:failure = connect
        full_audit:success = rmdir mkdir open sendfile rename unlink mknod
        full_audit:facility = local5
        full_audit:priority = notice


[tmp]
   comment = Temporary file space
   path = /tmp
   read only = no
   public = yes
 
Old 09-20-2013, 11:16 AM   #8
rog_ski
LQ Newbie
 
Registered: Sep 2010
Posts: 13

Rep: Reputation: 0
elmack

As it is only affecting a limited number of your users on certain files I would look for something that is different with those users and or files. Did you get a chance to look at all the items on post #5 above. I still think you are looking for a different type of software such as the adobe reader - writer (forget the product name). I may be repeating myself but does this happen every time a user opens the file or only limited times. I think if it was something in the samba.conf it would be affecting everyone on those files.

As we are on a closed network running a number of different OS types we had a requirement to map folders from machines operating at different OS levels and were not as concerned with the security aspect. We used the following samba.conf

Code:
[ global]
workgroup = WORKGROUP 
netbios name = server
printing = cups 
printcap name = cups 
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\L\profiles\.msprofile 
logon home = \\L\U\.9xprofile
logon drive = P:
usershare allow guests = Yes
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s/bin/false %m$
domain logons = No 
domain master = No 
client signing = yes 
server signing = yes

[file-share-1]
comment = software 
inherit ads = Yes 
path = /Shared-1 
local writable = yes
guest ok = yes
 
  


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
samba pdf printing qvindesland Linux - Enterprise 3 11-03-2008 10:48 AM
Samba PDF share disappearing antwoneeter Linux - Software 2 10-04-2004 09:49 PM
Samba PDF printer AdamPengelly Linux - Networking 8 01-13-2004 12:26 PM
samba print pdf heero82 Linux - Software 0 07-21-2003 08:27 PM
SAMBA PDF Printer Setting heero82 Linux - Software 0 07-18-2003 04:00 AM

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

All times are GMT -5. The time now is 12:21 AM.

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