LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-17-2003, 09:53 PM   #1
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Rep: Reputation: 30
Permission on one file.


Hello.

I have a samba shared directory called "upload" which permissions are set to 2770. The ownership of the folder is root mygroup

This is so the users of the mygroup folder can write / delete files that are in there.

I want to put one file in the folder, basically a readme, that no one can delete or rename etc.

I've looked at the man page for chattr and I've also set the file permissions to 700. The users can still rename, delete the file.

Can anyone point me in the right direction please?

Thanks alot,

Regards
Craig
 
Old 12-17-2003, 10:12 PM   #2
GaijinPunch
Member
 
Registered: Aug 2003
Location: Tokyo, Japan
Distribution: Gentoo
Posts: 130

Rep: Reputation: 22
Just a quick one w/o giving much thought -- who owns the file?
 
Old 12-17-2003, 10:28 PM   #3
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Original Poster
Rep: Reputation: 30
Hi,

Owner and group owner is root. So the file info is something like...

-rwx------ 2 root root 153 Dec 11 14:32 /upload/readme.txt

For some reason I think it is getting it's permissions from it's parent directory.

>Craig
 
Old 12-17-2003, 10:55 PM   #4
GaijinPunch
Member
 
Registered: Aug 2003
Location: Tokyo, Japan
Distribution: Gentoo
Posts: 130

Rep: Reputation: 22
Crap -- I didn't send my message properly.

I think you're right. I did something similar in my homedir, and was able to edit a file owned by root. After I edited it, I was the owner, and the previous version had a tilde appended to it, and was owned by root.

For a quick work around, why not try a softlink from elsewhere on the system?
 
Old 12-17-2003, 10:59 PM   #5
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Original Poster
Rep: Reputation: 30
Yeah that's an idea. Basically it's going to be an empty file sitting there, the title will be something like "only upload full images" for example.

Oh well I'll keep looking : )

Thanks for your help though.
>Craig
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
About the file permission ust Linux - Distributions 1 05-06-2005 03:05 AM
File Permission gardenair Linux - Newbie 5 04-28-2005 10:35 PM
file permission Nechos Linux - Software 2 10-04-2003 03:31 PM
file permission !!! hitesh_linux Linux - General 5 03-25-2003 12:27 PM
File Permission glock19 Linux - General 4 01-02-2002 07:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:47 PM.

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