+ Post New Thread
Results 1 to 3 of 3
*nix Thread, Unable to share folder on disk using Samba -Rights problem?- in Technical; Hi All, I've a folder on my user folder that is shared using samba (shared with everyone), and works ok. ...
  1. #1

    Join Date
    Jul 2013
    Posts
    37
    Thank Post
    1
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Question Unable to share folder on disk using Samba -Rights problem?-

    Hi All,

    I've a folder on my user folder that is shared using samba (shared with everyone), and works ok.

    I've a secondary 2TB disk formatted with ext4, and a folder on it that I want to share. My problem is that as soon as I share it with Samba (shared with everyone) it un-shares itself automatically. I suspect that it's a problem is caused by the rights on this secondary disk.

    I've use chown to take ownership on the disk:

    sudo chown -R elhtpc /media/elhtpc/STORE

    And I've also try chmod:

    sudo chmod -R 777 /media/elhtpc/STORE

    Problem persists.

    How can I share a folder content on this disk?

    Many thanks in advance

  2. #2

    Join Date
    Jul 2013
    Posts
    37
    Thank Post
    1
    Thanked 1 Time in 1 Post
    Rep Power
    0
    I've format disk again with gparted (ext4), so I can't write on disk (as usual), so I made:

    Code:
    chmod -R 777 /media/elhtpc/ALMACEN
    (The actual name is ALMACEN, not STORE). Now I had access from the local machine to write and create folders.

    I try to share a folder (right click, properties, share tab, share with samba, allow guests, everyone: full control, elhtpc:full control), and on Rights tab I set "Ohers: Can view and modify content" and check "Apply to subfolders and its contents".

    In this moment the folder get the "shared" icon but I can't access to it from Windows machine. Another important thing is that the values I set on share tab seems to dissapear when I press "accept".

    I've try to force all of my samba clients to look like "elhtpc" for the shares. I edit /etc/samba/smb.conf and add "force user = elhtpc" under the workgroup line.

    Now I can access to the new shared folder but I have only read rights, not write. If I enter on share tab in folder properties, I set "allow guests, everyone: full control", but when I accept and enter again is changed to "read only".

    I've try:
    Code:
    sudo chown -R elhtpc /media/elhtpc/ALMACEN
    But problem persist.


    I copy the result of testparm -s

    Code:
    [global]
        server string = %h server (Samba, Ubuntu)
        server role = standalone server
        map to guest = Bad User
        obey pam restrictions = Yes
        pam password change = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        unix password sync = Yes
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        dns proxy = No
        usershare allow guests = Yes
        panic action = /usr/share/samba/panic-action %d
        idmap config * : backend = tdb
        force user = elhtpc
    
    [printers]
        comment = All Printers
        path = /var/spool/samba
        create mask = 0700
        printable = Yes
        print ok = Yes
        browseable = No
    
    [print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers
    This is the output of cat /proc/mounts:

    Code:
    rootfs / rootfs rw 0 0
    sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
    proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
    udev /dev devtmpfs rw,relatime,size=1833868k,nr_inodes=458467,mode=755 0 0
    devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
    tmpfs /run tmpfs rw,nosuid,noexec,relatime,size=369760k,mode=755 0 0
    /dev/disk/by-uuid/928a3979-d26c-4d5a-96bc-7106314f545c / ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
    none /sys/fs/cgroup tmpfs rw,relatime,size=4k,mode=755 0 0
    none /sys/fs/fuse/connections fusectl rw,relatime 0 0
    none /sys/kernel/debug debugfs rw,relatime 0 0
    none /sys/kernel/security securityfs rw,relatime 0 0
    none /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0
    none /run/shm tmpfs rw,nosuid,nodev,relatime 0 0
    none /run/user tmpfs rw,nosuid,nodev,noexec,relatime,size=102400k,mode=755 0 0
    none /sys/fs/pstore pstore rw,relatime 0 0
    systemd /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,name=systemd 0 0
    /dev/sdb1 /media/elhtpc/ALMACEN ext4 rw,nosuid,nodev,relatime,data=ordered 0 0
    result of cat /etc/mtab | grep ALMACEN

    Code:
    /dev/sdb1 /media/elhtpc/ALMACEN ext4 rw,nosuid,nodev,uhelper=udisks2 0 0
    ¿How to get write access?

    Many thanks in advance

  3. #3

    Join Date
    Jul 2013
    Posts
    37
    Thank Post
    1
    Thanked 1 Time in 1 Post
    Rep Power
    0
    I've just format the disk using ext3 instead of ext4 and now I can read/write in the disk from the Windows machine.

    Am I missing important differentes if I "downgrade" from ext4 to ext3? The disk is going to be used mainly to manage downloads (transmission, jdownloader...) and storing files, films and tv series mainly.

    Even with this, I would like to use ext4 if is possible in any way.

    Many thanks in advance.



SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 0
    Last Post: 8th June 2011, 11:21 AM
  2. Replies: 0
    Last Post: 31st January 2010, 07:55 PM
  3. Replies: 3
    Last Post: 12th December 2007, 09:52 AM
  4. Teacher unable to home log on to notebook PC
    By speckytecky in forum Windows
    Replies: 8
    Last Post: 15th November 2007, 11:12 AM
  5. Replies: 6
    Last Post: 20th October 2005, 07:48 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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