LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-11-2012, 04:30 AM   #1
boberey
LQ Newbie
 
Registered: Dec 2010
Posts: 7

Rep: Reputation: 0
chmod sticky bit over written by window copy-paste


I am using Samba to connect out windows pc to RHEL5 .
We have a one file that we shared with some users. I have already set the CHMOD of the file to rwxrw-rwT so that non-owners users can access , read and write/modify the file but cannot delete it . With this CHMOD + t setup non file owner in Windows Desktop connecting in SAMBA cannot delete the file in windows delete option or in DOS command 'del'.
The problem is that if the non-file owner users in Windows is using copy-paste they can over write the shared file by pasting a file with the same file name which is basically the same as deleting the file and replacing with another . Any suggestion please. thank you.
 
Old 12-12-2012, 01:13 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Problem is that you've allowed content modify (w) on that file, which means ANY content, inc none or a complete replacement.
Either you want this or you do not. If not, then no-one should be allowed to (w)rite to it.

You need to think carefully about exactly what you want to achieve; there's no way to say people can only modify a bit of a file, its meaningless.

(More accurately, to do that, you'd have to write your own access program or use eg a DB)
 
Old 12-18-2012, 07:57 PM   #3
boberey
LQ Newbie
 
Registered: Dec 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Sir , on Linux a file with rwxrw-rwT Sticky bit set-up follows what it is suppose to do , that is if i am not the file owner i can not delete/replace/rename the file but i can modify the content of the file , this i have tested with a text file and logging on as different user in linux . My problem is if i log to the shared folder using Samba in a windows workstation ,the windows although can not delete/rename the said file it can replace it using paste , is the problem samba or linux , any suggestion please . thanks.
 
  


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
Sticky situation bcos of sticky bit Voyager7 Linux - Newbie 4 02-28-2011 11:29 PM
Sticky Bit? (ie: chmod 2770 vs chmod 770) JeffC1 Linux - Newbie 7 03-18-2010 07:39 AM
VL6.0 copy/paste to VI window help linuxsurd VectorLinux 1 04-12-2009 06:08 PM
Copy/Paste operation after window closed? SlowCoder Linux - Newbie 8 05-07-2007 07:06 PM
sticky bit motiram Linux - General 1 08-01-2001 12:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:36 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