LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 10-22-2008, 11:13 PM   #1
Damoek
Member
 
Registered: Mar 2004
Location: Us
Distribution: Ubuntu Dapper
Posts: 74

Rep: Reputation: 16
why can't i delete a file with bin group?


I was doing a little playing around with permissions on a 5.3 box in the office and wanted to make it so that it does not take root permission to delete a users home directory once they are deactivated or deleted in smit.
the default permissions are 755 with bin as both user and group
I noticed that if i change the permissions to 775 and give a typical user group membership in bin he can not delete a file in that folder.
I noticed also that if i change the group ownership of the directory to staff, (which my user also has membership) folders contained inside I can delete.

is there something special about the bin group that would prevent even a user who has group membership from being able to take advantage of them when bin is the group owner of the folder?
 
Old 10-23-2008, 02:06 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Well - of course... think: what sort of files would the bin group member otherwise be able to delete?
The permission bits are not the only security on your system.
 
Old 10-23-2008, 08:18 AM   #3
Damoek
Member
 
Registered: Mar 2004
Location: Us
Distribution: Ubuntu Dapper
Posts: 74

Original Poster
Rep: Reputation: 16
that makes a ton of sense. I wouldn't want some of our less capable sys admins deleting executables.

Just for my deeper understanding, how is the bin group protected in this way? Seems kind of like a sticky-bit-but-not-really sort of thing.
 
Old 10-23-2008, 02:34 PM   #4
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

I presume your AIX box is probably using the "afs" filesystem, with ACLs (Access Control Lists). This link might help:

http://www.pdc.kth.se/support/afs-tour.html
 
Old 10-23-2008, 02:36 PM   #5
Damoek
Member
 
Registered: Mar 2004
Location: Us
Distribution: Ubuntu Dapper
Posts: 74

Original Poster
Rep: Reputation: 16
actually jfs2... is afs better?
 
Old 10-24-2008, 09:08 AM   #6
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
No, I was merely suggesting you want to look at "ACL's" to understand this behavior, and the link I pointed to happened to be about afs (instead of jfs, or jfs2).

Your .. PSM
 
  


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
How can I delete a group administrator? Neavirc Linux - Newbie 2 06-24-2008 02:36 PM
group of /usr/local/bin merchtemeagle Slackware 2 12-21-2005 11:43 PM
Installing .bin-files, leave the file in /usr/local/bin/ ? lagu2653 Linux - Software 1 11-08-2005 08:30 PM
bin/bash:usr/bin/lpr NO SUCH FILE OR DIRECTORY Adibe_Hamm Linux - Newbie 3 10-14-2003 02:30 AM
How to delete the trash bin? BajaNick Linux - Software 4 08-20-2003 12:37 PM

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

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