LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,280

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 07:35 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration