LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-25-2004, 05:20 AM   #1
Comarez
Member
 
Registered: Oct 2003
Location: Belgium
Distribution: Gentoo
Posts: 42

Rep: Reputation: 15
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
 
Old 01-25-2004, 05:52 AM   #2
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 32
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!
 
Old 01-25-2004, 06:33 AM   #3
Comarez
Member
 
Registered: Oct 2003
Location: Belgium
Distribution: Gentoo
Posts: 42

Original Poster
Rep: Reputation: 15
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.
 
Old 01-25-2004, 06:43 AM   #4
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 32
That is not expected behavior.......

Can you elaborate on it a little more?
 
Old 01-25-2004, 07:01 AM   #5
Comarez
Member
 
Registered: Oct 2003
Location: Belgium
Distribution: Gentoo
Posts: 42

Original Poster
Rep: Reputation: 15
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...
 
Old 01-25-2004, 07:09 AM   #6
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 32
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...
 
Old 01-25-2004, 07:18 AM   #7
Comarez
Member
 
Registered: Oct 2003
Location: Belgium
Distribution: Gentoo
Posts: 42

Original Poster
Rep: Reputation: 15
that's the whole paradox here. root is owner of the folder
 
Old 01-25-2004, 07:22 AM   #8
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 32
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to access the different flags of a socket from user space enthusiast_abdul Linux - Networking 0 11-10-2005 03:04 AM
CC flags and the like Garp Linux - Software 2 05-17-2004 03:48 AM
bbpager flags mrsolo Linux - Software 1 06-26-2003 12:19 AM
some route flags Cubiq Linux - Networking 5 08-16-2002 11:37 AM
--tcp-flags bbenz3 Linux - Networking 2 03-12-2002 04:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration