Remix.run Logo
procaryote 2 days ago

This is a useful tip!

but also... who has a dir with 777 permissions? Is that something people do nowadays?

easterncalculus 2 days ago | parent | next [-]

My guess would be mounting an NTFS partition - with ntfs-3g it will load everything as 777 just by default, since it can’t translate the permissions.

SoftTalker a day ago | parent | prev | next [-]

I've seen users who have every file set to 777. They do it to "avoid permissions issues"

Retr0id a day ago | parent [-]

Heh I can remember doing that, in the distant past.

chasil 2 days ago | parent | prev | next [-]

Well, everybody has 1777 as /tmp (with the sticky bit).

  $ ll -d /tmp
  drwxrwxrwt. 20 root root 4096 Mar  3 12:19 /tmp
  $ mkdir mytmp
  $ chmod 1777 mytmp
  $ ll -d mytmp
  drwxrwxrwt. 1 luser lgroup 0 Mar  3 12:19 mytmp
paffdragon 21 hours ago | parent [-]

Well, maybe not everybody

  $ ls -ld /tmp
  drwxrwx--x. 2 shell shell 40 Jan 15  2022 /tmp
edit: sorry, I should have added this is termux :)
a day ago | parent | prev | next [-]
[deleted]
huflungdung a day ago | parent | prev [-]

[dead]