LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-05-2023, 11:33 AM   #1
sniper8752
Member
 
Registered: Oct 2012
Posts: 564

Rep: Reputation: Disabled
Program is unable to access directory


I am using syncthing, and am getting this error message: 2023-09-26 10:08:11: Error on folder "p7 Camera" (pixel_7_tw32-photos): stat /mnt/qnap/syncthing/p7/.stfolder: permission denied
Syncthing is running in a docker container. Docker is running as root. Here are the folder permissions:
drw-rwxr-- 2 ansible root 4.0K May 18 13:34 .stfolder
It should have the permission to access it. Why can't it access it?
 
Old 10-05-2023, 12:02 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
I think that the permissions should be:

drwxrwxr-x
 
Old 10-05-2023, 02:17 PM   #3
sniper8752
Member
 
Registered: Oct 2012
Posts: 564

Original Poster
Rep: Reputation: Disabled
Would that also apply to the parent directories?
 
Old 10-06-2023, 04:43 AM   #4
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,796

Rep: Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201
No, they need +x only (x for owner and group, maybe others; on a directory x means access).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to access directory after enabling access via setfacl fanoflq Linux - Newbie 3 09-15-2016 03:00 PM
how to use web to invoke php program, and the php program call c program bellhuang Linux - Server 10 01-13-2014 06:09 AM
Unable to create a file or directory using a JSP program hemubtech@yahoo.com Linux - Software 2 07-21-2007 06:33 AM
Unable to create a file or directory using a JSP program hemubtech@yahoo.com Fedora 1 07-21-2007 02:09 AM
UK Finance Directory,Online Finance Directory,UK Finance,Finance Directory in UK seekuk General 1 12-30-2005 04:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration