I’m editing a file within a directory
/parentdir/userdir/file with the following permissions:
$ sudo namei -l $(pwd) drwxr-xr-x root root / drwx------ root root parentdir drwx--S--- myuser myuser userdir -rw------- myuser myuser file
userdir have set a
facl rule that, by default, creates files and directories without any permission for group or others. In any case, my PWD is
/parentdir/userdir and I have full permissions to edit
However, if I edit
emacs, when trying to save the changes, it says to me that the directory
/parentdir/userdir/ doesn’t exists, and asks me if I want to create it.
How can I skip that message in a safe way? Maybe the reason is that
emacs is trying to save the file using absolute paths, and it gets confuses since it has no execute permissions to access that directory.
Your question is poorly written, but yes, that error is because there's no way to traverse into the directory.
Answered by db48x on November 30, 2021
1 Asked on February 7, 2021
1 Asked on February 5, 2021 by daniel-doherty
8 Asked on February 3, 2021 by jorgen-schfer
1 Asked on January 30, 2021 by ashesh
0 Asked on January 29, 2021 by alexey-shiklomanov
0 Asked on January 26, 2021 by klorax
0 Asked on January 23, 2021 by infinitelooper
2 Asked on January 17, 2021 by kdb
1 Asked on January 15, 2021 by chakravarthy-raghunandan
1 Asked on January 10, 2021
0 Asked on January 8, 2021 by user1683620
1 Asked on January 8, 2021 by doctorate
1 Asked on January 6, 2021 by alper
1 Asked on January 5, 2021 by raymond
Get help from others!