Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Permission issue over samba connection

Started by Duc 6 years ago · 0 replies · 416 views
6 years ago

I am having permission issues. My sites are connected to a samba server. This is in my fstab file where uid = www-data and gid = loggedInUser

TXT
//192.168.1.25/www /mnt/www cifs user=,password=,file_mode=0775,dir_mode=0775,uid=33,gid=1001 0 0

ps aux | grep -v root | grep nginx | cut -d\ -f1 | sort | uniq

TXT
ws1
www-data

This is my dir permissions.

TXT
ls -ls
total 12288
1024 -rwxrwxr-x 1 www-data ws1 138329 Dec  7 07:15 CHANGELOG.md
1024 -rwxrwxr-x 1 www-data ws1   3216 Dec  7 07:15 CODE_OF_CONDUCT.md
1024 -rwxrwxr-x 1 www-data ws1   7098 Dec  7 07:15 CONTRIBUTING.md
1024 -rwxrwxr-x 1 www-data ws1   1071 Dec  7 07:15 LICENSE.txt
1024 -rwxrwxr-x 1 www-data ws1   6701 Dec  7 07:15 README.md
   0 drwxrwxr-x 2 www-data ws1      0 Dec  7 07:15 assets
   0 drwxrwxr-x 2 www-data ws1      0 Mar  1  2018 backup
   0 drwxrwxr-x 2 www-data ws1      0 Dec  7 07:15 bin
   0 drwxrwxr-x 2 www-data ws1      0 Dec  7 07:18 cache
1024 -rwxrwxr-x 1 www-data ws1   3848 Dec  7 07:15 composer.json
1024 -rwxrwxr-x 1 www-data ws1 200025 Dec  7 07:15 composer.lock
   0 drwxrwxr-x 2 www-data ws1      0 Aug  9 15:59 git
   0 drwxrwxr-x 2 www-data ws1      0 Dec  7 07:17 images
1024 -rwxrwxr-x 1 www-data ws1   1690 Dec  7 07:15 index.php
1024 -rwxrwxr-x 1 www-data ws1     74 Oct 30 11:55 info.php
   0 drwxrwxr-x 2 www-data ws1      0 Jul  6 10:21 logs
1024 -rwxrwxr-x 1 www-data ws1     76 Dec  7 07:15 now.json
1024 -rwxrwxr-x 1 www-data ws1    197 Feb 15  2018 robots.txt
1024 -rwxrwxr-x 1 www-data ws1     19 Dec 22 12:10 setup.php
   0 drwxrwxr-x 2 www-data ws1      0 Dec  7 07:15 system
   0 drwxrwxr-x 2 www-data ws1      0 Dec  7 07:15 tmp
   0 drwxrwxr-x 2 www-data ws1      0 Dec  1  2018 user
   0 drwxrwxr-x 2 www-data ws1      0 Dec  7 07:15 vendor
   0 drwxrwxr-x 2 www-data ws1      0 Dec  7 07:15 webserver-configs

I do not have any users created in samba. With this connection. I am able to r,w,exec. The only issue I have is Grav complains it cannot write to folders.

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 80 10 hours ago
General · by pamtbaau, 15 hours ago
1 51 15 hours ago
General · by Andy Miller, 1 day ago
0 45 1 day ago
General · by Marcel, 12 months ago
6 346 5 days ago
General · by Duc , 5 days ago
3 40 5 days ago