LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 04-08-2005, 03:04 AM   #1
SiLiCoN
Member
 
Registered: Sep 2004
Location: India
Distribution: Solaris 9, FreeBSD 4.10, Slackware, RedHat, Knoppix,
Posts: 84

Rep: Reputation: 16
Weird File Permissions Issue


Hey all,

Confused about another problem now. What I knew is that when a file does not have write permissions (created by root:wheel) for groups and others, then users other than root cant delete that file. But it seems i am lacking in concept as this is what has been happening

As root i m creating a file in jake's home dir
#touch /home/jake/file
#chmod 000 /home/jake/file
#chown root:wheel /home/jake/file (just to be 100% sure)

now jake logs in (or any other user)
the file has 000 permission and is created by root: wheel
but he can still delete the file...after a override modes message.
(it does happen with all the other users too)

But the users cant delete the file if it is created outside their home directory...

So what it means is that users can delete any file created by anyone under their home directory...
Please let me know where i m missing out ...

Thanks in Advance
SiLiCoN
 
Old 04-08-2005, 04:41 AM   #2
hemmelig
Member
 
Registered: Oct 2004
Posts: 33

Rep: Reputation: Disabled
This is how permissions work in Unix.
If you own the folder, you can delete what evers in that folder. Easy as that.
 
  


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
Weird Gaim Issue...Please Help! br00tal Linux - Software 10 09-13-2005 05:40 PM
a weird issue about which jiawj Red Hat 2 04-26-2005 09:06 AM
I want weird filesystem permissions iluvatar Linux - Security 8 03-11-2005 09:01 AM
Very Weird Sound Problem....Permissions? rm6990 Fedora 2 08-12-2004 05:17 AM
weird server issue Nic-MDKman Linux - Security 1 04-26-2004 04:46 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

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