|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
chmod drwxrwSr-x
User's photos are stored in directories relating to their ID.
It is rounded off to the nearest thousands. So user 46 would be stored in folder 0, and user 546 would be stored in folder 1000. Right now we have folders 0, 1000, and 2000 working fine for photo uploads. But folder 3000 contains no files, no user can upload anything into it. The permissions for folders 0, 1000, and 2000 is this: drwxrwSr-x My chmod is horrible. What command would I have to type to copy that exact permission for folder 3000? Right now, folder 3000 has a permission of drwxrwxrwx. Or maybe it has something to do with the data size. the folders that work have 8192 and the folder that doesn't work has 4096. |
|
#2
|
|||
|
|||
|
chmod g+s folder_name
I'm guessing S and s are the same thing. I'm not sure what the capitalization is for. Maybe a Unix thing? I'm on linux. |
|
#3
|
|||
|
|||
|
S and s are not the same thing.
chmod 2765 somedir will result in the rather odd permissions that you want. While chmod 2775 somedir will result in the lower case s. |
|
#4
|
|||
|
|||
|
man chmod
look for set group id && mandatory locking |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > chmod drwxrwSr-x |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|