Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Problem about permission [Solved]

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
coppolino97
Posts: 115
Joined: 2018-06-05 15:23
Location: Italy
Has thanked: 2 times

Problem about permission [Solved]

#1 Post by coppolino97 »

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
Last edited by coppolino97 on 2019-10-26 14:33, edited 1 time in total.
Lenovo T460 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 12

reinob
Posts: 1189
Joined: 2014-06-30 11:42
Has thanked: 97 times
Been thanked: 47 times

Re: Problem about permission

#2 Post by reinob »

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!

coppolino97
Posts: 115
Joined: 2018-06-05 15:23
Location: Italy
Has thanked: 2 times

Re: Problem about permission

#3 Post by coppolino97 »

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
Lenovo T460 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 12

Post Reply