2

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

Mark Henderson
  • 68,823
  • 31
  • 180
  • 259
user50946
  • 483
  • 2
  • 7
  • 18
  • 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? – Liz Av Apr 08 '11 at 11:24
  • @Ekevoo It sounds like he is the system administrator. – belacqua Apr 08 '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. :( – Liz Av Apr 08 '11 at 20:50

3 Answers3

3

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

poisonbit
  • 827
  • 5
  • 6
0

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.

Cheers.

penguin359
  • 462
  • 3
  • 8
Mike
  • 802
  • 4
  • 5
0

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

belacqua
  • 583
  • 4
  • 10