Unix Technical Forum

Removing user home directories

This is a discussion on Removing user home directories within the AIX Operating System forums, part of the Unix Operating Systems category; --> I had a thread going titled ID Creation" back on 5/31/05, but Google keeps erroring out when I try ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 07:36 AM
TB
 
Posts: n/a
Default Removing user home directories

I had a thread going titled ID Creation" back on 5/31/05, but Google
keeps erroring out when I try to add to it so I'm having to start
another one. It is a new question anyway.

I have added users to the security group that I want to be able to
create user IDs. My new question is on deleting users. The users in
the security group can remove the users either through smit or with
rmuser -p <userID>, my problem is that I also need the users' home
directories removed. How can I get them removed without giving out
root access?

Thanks.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 07:37 AM
Joe
 
Posts: n/a
Default Re: Removing user home directories

On 3 Jun 2005 12:00:36 -0700, "TB" <chessgame@gmail.com> wrote:

>I had a thread going titled ID Creation" back on 5/31/05, but Google
>keeps erroring out when I try to add to it so I'm having to start
>another one. It is a new question anyway.
>
>I have added users to the security group that I want to be able to
>create user IDs. My new question is on deleting users. The users in
>the security group can remove the users either through smit or with
>rmuser -p <userID>, my problem is that I also need the users' home
>directories removed. How can I get them removed without giving out
>root access?
>
>Thanks.


Consider using the 'sudo' utility. With it, the users you chose can
run certain instructions as root.
So, you could allow the users in the security group to remove the
directories in the structure /home, for instance.


Saludos,
Joe

#####

Leyendo: Futureland, de Walter Mosley
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 07:37 AM
aix@mail.com
 
Posts: n/a
Default Re: Removing user home directories

Be careful what access you allow. Where I used to work, they had a
script that would delete a user and its home directory. Well, someone
had added a user with / as the home directory. When someone tried to
remove that user... Well... Bye-bye operating system.

TB wrote:
> I had a thread going titled ID Creation" back on 5/31/05, but Google
> keeps erroring out when I try to add to it so I'm having to start
> another one. It is a new question anyway.
>
> I have added users to the security group that I want to be able to
> create user IDs. My new question is on deleting users. The users in
> the security group can remove the users either through smit or with
> rmuser -p <userID>, my problem is that I also need the users' home
> directories removed. How can I get them removed without giving out
> root access?
>
> Thanks.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 07:37 AM
Frank Fegert
 
Posts: n/a
Default Re: Removing user home directories

TB wrote:
> I had a thread going titled ID Creation" back on 5/31/05, but Google
> keeps erroring out when I try to add to it so I'm having to start
> another one. It is a new question anyway.
>
> I have added users to the security group that I want to be able to
> create user IDs. My new question is on deleting users. The users in
> the security group can remove the users either through smit or with
> rmuser -p <userID>, my problem is that I also need the users' home
> directories removed. How can I get them removed without giving out
> root access?


Another solution besides the ones already suggested would be
to set up a simple cronjob which searches $HOME for files/dirs
with "nouser" or "nogroup" (find $HOME -nouser -o -nogroup
-exec ...) every night and performs an action e.g. delete,
report, archive to backup system then delete, etc. on them.
Admittidly this adds a delay to the whole process of deleting
all user data, but i'd consider it much safer than fiddling
with sudo. Plus you can restrict the find to the $HOME and
thus avoide situations like aix@mail.com described.
On the downside you have to make sure there are no legimate
unowned files/dirs under $HOME. Untarred downloads are always
a popular source for files/dirs of this kind. On the other
hand this will educate your users and thus contirbute to your
BOFH status ;-)

Regards,

Frank
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:50 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com