[Samba] Can upload but can't delete how ? - Samba

This is a discussion on [Samba] Can upload but can't delete how ? - Samba ; Hi to all , Is there a way to make this with samba possible . User can save files to share but can't delete the files only user with special right can delete files. Thanks a log. -- To unsubscribe ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: [Samba] Can upload but can't delete how ?

  1. [Samba] Can upload but can't delete how ?

    Hi to all ,
    Is there a way to make this with samba possible .
    User can save files to share but can't delete the files only user with
    special right can delete files.

    Thanks a log.
    --
    To unsubscribe from this list go to the following URL and read the
    instructions: https://lists.samba.org/mailman/listinfo/samba

  2. Re: [Samba] Can upload but can't delete how ?

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Stanislav Nedelchev wrote:
    > Hi to all ,
    > Is there a way to make this with samba possible .
    > User can save files to share but can't delete the files only user with
    > special right can delete files.


    See "inherit owner" in smb.conf(5). But if you can write to
    a file you can truncate it to 0 bytes so the delete permission
    is a little misleading.





    cheers, jerry
    ================================================== ===================
    Samba ------- http://www.samba.org
    Centeris ----------- http://www.centeris.com
    "What man is a man who does not make the world better?" --Balian
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.3 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

    iD8DBQFGFnGoIR7qMdg1EfYRAsGvAJ9gCPCwZapNXE/6wsFv+tmVPwCLzwCgtQNJ
    9GGa4FFi3t2Vt1pp/uWk2aU=
    =i9ZB
    -----END PGP SIGNATURE-----
    --
    To unsubscribe from this list go to the following URL and read the
    instructions: https://lists.samba.org/mailman/listinfo/samba

  3. Re: [Samba] Can upload but can't delete how ?

    Gerald (Jerry) Carter wrote:
    > Stanislav Nedelchev wrote:
    > >> Hi to all ,
    > >> Is there a way to make this with samba possible .
    > >> User can save files to share but can't delete the files only user with
    > >> special right can delete files.

    >
    > See "inherit owner" in smb.conf(5). But if you can write to
    > a file you can truncate it to 0 bytes so the delete permission
    > is a little misleading.
    >
    >
    >
    >
    >
    > cheers, jerry
    > ================================================== ===================
    > Samba ------- http://www.samba.org
    > Centeris ----------- http://www.centeris.com
    > "What man is a man who does not make the world better?" --Balian
    > See "inherit owner" in smb.conf(5). But if you can write to
    > a file you can truncate it to 0 bytes so the delete permission
    > is a little misleading.

    Yes but you can't delete involuntarily some file over the network . i
    read the manual but i can;t find how to use inherit owner.
    Any suggestion are welcome.
    --
    To unsubscribe from this list go to the following URL and read the
    instructions: https://lists.samba.org/mailman/listinfo/samba

  4. Re: [Samba] Can upload but can't delete how ?

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Stanislav Nedelchev wrote:

    > Gerald (Jerry) Carter wrote:
    >> Stanislav Nedelchev wrote:


    >>>> Hi to all ,
    >>>> Is there a way to make this with samba possible .
    >>>> User can save files to share but can't delete the files only user with
    >>>> special right can delete files.

    >>
    >> See "inherit owner" in smb.conf(5). But if you can write to
    >> a file you can truncate it to 0 bytes so the delete permission
    >> is a little misleading.

    > Yes but you can't delete involuntarily some file over the network . i
    > read the manual but i can;t find how to use inherit owner.
    > Any suggestion are welcome.


    Something like this should work (for accounts that belong
    to the "users" group):

    $ mkdir /data/dontdelete
    $ chmod 1770 /data/dontdelete
    $ chown root /data/dontdelete
    $ chgrp users /data/dontdelete

    [dontdelete]
    path = /data/dontdelete
    inherit owner = yes
    inherit permissions = yes




    cheers, jerry
    ================================================== ===================
    Samba ------- http://www.samba.org
    Centeris ----------- http://www.centeris.com
    "What man is a man who does not make the world better?" --Balian
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.3 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

    iD8DBQFGH8kIIR7qMdg1EfYRAkUxAKCOYORYaVCtWTGeweh4OY 0JNNqjQgCgvTfT
    TYYMP0e52H8/S71qEMvLf5w=
    =d+JR
    -----END PGP SIGNATURE-----
    --
    To unsubscribe from this list go to the following URL and read the
    instructions: https://lists.samba.org/mailman/listinfo/samba

+ Reply to Thread