Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Samba create folder

  1. #1
    Join Date
    Jun 2012
    Beans
    68

    Samba create folder

    How can I create folder on samba with windows pc.
    What I need to add here (smb.conf)
    [TV Shows]
    comment = TV Shows
    path = /media/sdb2
    browsable = yes
    guest ok = yes
    read only = no
    create mask = 0755

  2. #2
    Join Date
    Dec 2009
    Beans
    6,795

    Re: Samba create folder

    I don't understand the question. The share definition you posted looks correct.

  3. #3
    Join Date
    Jun 2012
    Beans
    68

    Re: Samba create folder

    Quote Originally Posted by Morbius1 View Post
    I don't understand the question. The share definition you posted looks correct.
    I can acces my files and watch videos but I can't create folder. When I try to create a folder windows gives me this error
    Untitled.png

    Best Regards

  4. #4
    Join Date
    Dec 2009
    Beans
    6,795

    Re: Samba create folder

    What is the output of the following command:
    Code:
    ls -dl /media/sdb2

  5. #5
    Join Date
    Jun 2012
    Beans
    68

    Re: Samba create folder

    Quote Originally Posted by Morbius1 View Post
    What is the output of the following command:
    Code:
    ls -dl /media/sdb2
    drwxr-xr-x 29 root root 16384 Jan 1 1970 /media/sdb2

  6. #6
    Join Date
    Dec 2009
    Beans
    6,795

    Re: Samba create folder

    The only person getting write access to the folder being shared is root. From your other post it's because you used PySDM. Go into /etc/fstab and look at the line PySDM created for that partition. Please post the output of the following command:
    Code:
    cat /etc/fstab
    It looks like PySDM has the umask parameter set to "umask=022". It needs to be changed to "umask=000"

  7. #7
    Join Date
    Jun 2012
    Beans
    68

    Re: Samba create folder

    Quote Originally Posted by Morbius1 View Post
    The only person getting write access to the folder being shared is root. From your other post it's because you used PySDM. Go into /etc/fstab and look at the line PySDM created for that partition. Please post the output of the following command:
    Code:
    cat /etc/fstab
    It looks like PySDM has the umask parameter set to "umask=022". It needs to be changed to "umask=000"
    This is the output of
    Code:
    cat /etc/fstab
    Code:
    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc                                       /proc        proc  nodev,noexec,nosuid  0  0  
    # / was on /dev/sda1 during installation
    UUID=cc1a8b2c-6c1a-415e-b2d6-c73a370d2b81  /            ext4  errors=remount-ro    0  1  
    # swap was on /dev/sda5 during installation
    UUID=66b18417-1260-4e53-80c6-53575e7aadce  none         swap  sw                   0  0  
    /dev/sdb2                                  /media/sdb2  vfat  users,user           0  0

  8. #8
    Join Date
    Dec 2009
    Beans
    6,795

    Re: Samba create folder

    Change this:
    Code:
    /dev/sdb2 /media/sdb2  vfat  users,user 0  0
    To this:
    Code:
    /dev/sdb2 /media/sdb2  vfat defaults,utf8,umask=000 0 2
    Then unmount the partition:
    Code:
    sudo umount /media/sdb2
    And remount the partition using this command:
    Code:
    sudo mount -a

  9. #9
    Join Date
    Jun 2012
    Beans
    68

    Re: Samba create folder

    Quote Originally Posted by Morbius1 View Post
    Change this:
    Code:
    /dev/sdb2 /media/sdb2  vfat  users,user 0  0
    To this:
    Code:
    /dev/sdb2 /media/sdb2  vfat defaults,utf8,umask=000 0 2
    Then unmount the partition:
    Code:
    sudo umount /media/sdb2
    And remount the partition using this command:
    Code:
    sudo mount -a
    Thanks it worked now I can create folder. Thanks for everything. Ask me if I can do anything for you.

    Best Regards

  10. #10
    Join Date
    Jun 2012
    Beans
    68

    Re: Samba create folder

    This worked with only one shared folder. Yesterday I created 3 more shared folder and again I can't get permission to create folder in this 3 shared folder.

    Best Regards

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •