Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-05-2008, 12:07 AM   #1
Registered: May 2005
Posts: 34

Rep: Reputation: 15
Windows users can not delete files from Samba

Below is my smb.conf file:
        workgroup = SEP
        netbios name = MASHIN
        server string = Share for Linux Machine
        map to guest = Bad User
        printcap name = cups
        add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
        logon path = \\%L\profiles\.msprofile
        logon drive = P:
        logon home = \\%L\%U\.9xprofile
        domain master = No
        usershare allow guests = Yes
        cups options = raw
        include = /etc/samba/dhcp.conf
        security = user

        comment = Public Folder
        path = /home/public
        public = yes
        writeable = yes
        read only = No
I have a user named publec, and I shared it's home folder /home/public with permission 777. I also have added this user into smbpasswd file, with no password.
User can access to this folder, but the only person who can change/delete the file is the person who have put the file. While I wanna grant this access to everybody to change other files, too.
Do I have to do something else? The umask for public user is 022.
Old 01-05-2008, 04:13 AM   #2
Simon Bridge
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Well... what about the access permissions on the file?
Allowing everyone to alter and delete a file in situ over a network is a bad idea: what happens when two users try to save the same file? Maybe one wants to delete it while another is working on it?

The standard way around this is to allow users to copy the file to a location where they can work on it, then copy it to their public folder.

For large collaborative projects, some sort of ftp server is better.
You can either use force-user or add the windows user to the "write list".

Last edited by Simon Bridge; 01-05-2008 at 04:20 AM.


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
as root can not delete files in users home spooge Slackware 3 11-16-2007 09:52 PM
Samba users cannot create directories / delete files habiem Linux - Server 1 09-21-2007 04:59 PM
cannot delete any file of other users (samba question) eduac Linux - Software 2 02-07-2006 03:11 AM
vsftpd: allow users to write and delete files me3 Linux - Software 4 03-04-2005 07:22 PM
log what files users create, delete etc. Goma_2 Linux - General 3 09-26-2003 06:12 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:31 AM.

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