LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   user flags (https://www.linuxquestions.org/questions/linux-newbie-8/user-flags-138377/)

Comarez 01-25-2004 05:20 AM

user flags
 
Hello,

I've set up a ftp server for my home network here. I'm wondering how i can prevent a user from deleting files, but the user must still be able to write files.
chmod a+rw doesn't work, cause users can write and delete then :s

can someone point me in the right direction? thx

UltimaGuy 01-25-2004 05:52 AM

You must see the permissions for directories......

I think you must set the sticky bit on...

Check it out. It basically allows users to view and update files, but only the owners can delete their respective files!

Comarez 01-25-2004 06:33 AM

yes thanks for your info.

I just noticed i cant make any changes (as root) to the permission settings of the folder's properties.
If i change something, it auto changes back to the last setting. though the owner is set as root.

UltimaGuy 01-25-2004 06:43 AM

That is not expected behavior.......

Can you elaborate on it a little more?

Comarez 01-25-2004 07:01 AM

I mean if i make any changes on the permissions of any file/folder via gui or console nothing has changed.

ie: setting for 'other' users are set to rwx.
I disable the write option by: chmod -R o-w /folder/
i check it via ls -l folder & via gui properties: nothing changed.

there is an error message though: 'action not authorized'

I have no clue why root is not authorized to do such an action...

UltimaGuy 01-25-2004 07:09 AM

Maybe root is not the owner of that folder!

What folder is it actually? If it is some folder belonging to some daemon, then root will not be its owner, and so can't easily change the settings...

Comarez 01-25-2004 07:18 AM

that's the whole paradox here. root is owner of the folder

UltimaGuy 01-25-2004 07:22 AM

Is any of the directory permissions set on that folder, maybe accidentally?

Try creating a new file inside that folder, and then try to change its settings.

Post the results here.


All times are GMT -5. The time now is 08:47 AM.