Does owner ignore the file or folder permission restrict?

  • LeoZhang
  • Student
  • Student
  • No Avatar
  • Joined: Jul 09, 2004
  • Posts: 80
  • Loc: China
  • Status: Offline

Post April 10th, 2005, 1:44 am

I create a file and remove the rwx permission to owner and group and anyone , but I still can modify the file , why?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post April 10th, 2005, 1:44 am

  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Joined: Jan 23, 2004
  • Posts: 2673
  • Loc: Somewhere outside the box in Sarasota, FL.
  • Status: Offline

Post April 10th, 2005, 5:37 am

Are you root? You mean the perms are now 000? (--- --- ---)? Why would you even do that?

You really have to provide more information. (Ex. If you are using AFS as your filesystem, there are seperate acl's for every created file based upon the DCE permissions.)

Keep in mind the perms are for owner, group, and other.
"It's always a long day, 86,400 won't fit into a short."
  • LeoZhang
  • Student
  • Student
  • No Avatar
  • Joined: Jul 09, 2004
  • Posts: 80
  • Loc: China
  • Status: Offline

Post April 11th, 2005, 8:16 pm

Daemonguy wrote:
Are you root? You mean the perms are now 000? (--- --- ---)? Why would you even do that?

You really have to provide more information. (Ex. If you are using AFS as your filesystem, there are seperate acl's for every created file based upon the DCE permissions.)

Keep in mind the perms are for owner, group, and other.


Yes, im root.
In windows, administrator is also restricted by the file permission unless he take the ownership, in Linux root can full control all files and ignore the file permission restrict?
  • Xel02
  • Proficient
  • Proficient
  • No Avatar
  • Joined: Jun 15, 2004
  • Posts: 261
  • Status: Offline

Post April 11th, 2005, 10:45 pm

Well it seems like it, I've never actually noticed before. I'm using Gentoo, and I'm guessing thats the default.

That's why its such a bad idea to do things in root without needing root permissions.

Oh well, just try not to do an accidental 'rm' on things. :D

Note. I did that once when a few filesnames started with ?? and I did rm -r ??*. It was a sad day....
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Joined: Jan 23, 2004
  • Posts: 2673
  • Loc: Somewhere outside the box in Sarasota, FL.
  • Status: Offline

Post April 12th, 2005, 4:30 am

LeoZhang wrote:
Daemonguy wrote:
Are you root? You mean the perms are now 000? (--- --- ---)? Why would you even do that?

You really have to provide more information. (Ex. If you are using AFS as your filesystem, there are seperate acl's for every created file based upon the DCE permissions.)

Keep in mind the perms are for owner, group, and other.


Yes, im root.
In windows, administrator is also restricted by the file permission unless he take the ownership, in Linux root can full control all files and ignore the file permission restrict?


Number one, NEVER log in as root, unless it's single user mode at the console.
Use 'su', or install 'sudo'.

Yes, root has access to all, regardless.
"It's always a long day, 86,400 won't fit into a short."
  • LeoZhang
  • Student
  • Student
  • No Avatar
  • Joined: Jul 09, 2004
  • Posts: 80
  • Loc: China
  • Status: Offline

Post April 12th, 2005, 7:27 pm

Thank you all

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 46 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.