Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just need permissions set to drwxrwxrwt instead of the current drwsrwsrwx .

When I transfer files from filezilla to my Ubuntu server in the www folder, it doesn't give them the 755 permission. How can I fix this? (This started happening only recently.)

share|improve this question
Maybe your system administrator did that for a reason? I made this exact change to my users' web folders yesterday. Has it been bringing you trouble? – Ekevoo Apr 8 '11 at 11:24
@Ekevoo It sounds like he is the system administrator. – belacqua Apr 8 '11 at 16:27
@jgbelacqua I Skype regularly with my users and they have had the habit of asking me things directly when they want to understand something about our server. I hope this isn't changing. :( – Ekevoo Apr 8 '11 at 20:50

If you can move the data into the directory, just create a new one.

mkdir dir
chmod 1777 dir

If you need over an existing directory without moving data, check the man page:

chmod preserves a directory's set-user-ID and set-group-ID bits unless you explicitly specify otherwise. You can set or clear the bits with symbolic modes like u+s and g-s, and you can set (but not clear) the bits with a numeric mode.


share|improve this answer
Basically this means you should do chmod ug-s DIRECTORY – AlexTsr Apr 8 '11 at 11:26

You need to check the umask for the directory or for the user you are using.

Google for "linux directory umask". In this case you want a umask of 022. That will block write permission for group and other.


share|improve this answer
i just need this permission drwxrwxrwt instead of the current drwsrwsrwx. thanks – user50946 Apr 8 '11 at 7:06

This should be possible simply with sudo chmod 1777 /path/to/www .

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.