LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Windows users can not delete files from Samba (https://www.linuxquestions.org/questions/linux-software-2/windows-users-can-not-delete-files-from-samba-611258/)

rushenas 01-05-2008 12:07 AM

Windows users can not delete files from Samba
 
Hi
Below is my smb.conf file:
Code:


[global]
        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

[public]
        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.

Simon Bridge 01-05-2008 04:13 AM

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.

http://www.samba.org/samba/docs/man/...sControls.html
You can either use force-user or add the windows user to the "write list".


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