Problem about permission

Kernels & Hardware, configuring network, installing services

Problem about permission

Postby coppolino97 » 2019-01-21 08:17

Hi guys,
I need an help because I have a little issue with a network share on my raspberry.
On the Raspberry PI I have installed samba to have some network share in my home and transmission to download torrent too.
The problem is this one:
- I have created one share that it is called "torrent" and the permission settings are this one (I suppose that there aren't limit about permission):
Code: Select all
[torrent]
        create mode = 777
        writeable = yes
        guest only = yes
        directory mode = 777
        path = /mnt/disco/torrent
        public = yes

- transmission is configured to download all in this share
- the file that transmission downloaded have different permission like this:
Code: Select all
-rwxrwxrwx 1 nobody              nogroup 1719751418 Jan 20 18:30 name_file
-rwxrwxrwx 1 debian-transmission dietpi  1556448850 Jan 20 16:37 name_file
-rw-rw---- 1 debian-transmission dietpi  2641551072 Jan 20 19:55 name_of_file


I suppose that the problem is that all my share can access as guest,in fact if I go to the share and type
Code: Select all
chmod 777 /mnt/disco/torrent -R

it is all ok.

Are there some way to solve this problem?
Thanks
Federico
coppolino97
 
Posts: 35
Joined: 2018-06-05 15:23

Re: Problem about permission

Postby reinob » 2019-01-23 18:55

coppolino97 wrote:...
Code: Select all
        directory mode = 777


I suppose that the problem is that all my share can access as guest,in fact if I go to the share and type
Code: Select all
chmod 777 /mnt/disco/torrent -R

it is all ok.

Are there some way to solve this problem?


Yes, you type:

$ man smb.conf

Then you read what "directory mode" (or "directory mask") means, including the fact that they only apply to directories.
So you read what "create mode" (or "create mask") mean.

Then you realize that what you actually wanted was "force create mode" and "force directory mode", which should hopefully do what you actually want.

Good luck!
reinob
 
Posts: 699
Joined: 2014-06-30 11:42

Re: Problem about permission

Postby coppolino97 » 2019-02-12 10:29

Hi, thanks for your reply.
I have made a research about the two topics and I have found this:
http://linux-training.be/networking/ch21.html

Yes, I suppose that you are right about "force create mode" and "force directory mode".

Thanks, I will must try!

:D
coppolino97
 
Posts: 35
Joined: 2018-06-05 15:23


Return to System configuration

Who is online

Users browsing this forum: No registered users and 14 guests

fashionable