MiniDLNA some permission fun

77 views
Skip to first unread message

Eric R. Wick

unread,
Sep 13, 2014, 5:43:36 AM9/13/14
to al...@googlegroups.com
This is Alt-F RC4 on a DNS325-A2

found a strange behaviour between minidlna and smb sharing in the media database. When remote filling new stuff, it will become myname.users in the database. The minidlna seems unable to scan these files through permissions, he only like minidlna.multimedia files. Someone have a better solution, than to login to the NAS after copy and fumble the permissions by hand?

The minidlna user does not have a password, so i cant use him to login through smb. The media database was ported from the dlink+ffp installation, so the old permissions are hanging somewhere around.

Thanks
Eric


João Cardoso

unread,
Sep 13, 2014, 8:59:47 AM9/13/14
to al...@googlegroups.com


On Saturday, September 13, 2014 10:43:36 AM UTC+1, Eric R. Wick wrote:
This is Alt-F RC4 on a DNS325-A2

found a strange behaviour between minidlna and smb sharing in the media database. When remote filling new stuff, it will become myname.users in the database. The minidlna seems unable to scan these files through permissions, he only like minidlna.multimedia files. Someone have a better solution, than to login to the NAS after copy and fumble the permissions by hand?

You probably want to change 'force directory mode' and 'force create mode' samba settings for the shares that minidlna scans. This will apply to new files/folders only.
You can edit /etc/samba/smb.conf or use SWAT (Services->Network->smb->Configure->Advanced; you might want to install the samba-doc package first, so you will have SWAT online help).

       force create mode (S)

           This parameter specifies a set of UNIX mode bit permissions that will always be set on
           a file created by Samba. This is done by bitwise ´OR´ing these bits onto the mode bits
           of a file that is being created. The default for this parameter is (in octal) 000. The
           modes in this parameter are bitwise ´OR´ed onto the file mode after the mask set in
           the create mask parameter is applied.

           The example below would force all newly created files to have read and execute
           permissions set for ´group´ and ´other´ as well as the read/write/execute bits set for
           the ´user´.

           Default: force create mode = 000

           Example: force create mode = 0755

       force directory mode (S)

           This parameter specifies a set of UNIX mode bit permissions that will always be set on
           a directory created by Samba. This is done by bitwise ´OR´ing these bits onto the mode
           bits of a directory that is being created. The default for this parameter is (in
           octal) 0000 which will not add any extra permission bits to a created directory. This
           operation is done after the mode mask in the parameter directory mask is applied.

           The example below would force all created directories to have read and execute
           permissions set for ´group´ and ´other´ as well as the read/write/execute bits set for
           the ´user´.

           Default: force directory mode = 000

           Example: force directory mode = 0755
Reply all
Reply to author
Forward
0 new messages