Comments (4)
What scenario are you envisaging this will protect from over the current 0700
Unix permissions?
from clipmenu.
On my systems mkdir -m 0700
isn't doing what one might think it does:
% mkdir -m 0700 foo 1 ↵ [/tmp]
% cd foo [/tmp]
% ls -al [/tmp/foo]
insgesamt 0
drwx------ 2 hashworks hashworks 40 1. Feb 15:02 .
drwxrwxrwt 15 root root 500 1. Feb 15:02 ..
% touch foobar [/tmp/foo]
% ls -al [/tmp/foo]
insgesamt 0
drwx------ 2 hashworks hashworks 60 1. Feb 15:02 .
drwxrwxrwt 15 root root 500 1. Feb 15:02 ..
-rw-rw-r-- 1 hashworks hashworks 0 1. Feb 15:02 foobar
% setfacl -m d:o::0000 . [/tmp/foo]
% touch aclfoo [/tmp/foo]
% ls -al [/tmp/foo]
insgesamt 0
drwx------+ 2 hashworks hashworks 80 1. Feb 15:04 .
drwxrwxrwt 15 root root 500 1. Feb 15:03 ..
-rw------- 1 hashworks hashworks 0 1. Feb 15:04 aclfoo
-rw-rw-r-- 1 hashworks hashworks 0 1. Feb 15:02 foobar
% [/tmp/foo]
from clipmenu.
I don't see anything unexpected in there.
File permissions inside /tmp/clipmenu.$USER
don't matter here, since you can't even get into the directory:
% ls /tmp/clipmenu.cdown | head -1
1001020889 137
% stat /tmp/clipmenu.cdown/'1001020889 137'
File: /tmp/clipmenu.cdown/1001020889 137
Size: 136 Blocks: 8 IO Block: 4096 regular file
Device: 20h/32d Inode: 1775706 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 1000/ cdown) Gid: ( 1000/ cdown)
Access: 2017-02-01 14:07:29.548363204 +0000
Modify: 2017-01-24 06:08:49.117047788 +0000
Change: 2017-01-24 06:08:49.117047788 +0000
Birth: -
% sudo -u nobody stat /tmp/clipmenu.cdown/'1001020889 137'
stat: cannot stat '/tmp/clipmenu.cdown/1001020889 137': Permission denied
If you really care about the permissions of the files inside this directory (which you probably shouldn't), the correct thing is to set your umask
.
from clipmenu.
Ah, you're right. My bad.
from clipmenu.
Related Issues (20)
- Code submit HOT 2
- Can't get clipmenud to start on boot in Qtile HOT 2
- Change clipmenud to only copy things that have been ctrl +c'ed instead of just being selected HOT 2
- [Feature request] Config/Overrides file for clipmenu HOT 2
- Status always showing 'enabled' HOT 2
- Pasting large images HOT 8
- Add option to disable copy on select HOT 2
- Unable to copy images to clipboard with Spectacle HOT 4
- Support customizing launcher args HOT 1
- No longer working on select (rofi) HOT 7
- Clean shutdown HOT 3
- Use clipnotify loop mode HOT 1
- Add image support HOT 3
- Option to not store passwords HOT 2
- Put new strings in clipboard from clipmenu HOT 2
- Save Image to a File - no menu entry nor toolbar button HOT 1
- keepassxc vs. clipmenu HOT 6
- Cannot get `$CM_IGNORE_WINDOW` to work HOT 1
- Add man pages HOT 1
- Why might one want to enable CM_OWN_CLIPBOARD=1? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clipmenu.