The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Users in AIX Lost in AIX AIX 3 06-04-2007 10:44 AM
Users In AIX Lost in AIX UNIX for Dummies Questions & Answers 1 05-24-2007 12:12 PM
Users catwomen HP-UX 1 10-12-2006 05:11 PM
do i need these users? csaunders SUN Solaris 3 04-11-2006 10:45 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-02-2006
Registered User
 

Join Date: Apr 2005
Posts: 62
Exclamation Users on AIX 5.2

Hi everybody,

I have a system with AIX 5.2. I want to create a User on this system. This User shouldn't has an admin rights, but I want to allow him to remove any directory from a specific path where the owner of this path is another user (not root).

what is the properties that should be applied when creating this User?
and what is the permissions for the path that directories will be removed from it, if it is required?


Thanks in advance
Reply With Quote
Forum Sponsor
  #2  
Old 11-03-2006
Registered User
 

Join Date: May 2006
Location: England
Posts: 265
This is a tricky one! You have not said what the directory permissions will be or how this pseudo super user will need to get round such permissions. The simple way I can see of doing this would be to write a script which takes the directory name to be deleted and is run using the "su -c" command. This can then be run as root but only for this operation. Perhaps someone may come up with a better solution.
Reply With Quote
  #3  
Old 11-03-2006
Registered User
 

Join Date: Jul 2006
Posts: 16
This is a tricky one, allowing a user to delete any folders, I would also assume the user would see the files in any folders, and also allow the user to delete any files in any folders any where.... but can't be a admin...
I see some conflicts, but would love to see the answer if there is one.
Reply With Quote
  #4  
Old 11-06-2006
Registered User
 

Join Date: Nov 2006
Location: Austria/Vienna
Posts: 235
if you want to allow him to delete /home/test he must be in the group for the directory above, which is /home. It must have write right for the group, like
drwxrwxr-x 17 root group 4096 Nov 1 17:17 /home


otherwise you have to use sudo for this purpose

if thats an option for you I can give you the settings for the sudoers file
Reply With Quote
  #5  
Old 11-06-2006
Registered User
 

Join Date: Apr 2005
Posts: 62
Thanks guys for your answers.

Actually the directories that I want to be deleted are generated by CGI & perl scripts. So to get around my problems I found the main scripts then I inserted a statement system("chmod -R g+w $pathName$jobNumber"); at the end of these scripts.
This statement invokes the chmod command on the directory to give the group write permission on it.

Before I did this change the users when tried to remove one of the directories, they encountered a prompt to confirm deletion of some files inside these directories. I noted later on, the group has only read permission on these files. This is the reason why I added the statement above.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:01 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0