Results 1 to 6 of 6

Thread: Being able to modify a Shared folder on windows, while guests can only read

  1. #1
    Join Date
    Aug 2013
    Beans
    3

    Being able to modify a Shared folder on windows, while guests can only read

    I have a shared folder that shares fine and can be accessed on my DVR and on my windows computer, but I can't figure out how to make it only allow the shared folder to be modified by one user. I've created a specific account, that logs in fine to the shared folder. The account has ownership of all the folders and files inside, and can read and write them. But with "allow others to create and delete files in this folder" unchecked, I cannot modify the contents. However, if I check that option I can modify the contents. But when I check "guest access", guests can login and modify the contents too. I only want the user Multimedia to be able to modify the contents remotely, and guests to only be able to view them. Is this possible?

  2. #2
    Join Date
    Mar 2010
    Location
    Metro-ATL
    Beans
    Hidden!
    Distro
    Lubuntu 12.04 Precise Pangolin

    Re: Being able to modify a Shared folder on windows, while guests can only read

    Of course, I could easily misunderstand the question. If so, please correct me. Thanks.

    I misunderstood.
    Last edited by TheFu; September 16th, 2013 at 12:52 AM.

  3. #3
    Join Date
    Aug 2013
    Beans
    3

    Re: Being able to modify a Shared folder on windows, while guests can only read

    Well, I'm not worried about the DVR modifying the files, more so computers that are on on my network, since the network broadcasts wirelessly. So if some friend is over and I give him access to my network to use the internet, and he randomly goes in the network sharing and starts browsing, he can go into the folder and see the files, but he can't drag them over to his PC and accidentally "move" them (delete them from the linux server while putting them on his PC). Or something worse if the person was malicious, such as delete all the files.

    I'm simply not understanding why the directory permissions of 775 is are not working over the network.

  4. #4
    Join Date
    Dec 2009
    Beans
    5,368

    Re: Being able to modify a Shared folder on windows, while guests can only read

    I may not understand the requirement either but I think you have 2 problems with what you are trying to do:

    ** Creating a share through Nautilus doesn't allow that type of thing to happen.
    ** Even if you did it the old way with a share definition in smb.conf there is no way to differentiate user=multimedia from the guest unless everyone provides credentials which means there are no guests.

    My recommendation is to make this so simple that even I can understand it by first going old school with a smb.conf share and then create one writeable share for multimedia and one read only share for everyone else:

    *** Go back into Nautilus and "un-share" the folder you shared.

    *** Edit /etc/samba/smb.conf and add at the bottom 2 shares - something like this with the correct paths:
    Code:
    [Share-Admin]
    path = /path/to/shared/folder
    valid users = multimedia
    read only = no
    guest ok = no
    [Share]
    path = /path/to/same/shared/folder
    read only = yes
    guest ok = yes
    *** Unfortunately unlike the Nautilus way to create shares you will have to restart samba after you make the additions:
    Code:
    sudo service smbd restart
    Then you have to wait a bit for the network to settle down before you try to access the new shares.

    [Share-Admin] will ask for credentials but only allow the user "multimedia" in and it will have write access. The [Share] share will allow anyone in but with read only access.

  5. #5
    Join Date
    Aug 2013
    Beans
    3

    Re: Being able to modify a Shared folder on windows, while guests can only read

    Perfect, that was exactly what I was looking for! Thank you. Also I didn't have to wait for the network to settle down, changes that I made worked the moment I restarted the service.

  6. #6
    Join Date
    Sep 2013
    Beans
    1

    Re: Being able to modify a Shared folder on windows, while guests can only read

    I am basically in the same boat. I have 3 folders i want with different access permissions.

    1 - Personal folder: accessible only by me. (read & writing)
    2 - Guest folder: accessible by all, but with limited space
    3 - Streaming folder: Readable by all, but writable only by me.

    Somewhere along the way, i messed it up, and now all of them i can see from another computer, but cannot write to them.

    How can i set it up how i would like? I have been using the gui samba to make it easier to edit.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •