I need folder permissions set to drwxrwxrwt instead of drwsrwsrwx

permissionsubuntu-10.10

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.)

Best Answer

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.

Greetings