Skip to content
TORNLIFE More

Default chmod value without umask

Started by JasonYeom [4045988] on in Technology.

3 replies · 16 views · thread synced · 6 days ago · View on torn.com
About this thread

Posts archived: 4 / 4 posts (100%) · the total is Torn's reply count + the opening post at the last fetch

Counted by TornLife from the archived posts.

Archived posts
4
Discussion span
→
People posting
2
Likes on archived posts
3
Authority score
6 / 100
Historical score
8 / 100
Story score
24 / 100
Engagement score
40 / 100
JasonYeom [4045988]

Hey there, 

I just remembered technology forums exist on torn. 

So I'm here asking how do i change default permissions -rw-rw-rw- (666) or drwxrwxrwx(777) without using umask.

Also, how do i add sticky bits as umask? Is that even possible?

Thanks in advance!

Jaxtra [2658631]

The umask is what sets the default permissions, but you can change them afterwards with chmod

 

You can not set the sticky bit or any of the other 4 first bits using an umask, you always have to do this specifically with chmod.

 

If you use SELinux or ACLs, you'll have to RTFM, they can affect this.

 

Jaxtra [2658631]

A followup, generally my recommendation would be to not rely on the umask to set permissions correctly, instead always set them explicitly when you are creating files in scripts or other code.