Samba, can not delete files

Posted on 2006-04-25
Last Modified: 2011-10-03

I am sharing a direcory on my linux server,

        comment = Pervasive document Shared
        path = /usr/local/psql/data
        force user = psql
        force group = pvsw
        guest ok = yes
        writeable = yes
        create mask = 0777
        directory mask = 0777

With the previous settings I am able to create files, rename files but not delete files...
users that connect to this folder belong to pvsw group

Do you know why ? and how to fix it?

Thank you

Question by:dnamroud
    LVL 11

    Expert Comment

    What are the permissions of the directory /usr/local/psql/data and the files on Linux? Have you verified that the create and directory masks are working as expected?


    Author Comment

    Hi Gary,

    thank you for your reply, here are my asnwers

    # ls -l /usr/local/psql
    total 48
    drwxr-xr-x    4 psql     pvsw         4096 Apr 19  2004 bin
    drwxrwxrwx   25 psql     pvsw         8192 Apr 25 10:38 data

    ls -l /usr/local/psql/data
    total 1667468
    -rwxrwxrwx    1 psql     pvsw        37888 Nov 30 11:33 02610760
    -rwxrwxrwx    1 psql     pvsw        18944 Nov 17 11:19 17707F10
    drwxrwxrwx    3 psql     pvsw         4096 Mar 17 13:44 ANNA

    I believe everything is running fine and rights are correct...


    LVL 9

    Expert Comment

    This is what I have setup on my Samba server.

            comment = Shared Directory
            path = /data/shared
            guest ok = no
            browseable = yes
            writeable = yes
            create mask = 777

    My users can do everything in this directory.
    LVL 11

    Accepted Solution

    Here's a link to someone else that had the same problem.

    Basically his /var filesystem was full.


    Author Comment

    you are right Gary the /var filesystem was full
    I erased some files from the spool and I need to verify with my users and I will let you know

    thank you for your help


    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
    ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now