logoalt Hacker News

procaryoteyesterday at 5:53 PM5 repliesview on HN

This is a useful tip!

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


Replies

SoftTalkeryesterday at 9:01 PM

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

easterncalculusyesterday at 6:54 PM

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.

chasilyesterday at 6:20 PM

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
huflungdungyesterday at 10:37 PM

[dead]