Google Plus

What is the difference between setting permissions chmod 777 and chmod 1777 ?

Written by Mel Kham on . Posted in Frequently Asked Questions

Question : What is the difference between setting permissions chmod 777 and chmod 1777 ?terminal

 

Answer : In a machine with multiple users, Changing permissions to 777, everybody will be able to write and remove everybody’s files….. so is Not what is wanted.


The 1777 mode change makes sure that any user can write to the /directory, but cannot remove other user’s files from them. The latter is prohibited

by the so-called sticky bit, the highest bit (1) in the 1777 bit mask.

So is advised for example to set /tmp permissions to 1777 instead to 777, the same for /var/tmp.

For questions please refer to our Q/A forum at : http://ask.unixmen.com

Mel Kham

Founder of Unixmen, Living in Amsterdam. Am working in my free time to help people to understand the Opensource and to explain them in easy way how to make the fist steps to the the light. Working day and night with my Co-founder Zinovsky to keep this website live even with less resources.
  • hellmaker

    Thanks for answer

    I searched many sites for this answer but i found nothing.

Like us on Facebook

This week Top Posts

Write for us

Recent Comments

DragonFartOutLoud

|

great review! i’ve been using it as my main OS since Beta 1 release. its been a awesome ride so far :)

jet li

|

i try the method, and i unzip the image contain zip secret, i dont find the file that i was hide, where it go? and how to open it? :s

zinovsky

|

Yes, it is possible using Steganography, we will post another quick howto do that in the next few days

SK

|

Hey Abhishek

Yes there are many open source tools available to meet your requirements. They are easy to manage and has a decent web gui to configure. We will publish all of them one by one shortly. Stay tuned with us.

LinuxSytesNet

|

sabayon facebook group is not maintained by him but a French guy. Go back to your zorin os.

 
IDG Tech Network
Copyright © 2008-2013 Unixmen.com .
Maintained by Anblik .