Disk access/permission problem

rikona rikona at sonic.net
Fri Oct 21 22:08:40 UTC 2016


Discs seem to mount differently in 16.04 compared to 12.04. In 12.04
they were mounted as /media/disk name but in 16.04 they mount as
/media/user/disk name. I'm trying to access, from other boxes, a disk
mounted internally that mounts as above. Originally I used the same
samba .conf file I used in 12.04. In 12.04 this worked for both
Windows and Linux boxes. 

I adjusted the mount location in the new samba file, but the disk was
not accessible from either Windows or Linux boxes. I got complaints
about permissions, so temporarily I changed the permissions for the
entire disk to everyone can read/write, and allowed guest sharing for
all parts of the disc. This still did not work. I saw a suggestion on
net to use "force user = username" in an article regarding Windows
access. I added that, but still no access via Windows. But, the Linux
box could now see the disk, so it seemed to help something. It did
change the Windows error message from "no permission" to "not
accessible", but I don't know what that change implies. 

I did change the password on the 16.04 box - don't know if that would
make a difference. The current set of samba parameters is below. I
would appreciate any suggestions that might help diagnose this or fix
it.

[global]
        workgroup = FAMILY
        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

[printers]
        comment = All Printers
        path = /var/spool/samba
        create mask = 0700
        printable = Yes
        browseable = No

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers

[xfr]
        comment = xfrChew
        path = /home/zzzz/xfr
        read only = No
        guest ok = Yes

[zall]
        comment = zall
        path = /media/zzzz/dskint/zall
        force user = zzzz
        read only = No
        guest ok = Yes

Thanks,

 rikona         





More information about the ubuntu-users mailing list